Skip to content

Version Packages#1157

Merged
toiroakr merged 1 commit into
mainfrom
changeset-release/main
May 14, 2026
Merged

Version Packages#1157
toiroakr merged 1 commit into
mainfrom
changeset-release/main

Conversation

@tailor-platform-pr-trigger
Copy link
Copy Markdown
Contributor

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot commented May 12, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@tailor-platform/sdk@1.47.0

Minor Changes

  • #1115 8dd619e Thanks @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 fd70f8c Thanks @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 b1e8f5a Thanks @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 02e12f6 Thanks @renovate! - fix(deps): update @opentelemetry

  • #1135 8f53196 Thanks @renovate! - fix(deps): update dependency @clack/prompts to v1.3.0

  • #1137 aef3653 Thanks @renovate! - fix(deps): update dependency @napi-rs/keyring to v1.3.0

  • #1047 aa6ec4a Thanks @toiroakr! - chore(setup github): bump bundled tailor-platform/actions ref to v1.1.0 and let Renovate keep it up to date going forward.

@tailor-platform/create-sdk@1.47.0

Patch Changes

  • #1115 8dd619e Thanks @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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

⚡ pkg.pr.new

@tailor-platform/sdk

pnpm add https://pkg.pr.new/@tailor-platform/sdk@e643409
pnpm dlx https://pkg.pr.new/@tailor-platform/sdk@e643409 --help

@tailor-platform/create-sdk

pnpm add https://pkg.pr.new/@tailor-platform/create-sdk@e643409
pnpm dlx https://pkg.pr.new/@tailor-platform/create-sdk@e643409 my-app

commit: e643409

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions
Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (ebfd66c) #1157 (a03a3b6) +/-
Coverage 61.8% 61.8% 0.0%
Code to Test Ratio 1:0.4 1:0.4 0.0
Details
  |                    | main (ebfd66c) | #1157 (a03a3b6) | +/-  |
  |--------------------|----------------|-----------------|------|
  | Coverage           |          61.8% |           61.8% | 0.0% |
  |   Files            |            362 |             362 |    0 |
  |   Lines            |          12647 |           12647 |    0 |
  |   Covered          |           7827 |            7827 |    0 |
  | Code to Test Ratio |          1:0.4 |           1:0.4 |  0.0 |
  |   Code             |          82684 |           82684 |    0 |
  |   Test             |          34422 |           34422 |    0 |

SDK Configure Bundle Size

main (ebfd66c) #1157 (a03a3b6) +/-
configure-index-size 17.04KB 17.04KB 0KB
dependency-chunks-size 34.49KB 34.49KB 0KB
total-bundle-size 51.53KB 51.53KB 0KB

Runtime Performance

main (ebfd66c) #1157 (a03a3b6) +/-
Generate Median 2,534ms 2,553ms 19ms
Generate Max 2,556ms 2,576ms 20ms
Apply Build Median 2,564ms 2,588ms 24ms
Apply Build Max 2,586ms 2,608ms 22ms

Type Performance (instantiations)

main (ebfd66c) #1157 (a03a3b6) +/-
tailordb-basic 35,130 35,130 0
tailordb-optional 3,841 3,841 0
tailordb-relation 7,428 7,428 0
tailordb-validate 2,566 2,566 0
tailordb-hooks 5,767 5,767 0
tailordb-object 12,136 12,136 0
tailordb-enum 2,462 2,462 0
resolver-basic 9,424 9,424 0
resolver-nested 26,111 26,111 0
resolver-array 18,187 18,187 0
executor-schedule 4,234 4,234 0
executor-webhook 873 873 0
executor-record 8,166 8,166 0
executor-resolver 4,369 4,369 0
executor-operation-function 869 869 0
executor-operation-gql 869 869 0
executor-operation-webhook 888 888 0
executor-operation-workflow 1,714 1,714 0

Reported by octocov

@toiroakr toiroakr merged commit 17583eb into main May 14, 2026
79 of 105 checks passed
@toiroakr toiroakr deleted the changeset-release/main branch May 14, 2026 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant