From e64340989a927eea097b11b911cf0b5308eff28e Mon Sep 17 00:00:00 2001 From: "tailor-platform-pr-trigger[bot]" <247949890+tailor-platform-pr-trigger[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 09:06:56 +0000 Subject: [PATCH] Version Packages --- .changeset/decimal-scale-drift.md | 13 -------- .changeset/parser-runtime-exception.md | 5 --- .changeset/renovate-1134.md | 5 --- .changeset/renovate-1135.md | 5 --- .changeset/renovate-1137.md | 5 --- .changeset/setup-github-renovate-actions.md | 5 --- .changeset/tailor-runtime-vitest.md | 14 -------- packages/create-sdk/CHANGELOG.md | 14 ++++++++ packages/create-sdk/package.json | 2 +- packages/sdk/CHANGELOG.md | 36 +++++++++++++++++++++ packages/sdk/package.json | 2 +- 11 files changed, 52 insertions(+), 54 deletions(-) delete mode 100644 .changeset/decimal-scale-drift.md delete mode 100644 .changeset/parser-runtime-exception.md delete mode 100644 .changeset/renovate-1134.md delete mode 100644 .changeset/renovate-1135.md delete mode 100644 .changeset/renovate-1137.md delete mode 100644 .changeset/setup-github-renovate-actions.md delete mode 100644 .changeset/tailor-runtime-vitest.md diff --git a/.changeset/decimal-scale-drift.md b/.changeset/decimal-scale-drift.md deleted file mode 100644 index 8f9c3b5c9..000000000 --- a/.changeset/decimal-scale-drift.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -"@tailor-platform/sdk": patch ---- - -Fix false-positive remote schema drift on `decimal` fields without an explicit -`scale`. The platform stores decimal fields with a default scale of 6, but the -snapshot generated by `tailor-sdk tailordb migration generate --init` did not -record this default, so `tailor-sdk deploy` (formerly `apply`) reported drift as -`scale: remote=6, expected=undefined` and blocked the deploy. - -Migration drift detection now treats an unset `scale` on a `decimal` field as -equivalent to the platform default (6). No regeneration of existing snapshots -is required; users no longer need `--no-schema-check` to work around this case. diff --git a/.changeset/parser-runtime-exception.md b/.changeset/parser-runtime-exception.md deleted file mode 100644 index 12dfe94ea..000000000 --- a/.changeset/parser-runtime-exception.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tailor-platform/sdk": patch ---- - -Eliminate the parser-layer exception that allowed `parser/service/tailordb/runtime.ts` to re-export runtime helpers from the configure module. Plugin attachment processing for a TailorDB type now lives in `PluginManager.processAttachmentsForType` and returns plain data (extended type, generated types, render events), so the cli layer applies state and renders progress without depending on `TailorAnyDBType`. Internal refactor with no public API change. diff --git a/.changeset/renovate-1134.md b/.changeset/renovate-1134.md deleted file mode 100644 index 9552fa3bd..000000000 --- a/.changeset/renovate-1134.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tailor-platform/sdk": patch ---- - -fix(deps): update @opentelemetry diff --git a/.changeset/renovate-1135.md b/.changeset/renovate-1135.md deleted file mode 100644 index c9f886c12..000000000 --- a/.changeset/renovate-1135.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tailor-platform/sdk": patch ---- - -fix(deps): update dependency @clack/prompts to v1.3.0 diff --git a/.changeset/renovate-1137.md b/.changeset/renovate-1137.md deleted file mode 100644 index 570d371dd..000000000 --- a/.changeset/renovate-1137.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tailor-platform/sdk": patch ---- - -fix(deps): update dependency @napi-rs/keyring to v1.3.0 diff --git a/.changeset/setup-github-renovate-actions.md b/.changeset/setup-github-renovate-actions.md deleted file mode 100644 index cf045e3d7..000000000 --- a/.changeset/setup-github-renovate-actions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@tailor-platform/sdk": patch ---- - -chore(setup github): bump bundled `tailor-platform/actions` ref to v1.1.0 and let Renovate keep it up to date going forward. diff --git a/.changeset/tailor-runtime-vitest.md b/.changeset/tailor-runtime-vitest.md deleted file mode 100644 index 4b28f95fd..000000000 --- a/.changeset/tailor-runtime-vitest.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@tailor-platform/sdk": minor -"@tailor-platform/create-sdk": patch ---- - -Add `@tailor-platform/sdk/vitest` (beta) — a Vitest plugin and environment that emulates the Tailor Platform function runtime locally. Catches `node:*` imports and Node.js globals usage that would fail at deploy time, and provides mock control objects (`tailordbMock`, `workflowMock`, `secretmanagerMock`, `authconnectionMock`, `idpMock`, `fileMock`, `iconvMock`) for all platform APIs with response configuration and call recording. - -Revamp `packages/sdk/docs/testing.md` into a 2-layer model (Unit Tests / E2E Tests). The previous structure split Unit, Bundled, and Workflow tests across overlapping sections and contained broken vitest imports and references to a non-existent `--template testing`. The new docs cover testing resolvers (simple, with TailorDB mocks, with DI, and with wait points) and workflow jobs (simple, with `triggerJobFunction` mocks, with wait-point mocks, and full-workflow integration), all anchored on the actual `resolver` and `workflow` templates. - -Mark `createImportMain` and `setupInvokerMock` from `@tailor-platform/sdk/test` as `@deprecated`. `createImportMain` is an SDK-internal helper for verifying bundled output; applications should test their TypeScript source directly (unit) and verify deployed behavior via E2E. `setupInvokerMock` is superseded by the `tailor-runtime` Vitest environment, where bundled tests can drive the invoker via `vi.spyOn(globalThis.tailor.context, "getInvoker").mockReturnValue(...)` and unit tests can pass `invoker` directly to `.body()`. Both exports remain in place for now to avoid a breaking change and will be removed in a future release. - -Remove the broken `tests/bundled.test.ts` from the `resolver` and `workflow` templates along with the related `bundled` vitest project and `test:bundled` / `test:bundled:prepare` scripts. These tests were not exercised by CI and had drifted out of sync with the SDK, producing failures on a fresh scaffold. - -Fix a broken anchor in `docs/services/workflow.md` that pointed at the removed `#testing-wait-points` heading; it now links to `../testing.md#jobs-that-wait-on-approval` to match the new testing docs structure. diff --git a/packages/create-sdk/CHANGELOG.md b/packages/create-sdk/CHANGELOG.md index c46c70ac8..202ec2802 100644 --- a/packages/create-sdk/CHANGELOG.md +++ b/packages/create-sdk/CHANGELOG.md @@ -1,5 +1,19 @@ # @tailor-platform/create-sdk +## 1.47.0 + +### Patch Changes + +- [#1115](https://github.com/tailor-platform/sdk/pull/1115) [`8dd619e`](https://github.com/tailor-platform/sdk/commit/8dd619e9c58f4662b117bbd968ecf9528d688fe4) Thanks [@toiroakr](https://github.com/toiroakr)! - Add `@tailor-platform/sdk/vitest` (beta) — a Vitest plugin and environment that emulates the Tailor Platform function runtime locally. Catches `node:*` imports and Node.js globals usage that would fail at deploy time, and provides mock control objects (`tailordbMock`, `workflowMock`, `secretmanagerMock`, `authconnectionMock`, `idpMock`, `fileMock`, `iconvMock`) for all platform APIs with response configuration and call recording. + + Revamp `packages/sdk/docs/testing.md` into a 2-layer model (Unit Tests / E2E Tests). The previous structure split Unit, Bundled, and Workflow tests across overlapping sections and contained broken vitest imports and references to a non-existent `--template testing`. The new docs cover testing resolvers (simple, with TailorDB mocks, with DI, and with wait points) and workflow jobs (simple, with `triggerJobFunction` mocks, with wait-point mocks, and full-workflow integration), all anchored on the actual `resolver` and `workflow` templates. + + Mark `createImportMain` and `setupInvokerMock` from `@tailor-platform/sdk/test` as `@deprecated`. `createImportMain` is an SDK-internal helper for verifying bundled output; applications should test their TypeScript source directly (unit) and verify deployed behavior via E2E. `setupInvokerMock` is superseded by the `tailor-runtime` Vitest environment, where bundled tests can drive the invoker via `vi.spyOn(globalThis.tailor.context, "getInvoker").mockReturnValue(...)` and unit tests can pass `invoker` directly to `.body()`. Both exports remain in place for now to avoid a breaking change and will be removed in a future release. + + Remove the broken `tests/bundled.test.ts` from the `resolver` and `workflow` templates along with the related `bundled` vitest project and `test:bundled` / `test:bundled:prepare` scripts. These tests were not exercised by CI and had drifted out of sync with the SDK, producing failures on a fresh scaffold. + + Fix a broken anchor in `docs/services/workflow.md` that pointed at the removed `#testing-wait-points` heading; it now links to `../testing.md#jobs-that-wait-on-approval` to match the new testing docs structure. + ## 1.46.0 ## 1.45.2 diff --git a/packages/create-sdk/package.json b/packages/create-sdk/package.json index 546e719d5..b88590c8e 100644 --- a/packages/create-sdk/package.json +++ b/packages/create-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@tailor-platform/create-sdk", - "version": "1.46.0", + "version": "1.47.0", "description": "A CLI tool to quickly create a new Tailor Platform SDK project", "license": "MIT", "repository": { diff --git a/packages/sdk/CHANGELOG.md b/packages/sdk/CHANGELOG.md index 70a556753..4fd7c2de3 100644 --- a/packages/sdk/CHANGELOG.md +++ b/packages/sdk/CHANGELOG.md @@ -1,5 +1,41 @@ # @tailor-platform/sdk +## 1.47.0 + +### Minor Changes + +- [#1115](https://github.com/tailor-platform/sdk/pull/1115) [`8dd619e`](https://github.com/tailor-platform/sdk/commit/8dd619e9c58f4662b117bbd968ecf9528d688fe4) Thanks [@toiroakr](https://github.com/toiroakr)! - Add `@tailor-platform/sdk/vitest` (beta) — a Vitest plugin and environment that emulates the Tailor Platform function runtime locally. Catches `node:*` imports and Node.js globals usage that would fail at deploy time, and provides mock control objects (`tailordbMock`, `workflowMock`, `secretmanagerMock`, `authconnectionMock`, `idpMock`, `fileMock`, `iconvMock`) for all platform APIs with response configuration and call recording. + + Revamp `packages/sdk/docs/testing.md` into a 2-layer model (Unit Tests / E2E Tests). The previous structure split Unit, Bundled, and Workflow tests across overlapping sections and contained broken vitest imports and references to a non-existent `--template testing`. The new docs cover testing resolvers (simple, with TailorDB mocks, with DI, and with wait points) and workflow jobs (simple, with `triggerJobFunction` mocks, with wait-point mocks, and full-workflow integration), all anchored on the actual `resolver` and `workflow` templates. + + Mark `createImportMain` and `setupInvokerMock` from `@tailor-platform/sdk/test` as `@deprecated`. `createImportMain` is an SDK-internal helper for verifying bundled output; applications should test their TypeScript source directly (unit) and verify deployed behavior via E2E. `setupInvokerMock` is superseded by the `tailor-runtime` Vitest environment, where bundled tests can drive the invoker via `vi.spyOn(globalThis.tailor.context, "getInvoker").mockReturnValue(...)` and unit tests can pass `invoker` directly to `.body()`. Both exports remain in place for now to avoid a breaking change and will be removed in a future release. + + Remove the broken `tests/bundled.test.ts` from the `resolver` and `workflow` templates along with the related `bundled` vitest project and `test:bundled` / `test:bundled:prepare` scripts. These tests were not exercised by CI and had drifted out of sync with the SDK, producing failures on a fresh scaffold. + + Fix a broken anchor in `docs/services/workflow.md` that pointed at the removed `#testing-wait-points` heading; it now links to `../testing.md#jobs-that-wait-on-approval` to match the new testing docs structure. + +### Patch Changes + +- [#1155](https://github.com/tailor-platform/sdk/pull/1155) [`fd70f8c`](https://github.com/tailor-platform/sdk/commit/fd70f8c75aa9a315eaf23ee25f36f43324b2eb54) Thanks [@toiroakr](https://github.com/toiroakr)! - Fix false-positive remote schema drift on `decimal` fields without an explicit + `scale`. The platform stores decimal fields with a default scale of 6, but the + snapshot generated by `tailor-sdk tailordb migration generate --init` did not + record this default, so `tailor-sdk deploy` (formerly `apply`) reported drift as + `scale: remote=6, expected=undefined` and blocked the deploy. + + Migration drift detection now treats an unset `scale` on a `decimal` field as + equivalent to the platform default (6). No regeneration of existing snapshots + is required; users no longer need `--no-schema-check` to work around this case. + +- [#1164](https://github.com/tailor-platform/sdk/pull/1164) [`b1e8f5a`](https://github.com/tailor-platform/sdk/commit/b1e8f5a7e971527ff04cdb5867cacda2415e01bf) Thanks [@toiroakr](https://github.com/toiroakr)! - Eliminate the parser-layer exception that allowed `parser/service/tailordb/runtime.ts` to re-export runtime helpers from the configure module. Plugin attachment processing for a TailorDB type now lives in `PluginManager.processAttachmentsForType` and returns plain data (extended type, generated types, render events), so the cli layer applies state and renders progress without depending on `TailorAnyDBType`. Internal refactor with no public API change. + +- [#1134](https://github.com/tailor-platform/sdk/pull/1134) [`02e12f6`](https://github.com/tailor-platform/sdk/commit/02e12f6b4a0a5986bc925defcac44717ae293c88) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update @opentelemetry + +- [#1135](https://github.com/tailor-platform/sdk/pull/1135) [`8f53196`](https://github.com/tailor-platform/sdk/commit/8f53196bd66e4ecba702074399979d577e289a07) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @clack/prompts to v1.3.0 + +- [#1137](https://github.com/tailor-platform/sdk/pull/1137) [`aef3653`](https://github.com/tailor-platform/sdk/commit/aef365380900c65420237cb47f75ff56f31c939a) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @napi-rs/keyring to v1.3.0 + +- [#1047](https://github.com/tailor-platform/sdk/pull/1047) [`aa6ec4a`](https://github.com/tailor-platform/sdk/commit/aa6ec4a562b771526ffb553aa03f7061ed483504) Thanks [@toiroakr](https://github.com/toiroakr)! - chore(setup github): bump bundled `tailor-platform/actions` ref to v1.1.0 and let Renovate keep it up to date going forward. + ## 1.46.0 ### Minor Changes diff --git a/packages/sdk/package.json b/packages/sdk/package.json index 1fdc09a26..04cd87f9e 100644 --- a/packages/sdk/package.json +++ b/packages/sdk/package.json @@ -1,6 +1,6 @@ { "name": "@tailor-platform/sdk", - "version": "1.46.0", + "version": "1.47.0", "description": "Tailor Platform SDK - The SDK to work with Tailor Platform", "license": "MIT", "repository": {