Skip to content

Releases: tailor-platform/sdk

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

Pre-release

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 17 Jul 01:52
502963f

Major Changes

  • #1776 7338457 Thanks @dqn! - Remove the built-in tailordb erd commands. They are now provided by the @tailor-platform/sdk-tailordb-erd-plugin CLI plugin: install it with npm install -D @tailor-platform/sdk-tailordb-erd-plugin and keep running tailor tailordb erd <command> as before — the CLI dispatches to the plugin automatically and suggests the install command when the plugin is missing. The erdSite TailorDB setting is unchanged.

  • #1789 36ad006 Thanks @toiroakr! - Remove the generate --watch (-W) flag. tailor generate now always runs a single generation pass; re-run the command after making changes instead of relying on the watcher to regenerate automatically.

  • #1733 09f5691 Thanks @dqn! - Require workflow executor args when the target workflow input is required, and accept primitive and array static JSON inputs during configuration parsing. Existing workflow executor configurations that omit required input must add args.

Minor Changes

  • #1776 7338457 Thanks @dqn! - Add loadTailorDBNamespaces, deployStaticWebsite, assertWritable, and isPluginGeneratedType (with their related types) to @tailor-platform/sdk/cli, so CLI plugins and scripts can load local TailorDB schema data and deploy static websites through the public API.

  • #1768 813f86e Thanks @k1LoW! - Add canonical tailor.workflow.* names that mirror the public tailor.v1 RPC vocabulary. The startWorkflow, startJobFunction, and resumeWorkflowExecution methods are now available on tailor.workflow, alongside workflow.startWorkflow / workflow.startJobFunction / workflow.resumeWorkflowExecution from @tailor-platform/sdk/runtime. The pre-alignment names (triggerWorkflow, triggerJobFunction, resumeWorkflow) continue to work as frozen aliases, but are now marked @deprecated so IDEs surface a hint to migrate to the canonical names.

Patch Changes

  • #1769 9837182 Thanks @dqn! - Fix tailor function test-run crashing with TypeError: Cannot convert undefined or null to object when --arg is a non-object JSON value such as null. The argument is now forwarded to the server, which reports the validation error. Local input validation also runs the same logic as deployed resolvers.

  • #1780 1316447 Thanks @toiroakr! - Fix a spurious TS2719 type error when a db.table() type built with custom fields is passed across module boundaries (e.g. into another package's factory function) and its .validate() callback's issues() field parameter is compared for assignability. The issues() field argument type no longer uses a self-generic parameter, so structurally-equal TailorDBType instances derived through different generic instantiation paths are recognized as compatible.

  • #1781 000db7e Thanks @dqn! - Prevent concurrent multi-config deployments from mixing resolver, executor, workflow, Auth hook, HTTP adapter, and TailorDB hook or validator bundles

  • #1777 322b69c Thanks @toiroakr! - Fail fast at generate/deploy time when a TailorDB type is missing .permission(), or missing .gqlPermission() while GraphQL operations are enabled for it (.gqlPermission() is not required when GraphQL exposure is fully disabled via gqlOperations). Previously these omissions deployed silently and only surfaced later as an opaque internal error on insert.

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

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 17 Jul 01:52
502963f

Minor Changes

  • #1776 7338457 Thanks @dqn! - New Tailor CLI plugin providing the tailor tailordb erd commands (export, diff, serve, deploy), extracted from @tailor-platform/sdk.

Patch Changes

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

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 17 Jul 07:09
52c1335

Minor Changes

  • #1776 7338457 Thanks @dqn! - New Tailor CLI plugin providing the tailor tailordb erd commands (export, diff, serve, deploy), extracted from @tailor-platform/sdk.

Patch Changes

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

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 17 Jul 01:52
502963f

Patch Changes

  • #1789 e4db171 Thanks @toiroakr! - Flag tailor generate --watch / -W invocations and programmatic generate({ watch }) usage for manual review as part of the v2 migration (the flag and its dependency watcher are removed in @tailor-platform/sdk v2).

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

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 17 Jul 01:52
502963f
Merge pull request #1779 from tailor-platform/changeset-release/v2

Version Packages (next)

@tailor-platform/sdk@1.79.0

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 16 Jul 05:27
c5d3981

Minor Changes

  • #1768 813f86e Thanks @k1LoW! - Add canonical tailor.workflow.* names that mirror the public tailor.v1 RPC vocabulary. The startWorkflow, startJobFunction, and resumeWorkflowExecution methods are now available on tailor.workflow, alongside workflow.startWorkflow / workflow.startJobFunction / workflow.resumeWorkflowExecution from @tailor-platform/sdk/runtime. The pre-alignment names (triggerWorkflow, triggerJobFunction, resumeWorkflow) continue to work as frozen aliases, but are now marked @deprecated so IDEs surface a hint to migrate to the canonical names.

Patch Changes

  • #1769 9837182 Thanks @dqn! - Fix tailor function test-run crashing with TypeError: Cannot convert undefined or null to object when --arg is a non-object JSON value such as null. The argument is now forwarded to the server, which reports the validation error. Local input validation also runs the same logic as deployed resolvers.

  • #1777 322b69c Thanks @toiroakr! - Fail fast at generate/deploy time when a TailorDB type is missing .permission(), or missing .gqlPermission() while GraphQL operations are enabled for it (.gqlPermission() is not required when GraphQL exposure is fully disabled via gqlOperations). Previously these omissions deployed silently and only surfaced later as an opaque internal error on insert.

@tailor-platform/sdk-tailordb-erd-plugin@0.0.0

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 16 Jul 04:08
f021f64

What's Changed

  • perf: share pnpm dependencies across worktrees by @dqn in #1752
  • docs(tailordb): document gqlOperations feature and namespace default by @toiroakr in #1770
  • feat(vitest): add typed runtime mock controls by @dqn in #1753
  • feat(cli): guide workspace setup during deploy by @dqn in #1754
  • chore(deps): update dependency aquaproj/aqua-registry to v4.538.0 by @renovate[bot] in #1773
  • chore(deps): update dependency tsdown to v0.22.5 by @renovate[bot] in #1772
  • chore(deps): update anthropics/claude-code-action action to v1.0.174 - autoclosed by @renovate[bot] in #1771
  • Version Packages by @tailor-platform-pr-trigger[bot] in #1765
  • feat(runtime): mirror tailor.v1 RPC names on tailor.workflow by @k1LoW in #1768
  • fix(tailordb): require .permission()/.gqlPermission() to be configured by @toiroakr in #1777
  • refactor(sdk): move field value validation into the runtime layer by @dqn in #1769
  • fix(tailordb): make issues() field param non-generic by @toiroakr in #1780
  • fix(executor): align workflow argument contracts by @dqn in #1733
  • feat(sdk)!: extract tailordb erd into a CLI plugin package by @dqn in #1776

Full Changelog: https://github.com/tailor-platform/sdk/compare/@tailor-platform/create-sdk@2.0.0-next.5...@tailor-platform/sdk-tailordb-erd-plugin@0.0.0

@tailor-platform/eslint-plugin-sdk@0.0.0

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 16 Jul 12:32
537fb40

What's Changed

  • fix(cli): isolate concurrent deployment bundles by @dqn in #1781
  • test(sdk): speed up unit test runs by narrowing vitest typecheck by @dqn in #1790
  • test(e2e): add per-attempt deadline and retry to operator client by @dqn in #1791
  • feat(lint): add Tailor SDK application rules by @dqn in #1737

Full Changelog: https://github.com/tailor-platform/sdk/compare/@tailor-platform/create-sdk@1.79.0...@tailor-platform/eslint-plugin-sdk@0.0.0

@tailor-platform/create-sdk@1.79.0

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 16 Jul 05:27
c5d3981
Merge pull request #1778 from tailor-platform/changeset-release/main

Version Packages

@tailor-platform/sdk@1.78.0

Choose a tag to compare

@tailor-platform-pr-trigger tailor-platform-pr-trigger released this 15 Jul 05:42
8b1262c

Minor Changes

  • #1753 6bff945 Thanks @dqn! - Add typed, service-specific Vitest mock controls for runtime APIs and update generated project tests to use them.

  • #1754 10392ff Thanks @dqn! - Guide workspace selection and optional creation during deploy when no workspace is configured, with machine-readable recovery actions that preserve environment and profile settings

Patch Changes

  • #1763 2abbe40 Thanks @dqn! - Reduce duplicated schema-derived type declarations.

  • #1770 9ca5eaa Thanks @toiroakr! - Document the type-level gqlOperations feature (.features({ gqlOperations }), including the "query" read-only alias) and the namespace-level db.tailordb.gqlOperations default in tailor.config.ts, clarifying that the namespace default also updates types that already exist on the platform.

  • #1764 7895ed6 Thanks @k1LoW! - Correct the execution policy matching semantics in the workflow docs: overlapping policies now stack (every matching cap is enforced independently and the tightest blocks), not longest-prefix-wins.