Skip to content

Version Packages (next)#1804

Open
tailor-platform-pr-trigger[bot] wants to merge 2 commits into
v2from
changeset-release/v2
Open

Version Packages (next)#1804
tailor-platform-pr-trigger[bot] wants to merge 2 commits into
v2from
changeset-release/v2

Conversation

@tailor-platform-pr-trigger

@tailor-platform-pr-trigger tailor-platform-pr-trigger Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

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 v2, this PR will be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

v2 is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on v2.

⚠️⚠️⚠️⚠️⚠️⚠️

Releases

@tailor-platform/create-sdk@2.0.0-next.7

Major Changes

  • #1782 c971797 Thanks @toiroakr! - Rename Workflow.trigger() (returned by createWorkflow()) and WorkflowJob.trigger() (returned by createWorkflowJob()) to .start(), aligning the SDK's ergonomic verb with the platform's start* RPC vocabulary:

     const inventory = checkInventory.trigger({ orderId: input.orderId });
    +const inventory = checkInventory.start({ orderId: input.orderId });
    
    -const workflowRunId = await orderProcessingWorkflow.trigger(args, { invoker: "manager" });
    +const workflowRunId = await orderProcessingWorkflow.start(args, { invoker: "manager" });

    mockWorkflow()'s wf.job(definition) / wf.workflow(definition) now return a mock of the .start method, and wf.setTriggerHandler / wf.triggeredJobs are renamed to wf.setStartHandler / wf.startedJobs. No codemod ships for the .trigger().start() call-site rename itself — see the v2/workflow-start-rename migration guide entry for manual migration steps.

Minor Changes

  • #1737 e349b9e Thanks @dqn! - Add lint rules that flag the external /api prefix in HTTP adapter path patterns and permission settings that grant access unconditionally, and enable them in newly scaffolded projects.

@tailor-platform/sdk@2.0.0-next.7

Major Changes

  • #1782 c971797 Thanks @toiroakr! - Rename Workflow.trigger() (returned by createWorkflow()) and WorkflowJob.trigger() (returned by createWorkflowJob()) to .start(), aligning the SDK's ergonomic verb with the platform's start* RPC vocabulary:

     const inventory = checkInventory.trigger({ orderId: input.orderId });
    +const inventory = checkInventory.start({ orderId: input.orderId });
    
    -const workflowRunId = await orderProcessingWorkflow.trigger(args, { invoker: "manager" });
    +const workflowRunId = await orderProcessingWorkflow.start(args, { invoker: "manager" });

    mockWorkflow()'s wf.job(definition) / wf.workflow(definition) now return a mock of the .start method, and wf.setTriggerHandler / wf.triggeredJobs are renamed to wf.setStartHandler / wf.startedJobs. No codemod ships for the .trigger().start() call-site rename itself — see the v2/workflow-start-rename migration guide entry for manual migration steps.

  • #1782 c971797 Thanks @toiroakr! - Remove the pre-alignment tailor.workflow names triggerWorkflow, triggerJobFunction, and resumeWorkflow (and their TriggerWorkflowOptions / TriggerJobFunctionOptions option types) from @tailor-platform/sdk/runtime, the ambient @tailor-platform/sdk/runtime/globals types, and the mockWorkflow() test facade. Use the canonical names instead:

     import { workflow } from "@tailor-platform/sdk/runtime";
    
    -await workflow.triggerWorkflow("myWorkflow", { data: "value" });
    +await workflow.startWorkflow("myWorkflow", { data: "value" });
    -workflow.triggerJobFunction("myJob", { data: "value" });
    +workflow.startJobFunction("myJob", { data: "value" });
    -await workflow.resumeWorkflow("execution-id");
    +await workflow.resumeWorkflowExecution("execution-id");

    Run the v2/workflow-trigger-rename codemod to migrate call sites automatically.

Minor Changes

  • #1800 d07a82a Thanks @toiroakr! - Machine user attribute keys now mirror the field's optionality: attributes derived from optional user fields (or optional machineUserAttributes fields) can be omitted, and null/undefined values are treated as "attribute not set" instead of being rejected at deploy time. Attributes derived from required fields remain mandatory, and undeclared attribute keys are still rejected. The generated AttributeMap type used to read user.attributes in resolvers, executors, and workflows now mirrors this same optionality, so an attribute derived from an optional field is typed as possibly absent instead of always present.

Patch Changes

  • #1741 f1cbda5 Thanks @toiroakr! - Resolve each config's files glob patterns and bundler tsconfig relative to that config file's own directory instead of the invocation cwd, so --config a/tailor.config.ts,b/tailor.config.ts no longer lets one app's file glob or path aliases bleed into another. If a files pattern matches nothing under the new directory, it falls back to resolving against cwd as before, so existing configs whose patterns were written against the invocation directory keep working.

  • #1767 c870196 Thanks @toiroakr! - Fix tsconfig paths alias resolution for dynamically loaded resolver, executor, workflow, HTTP adapter, and TailorDB type files. Previously, an import like import { foo } from "@/utils" in one of these files would fail to resolve when the file lived outside the directory tsx was registered from (e.g. in multi-app setups). Each file's paths aliases are now resolved as a fallback from its own tsconfig, based on the importing file's own directory.

  • #1788 da7d0c4 Thanks @toiroakr! - tailor deploy no longer automatically deletes on-disk bundle artifacts left by SDK versions predating the in-memory bundling approach; delete those specific stale files manually if any remain from a very old SDK version (do not delete the whole output directory, which also holds deploy state such as secrets and Auth Connection records)

  • #1785 cb97bd4 Thanks @renovate! - fix(deps): update dependency tsx to v4.23.1

  • #1801 ee382c7 Thanks @toiroakr! - Update the tailordb erd plugin install hint to reference the renamed @tailor-platform/sdk-plugin-tailordb-erd package.

@tailor-platform/eslint-plugin-sdk@0.1.0-next.0

Minor Changes

  • #1737 e349b9e Thanks @dqn! - Add lint rules that flag the external /api prefix in HTTP adapter path patterns and permission settings that grant access unconditionally, and enable them in newly scaffolded projects.

@tailor-platform/sdk-plugin-tailordb-erd@0.1.0-next.1

Minor Changes

  • #1801 ee382c7 Thanks @toiroakr! - Renamed the package from @tailor-platform/sdk-tailordb-erd-plugin to @tailor-platform/sdk-plugin-tailordb-erd, following the eslint-plugin-*-style naming convention used for CLI plugin packages. Update your dependency to the new name; the tailor-tailordb-erd executable and the tailor tailordb erd commands are unchanged.

Patch Changes

@tailor-platform/sdk-codemod@0.3.0-next.7

Patch Changes

  • #1787 898d0b0 Thanks @toiroakr! - Fix tailor upgrade reporting zero codemods across several v2 prerelease boundaries. v2/db-type-to-table and v2/runtime-subpath-namespace now trigger at 2.0.0-next.4 (where they actually shipped) instead of 2.0.0-next.3, and v2/forward-relation-name, v2/tailordb-validate-simplify, and v2/tailordb-hook-redesign now trigger at 2.0.0-next.5 instead of 2.0.0-next.4.

  • #1787 6653afd Thanks @toiroakr! - Add a V2_NEXT_PENDING placeholder prereleaseUntil for codemods whose exact 2.0.0-next.N release boundary isn't known yet at implementation time, plus a pnpm codemod:resolve-pending step (wired into the release workflow) that resolves it to the real version constant once the release PR bumps @tailor-platform/sdk's version. Prevents codemod boundaries from drifting out of sync with the version they actually ship in, which previously required a manual follow-up fix after each release.

  • #1782 c971797 Thanks @toiroakr! - Rename Workflow.trigger() (returned by createWorkflow()) and WorkflowJob.trigger() (returned by createWorkflowJob()) to .start(), aligning the SDK's ergonomic verb with the platform's start* RPC vocabulary:

     const inventory = checkInventory.trigger({ orderId: input.orderId });
    +const inventory = checkInventory.start({ orderId: input.orderId });
    
    -const workflowRunId = await orderProcessingWorkflow.trigger(args, { invoker: "manager" });
    +const workflowRunId = await orderProcessingWorkflow.start(args, { invoker: "manager" });

    mockWorkflow()'s wf.job(definition) / wf.workflow(definition) now return a mock of the .start method, and wf.setTriggerHandler / wf.triggeredJobs are renamed to wf.setStartHandler / wf.startedJobs. No codemod ships for the .trigger().start() call-site rename itself — see the v2/workflow-start-rename migration guide entry for manual migration steps.

  • #1782 c971797 Thanks @toiroakr! - Remove the pre-alignment tailor.workflow names triggerWorkflow, triggerJobFunction, and resumeWorkflow (and their TriggerWorkflowOptions / TriggerJobFunctionOptions option types) from @tailor-platform/sdk/runtime, the ambient @tailor-platform/sdk/runtime/globals types, and the mockWorkflow() test facade. Use the canonical names instead:

     import { workflow } from "@tailor-platform/sdk/runtime";
    
    -await workflow.triggerWorkflow("myWorkflow", { data: "value" });
    +await workflow.startWorkflow("myWorkflow", { data: "value" });
    -workflow.triggerJobFunction("myJob", { data: "value" });
    +workflow.startJobFunction("myJob", { data: "value" });
    -await workflow.resumeWorkflow("execution-id");
    +await workflow.resumeWorkflowExecution("execution-id");

    Run the v2/workflow-trigger-rename codemod to migrate call sites automatically.

@tailor-platform-pr-trigger
tailor-platform-pr-trigger Bot requested review from a team as code owners July 17, 2026 06:59
@pkg-pr-new

pkg-pr-new Bot commented Jul 17, 2026

Copy link
Copy Markdown

Open in StackBlitz

pnpm add https://pkg.pr.new/@tailor-platform/create-sdk@1acc75b
pnpm add https://pkg.pr.new/@tailor-platform/eslint-plugin-sdk@1acc75b
pnpm add https://pkg.pr.new/@tailor-platform/sdk@1acc75b
pnpm add https://pkg.pr.new/@tailor-platform/sdk-plugin-tailordb-erd@1acc75b

commit: 1acc75b

@tailor-platform-pr-trigger
tailor-platform-pr-trigger Bot force-pushed the changeset-release/v2 branch 2 times, most recently from e9ff219 to adf614a Compare July 17, 2026 07:02
@github-actions

This comment has been minimized.

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown

🗺️ ERD preview

Self-contained ERD viewer HTML built for this run. Each viewer can switch between the current schema and a diff against base branch v2.

@github-actions

This comment has been minimized.

@tailor-platform-pr-trigger
tailor-platform-pr-trigger Bot force-pushed the changeset-release/v2 branch 2 times, most recently from de61b01 to 8441bcf Compare July 18, 2026 00:48
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

Code Metrics Report (packages/sdk)

main (4675aa4) #1804 (e90a171) +/-
Coverage 74.5% 77.0% +2.5%
Code to Test Ratio 1:0.4 1:0.4 +0.0
Details
  |                    | main (4675aa4) | #1804 (e90a171) |  +/-  |
  |--------------------|----------------|-----------------|-------|
+ | Coverage           |          74.5% |           77.0% | +2.5% |
  |   Files            |            457 |             443 |   -14 |
  |   Lines            |          16953 |           16478 |  -475 |
+ |   Covered          |          12636 |           12703 |   +67 |
+ | Code to Test Ratio |          1:0.4 |           1:0.4 |  +0.0 |
  |   Code             |         113445 |          115376 | +1931 |
+ |   Test             |          52708 |           54814 | +2106 |

Code coverage of files in pull request scope (76.5% → 84.4%)

Details
Files Coverage +/- Status
packages/sdk-codemod/src/registry.ts 0.0% -60.0% modified
packages/sdk/example/tailordb/user.ts 0.0% -100.0% affected
packages/sdk/llm-challenge/src/types.ts 0.0% -100.0% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/diff-command.ts 0.0% -71.0% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/diff.ts 0.0% -89.5% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/export.ts 0.0% -4.4% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/local-schema.ts 0.0% -25.0% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/serve.ts 0.0% -18.8% affected
packages/sdk/packages/sdk-plugin-tailordb-erd/src/viewer.ts 0.0% -82.8% affected
packages/sdk/src/cli/commands/auth/index.ts 100.0% +100.0% affected
packages/sdk/src/cli/commands/auth/token.ts 33.3% +33.3% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/prepare.ts 90.9% -2.5% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/tailor.config.generators-compat.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/test_fixtures/tailor.config.plugins-compat.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/auth-invoker.ts 0.0% -100.0% affected
packages/sdk/src/cli/commands/deploy/deploy.ts 89.9% +84.6% affected
packages/sdk/src/cli/commands/deploy/executor.ts 83.8% +2.0% affected
packages/sdk/src/cli/commands/deploy/invoker.ts 100.0% +100.0% affected
packages/sdk/src/cli/commands/deploy/tailordb/index.ts 87.8% -0.3% affected
packages/sdk/src/cli/commands/function/logs.ts 39.7% -4.6% affected
packages/sdk/src/cli/commands/function/test-run.ts 56.8% -3.4% affected
packages/sdk/src/cli/commands/generate/service.ts 69.3% +1.3% affected
packages/sdk/src/cli/commands/login.ts 82.9% -0.9% affected
packages/sdk/src/cli/commands/plugin/index.ts 50.0% +50.0% affected
packages/sdk/src/cli/commands/plugin/list.ts 6.6% +6.6% affected
packages/sdk/src/cli/commands/profile/create.ts 77.2% +72.7% affected
packages/sdk/src/cli/commands/profile/update.ts 92.3% +0.2% affected
packages/sdk/src/cli/commands/skills/install.ts 0.0% -57.2% affected
packages/sdk/src/cli/commands/tailordb/migrate/db-types-generator.ts 95.8% -1.4% affected
packages/sdk/src/cli/commands/tailordb/migrate/diff-calculator.ts 72.9% -0.8% affected
packages/sdk/src/cli/commands/tailordb/migrate/snapshot-manifest.ts 61.7% -0.3% affected
packages/sdk/src/cli/commands/tailordb/migrate/snapshot.ts 80.2% -1.1% affected
packages/sdk/src/cli/commands/user/switch.ts 88.2% +0.7% affected
packages/sdk/src/cli/commands/workflow/start.ts 83.6% +12.5% affected
packages/sdk/src/cli/commands/workspace/create.ts 89.0% +0.2% affected
packages/sdk/src/cli/crashreport/report.ts 88.0% +2.2% affected
packages/sdk/src/cli/index.ts 50.0% -50.0% affected
packages/sdk/src/cli/query/type-field-order.ts 86.6% +86.6% affected
packages/sdk/src/cli/services/application.ts 84.3% +3.3% affected
packages/sdk/src/cli/services/executor/loader.ts 84.6% +1.2% affected
packages/sdk/src/cli/services/stale-cleanup.ts 0.0% -91.0% affected
packages/sdk/src/cli/services/tailordb/hooks-validate-bundler.ts 85.7% -1.0% affected
packages/sdk/src/cli/services/workflow/service.ts 83.7% +3.7% affected
packages/sdk/src/cli/services/workflow/start-transformer.ts 87.5% +87.5% affected
packages/sdk/src/cli/services/workflow/trigger-transformer.ts 0.0% -88.9% affected
packages/sdk/src/cli/shared/auth-namespace.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/builtin-commands.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/config-loader.ts 77.4% -6.9% affected
packages/sdk/src/cli/shared/context.ts 94.5% +15.1% affected
packages/sdk/src/cli/shared/plugin.ts 85.8% +85.8% affected
packages/sdk/src/cli/shared/register-ts-hook.ts 100.0% +100.0% affected
packages/sdk/src/cli/shared/register-tsconfig-paths-hook.ts 0.0% -100.0% affected
packages/sdk/src/cli/shared/register-typescript-runtime.ts 0.0% -100.0% affected
packages/sdk/src/cli/shared/skills-installer.ts 0.0% -93.4% affected
packages/sdk/src/cli/shared/start-context.ts 82.6% +82.6% affected
packages/sdk/src/cli/shared/trigger-context.ts 0.0% -82.7% affected
packages/sdk/src/cli/ts-hook.mjs 92.3% +92.3% affected
packages/sdk/src/cli/tsconfig-paths-hook.mjs 0.0% -96.0% affected
packages/sdk/src/configure/services/auth/index.ts 100.0% +25.0% affected
packages/sdk/src/configure/services/staticwebsite/index.ts 100.0% +100.0% affected
packages/sdk/src/configure/services/tailordb/schema.ts 96.6% +7.6% affected
packages/sdk/src/configure/services/workflow/job.ts 90.0% +4.2% affected
packages/sdk/src/configure/services/workflow/registry.ts 100.0% +9.0% affected
packages/sdk/src/configure/services/workflow/test-env-key.ts 100.0% +6.6% affected
packages/sdk/src/configure/services/workflow/workflow.ts 66.6% -13.4% affected
packages/sdk/src/parser/service/auth/schema.ts 92.6% +4.8% affected
packages/sdk/src/parser/service/executor/schema.ts 92.3% +1.3% affected
packages/sdk/src/parser/service/tailordb/builder-helpers.ts 100.0% +100.0% affected
packages/sdk/src/parser/service/tailordb/field.ts 83.8% -16.2% affected
packages/sdk/src/parser/service/tailordb/relation.ts 92.0% -0.6% affected
packages/sdk/src/parser/service/tailordb/type-script.ts 100.0% +100.0% affected
packages/sdk/src/plugin/builtin/kysely-type/type-processor.ts 91.9% +0.1% affected
packages/sdk/src/plugin/builtin/seed/index.ts 0.0% -1.6% affected
packages/sdk/src/utils/test/index.ts 95.0% -5.0% affected
packages/sdk/src/vitest/mocks/file.ts 92.5% +7.4% affected
packages/sdk/src/vitest/mocks/workflow.ts 91.2% -0.3% affected
packages/sdk/src/vitest/workflow-local.ts 77.1% +77.1% affected
packages/sdk/src/vitest/workflow-runtime.ts 70.0% +12.8% affected

SDK Configure Bundle Size

main (4675aa4) #1804 (e90a171) +/-
configure-index-size 32.17KB 31.26KB -0.91KB
dependency-chunks-size 29.88KB 24.97KB -4.91KB
total-bundle-size 62.05KB 56.22KB -5.83KB

Runtime Performance

main (4675aa4) #1804 (e90a171) +/-
Generate Median 3,134ms 2,566ms -568ms
Generate Max 3,297ms 2,621ms -676ms
Apply Build Median 3,150ms 2,600ms -550ms
Apply Build Max 3,169ms 2,614ms -555ms

Type Performance (instantiations)

main (4675aa4) #1804 (e90a171) +/-
tailordb-basic 43,881 40,072 -3,809
tailordb-optional 4,451 4,535 84
tailordb-relation 6,220 3,854 -2,366
tailordb-validate 753 666 -87
tailordb-hooks 5,279 5,499 220
tailordb-object 12,547 16,345 3,798
tailordb-enum 1,486 1,538 52
resolver-basic 9,252 12,107 2,855
resolver-nested 26,119 35,406 9,287
resolver-array 18,059 24,043 5,984
executor-schedule 4,310 4,481 171
executor-webhook 949 1,120 171
executor-record 6,762 4,532 -2,230
executor-resolver 4,090 5,777 1,687
executor-operation-function 937 1,108 171
executor-operation-gql 945 1,116 171
executor-operation-webhook 956 1,127 171
executor-operation-workflow 1,798 1,921 123

Reported by octocov

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.

0 participants