Skip to content

chore(deps): update dependency @tailor-platform/sdk to v2.46.0 - #235

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/tailor-platform-sdk-and-erp-kit-packages
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/tailor-platform-sdk-and-erp-kit-packages

Conversation

@renovate

@renovate renovate Bot commented Nov 22, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
@tailor-platform/sdk (source) 2.42.0 → 2.46.0 age confidence

Release Notes

tailor-platform/sdk (@​tailor-platform/sdk)

v2.46.0

Compare Source

Minor Changes
  • #​3165 96f7917 Thanks @​mocchira! - Add tailor.sandbox (beta) for running commands and managing files in an isolated sandbox from Functions. Import the typed wrapper from @tailor-platform/sdk/runtime/sandbox (also exported as sandbox from @tailor-platform/sdk/runtime), or use the ambient tailor.sandbox types from @tailor-platform/sdk/runtime/globals. A sandbox created without name is destroyed when the execution ends; pass name to keep it and reopen it later with getByName or getOrCreate. Unit tests can use the in-memory mockSandbox() from @tailor-platform/sdk/vitest.
Patch Changes
  • #​3228 2cbdd9b Thanks @​dqn! - Fix the migration db.ts types to match the app's generated Kysely types: inserts can leave out fields that have a default or a create hook (such as db.fields.timestamps()), and values for serial fields are rejected. A serial field whose existing values the migration script has to fill or deduplicate stays writable. Existing db.ts files are not regenerated.

v2.45.0

Compare Source

Minor Changes
  • #​3202 8a93054 Thanks @​dqn! - Breaking change: In non-interactive or JSON mode, tailor deploy (and the deploy() / apply() exports of @tailor-platform/sdk/cli) no longer picks the only workspace visible to the account on its own, so a first deploy from a fresh clone, CI, or an AI agent cannot land in another project's workspace. When no workspace comes from --workspace-id, TAILOR_PLATFORM_WORKSPACE_ID, the profile, or a saved selection, it now stops with WORKSPACE_SELECTION_REQUIRED. Pass --workspace-id or set TAILOR_PLATFORM_WORKSPACE_ID to keep such runs working. Interactive terminals, --create-workspace reruns, and saved selections are unchanged.

  • #​3205 c6072bb Thanks @​dqn! - Breaking change: configArg and deploymentArgs exported from @tailor-platform/sdk/cli no longer default config to "tailor.config.ts", so a CLI plugin built on them gets undefined when neither --config nor TAILOR_CONFIG_PATH is given. Pass args.config as is to loadConfig(), which then uses the nearest tailor.config.ts in the current or a parent directory, or handle undefined where the plugin needs a path.

  • #​3205 c6072bb Thanks @​dqn! - CLI commands now look for tailor.config.ts in parent directories when neither --config nor TAILOR_CONFIG_PATH is given, so running tailor generate, tailor show, or another command that reads the config from a subdirectory of your project uses the project's config instead of failing with CONFIG_NOT_FOUND. A tailor.config.ts in the current directory is still used first. tailor deploy now remembers which Secret Manager secrets and Auth Connection client secrets it has applied per config instead of per current directory, so it skips the unchanged ones from any directory. If you have deployed with --config or TAILOR_CONFIG_PATH naming a config in another directory, the next deploy updates those secrets once.

  • #​3203 d4ca31c Thanks @​dqn! - Leave the number of metadata entries to the platform's limit on labels per application instead of capping it in the SDK. A config with more than 17 entries now loads, and deploy no longer counts the application's labels before it changes anything, so deploy --dry-run does not report an overflow. When the platform rejects the labels for their count, deploy writes the SDK's own labels without the metadata entries when those fit, applies the rest of its changes, runs plugins' onDeployed hooks, and then fails with DEPLOY_LABEL_LIMIT_EXCEEDED, naming the entries it did not write.

  • #​3205 04ff663 Thanks @​dqn! - Breaking change (beta): tailor generate resolves relative paths of the files plugins generate, such as a built-in plugin's relative distPath, against the directory of tailor.config.ts instead of the current directory, and tailor seed, tailor tailordb migration test, and tailor function script read a relative seed or Kysely distPath the same way. This only changes where files go when the current directory is not the config's directory, for example when --config or TAILOR_CONFIG_PATH names a config in another directory: generated files now land next to that config. Move the files generated before into that directory and update the imports that point at them. A custom plugin's generation-time hook still runs in the current directory, so a hook that builds paths of its own from a relative path in its options, such as an import between generated files, needs to resolve that path against path.dirname(ctx.configPath) first.

  • #​3207 d352a28 Thanks @​dqn! - Add { create: value } secret values to defineSecretManager(). tailor deploy creates such a secret only when it does not exist yet and leaves an existing one unchanged, so a value generated once per environment, such as an encryption key, keeps its value across deploys.

  • #​3204 3965bbe Thanks @​dqn! - Commands that create a single resource, such as tailor secret vault create and tailor secret create, and clients from initOperatorClient now handle a resource that already exists the same way every time:

    • They no longer save a crash report or print "An unexpected error occurred" before the already-exists error.
    • When a create is retried automatically after a transient error and the retry finds the resource, they now fail with the already-exists error instead of reporting success. Before, tailor secret create for an existing secret could report the secret as created while it kept its old value. The same error now also appears when the first attempt did create the resource but its response was lost; check the resource before creating it again.

    Deploys (tailor deploy, tailor tailordb migration test, and deploy()), tailor tailordb migration sync, and tailor tailordb migration resolve keep their handling. To give your own client that handling, pass createsPlannedResources: true to initOperatorClient.

Patch Changes
  • #​3201 97335d4 Thanks @​dqn! - Pre-flight validation in tailor deploy now also checks TailorDB GraphQL permissions and function uploads. A GraphQL permission policy with no actions, or a resolver, executor, workflow job, or Auth hook bundle over 20 MiB, now fails before deploy applies anything, instead of during apply, where an oversized bundle failed with HTTP 503.

  • #​3212 84e4742 Thanks @​dqn! - Wait for a CLI plugin to stop when Ctrl+C is pressed and exit with its exit code, and pass a SIGTERM sent to tailor on to the plugin instead of leaving the plugin running

  • #​3183 f42f99a Thanks @​dqn! - Report moving a relation to another key of the same table as a breaking change in tailor tailordb migration generate and scaffold the repair of the stored references in migrate.ts; the same change on a field inside db.object() is rejected, as moving it to another table already was

  • #​3183 9fd196c Thanks @​dqn! - Apply a relation that a TailorDB migration moves to another table or key only after migrate.ts runs, as for a relation added to an existing field, so a migration step that updates rows still pointing at the old target no longer fails on deploy

  • #​3206 c39c53a Thanks @​dqn! - Internal: the config loader can now parse the upcoming workspace config formats, which are not exported yet. Loading a defineConfig() config, its validation, and its error messages are unchanged.

  • #​3183 45fb3f5 Thanks @​dqn! - List the breaking changes of one TailorDB field in tailordb migration generate in the order its generated migration script handles them

  • #​3199 dfa1b4d Thanks @​renovate! - Update @politty/zod to 0.7.5, so a lone - after an option that takes a value, such as --value -, is read as its value instead of being rejected

  • #​3208 c4c2e25 Thanks @​toiroakr! - Fix tailor deploy failing with internal error when it replays a TailorDB migration history from 0000 into a workspace without a checkpoint and a later migration removes a table. For example, 0000 creates tables A and B (B.aId references A), 0001 has a migrate.ts that runs an UPDATE, and 0002 removes A: the deploy never created A, so B kept a foreign key to a table that did not exist and the UPDATE in 0001 failed. A rename failed the same way, because the generated script of the renaming migration reads the old table.

    The deploy now creates every table of the 0000 schema before the first migrate.ts runs, including the ones a later migration removes or renames away, and the migration that removes or renames a table deletes it once its checkpoint is committed. A table that a later migration removes and then adds again is deleted at the removal and created again at the addition.

    The phases of a migration also write the schema that migration defines to such a table, so a migrate.ts can read a field that an earlier migration added to a table a later migration removes. A deploy that finds a table whose deletion an earlier deploy left unfinished, and that a later migration adds back, deletes it and creates it again instead of reporting remote schema drift.

v2.44.0

Compare Source

Minor Changes
  • #​3175 dd55ff2 Thanks @​k1LoW! - OAuth2 clients can keep refresh tokens for up to 90 days. refreshTokenLifetimeSeconds in oauth2Clients now accepts up to 7776000 seconds (90 days), and the new refreshTokenIdleLifetimeSeconds (60 seconds to 30 days) expires a refresh token once it has not been used for that long. A refreshTokenLifetimeSeconds above 7 days requires refreshTokenIdleLifetimeSeconds, which must be between accessTokenLifetimeSeconds and refreshTokenLifetimeSeconds.

  • #​3187 55286e0 Thanks @​dqn! - Breaking change: Remove relation and as from the type of a TailorDB field's metadata. The SDK never set either key on a TailorDB field, so reading them always returned undefined; delete any code that reads them

Patch Changes
  • #​3175 42245d5 Thanks @​k1LoW! - Recognize the CANCELING workflow execution status, which an execution holds between a cancel request and CANCELED. tailor workflow executions --status CANCELING filters by it, and commands that wait for an execution keep waiting through it.

  • #​3182 48cc087 Thanks @​dqn! - Report a configuration change to an Auth connection in the tailor deploy plan as an update instead of a replacement. The plan marks it ~ instead of ±, --json reports "action": "update" and counts it in summary.update instead of summary.replace, and pre-flight validation errors label it (update). Deploy still updates the connection in place, as before.

  • #​3186 59e8786 Thanks @​dqn! - Fix createTailorDBHook so a table-level create hook receives the same input as when deployed: the id only when the data has one, only the fields the data carries or a field hook or default fills, and the dates that field hooks and "now" defaults produce as Date objects rather than ISO strings. A table hook that computes values from its input, run in unit tests or through tailor seed validate and tailor seed fill, now gets the same result as when deployed.

  • #​3189 f57cd39 Thanks @​dqn! - Stop tailor deploy from planning an update on every run for an IdP whose permission denies every operation with empty lists

  • #​3177 8137b34 Thanks @​dqn! - Document the SEED_DATA_NOT_FOUND and SEED_DATA_INVALID error codes of tailor tailordb migration test

  • #​3187 6e9e004 Thanks @​dqn! - Fix webhook executors whose headers has an undefined value, which failed to load; that header is now left out of the request

  • #​3175 e9b6ca4 Thanks @​k1LoW! - Follow the Platform API, whose list responses for machine users and OAuth2 clients no longer carry a client secret. tailor deploy, tailor show, tailor machineuser list and tailor oauth2client list behave as before.

  • #​3185 f820cde Thanks @​renovate! - fix(deps): update dependency @​​secretlint/core to v14

  • #​3188 824fc17 Thanks @​dqn! - Show an OAuth2 client that tailor deploy replaces for a client type change under its Auth service in the plan, with that service as its namespace in --dry-run --json. Change how these deploy messages name resource types:

    • The duplicate-name and Auth IdP config conflict errors say "Auth service" and "IdP service" instead of "Auth namespace" and "IdP namespace".
    • Pre-flight validation says "TailorDB namespace", "Resolver namespace", "Auth IdP config", and "Workflow job" instead of "TailorDB service", "Pipeline service", "Auth IDP config", and "Workflow job function".
    • The owner-conflict and unmanaged-resource lists of the plan and its confirmation prompts say "TailorDB namespace", "Resolver namespace", and "Function" instead of "TailorDB service", "Pipeline service", and "Function registry".
    • The warning about a workflow job left undeleted because a workflow still references it says "Workflow job" instead of "workflow job function".
  • #​3175 5f41199 Thanks @​k1LoW! - Follow the Platform API for IdP. Its list response for IdP clients no longer carries a client secret, and it now carries the rule that userAuthPolicy.allowedEmailDomains must be set, which tailor deploy already checked. tailor deploy behaves as before and still reports a missing allowedEmailDomains once.

  • #​3187 bdb7a6e Thanks @​dqn! - Fix resolvers and machineUserAttributes that use a TailorDB field defined with .unique(), .index(), .vector(), .serial(), or a decimal scale: they failed to load with an unrecognized key error


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot requested a review from a team as a code owner November 22, 2026 10:27
@renovate
renovate Bot force-pushed the renovate/tailor-platform-sdk-and-erp-kit-packages branch from ef633f3 to 41ac12b Compare November 23, 2026 06:08
@renovate renovate Bot changed the title chore(deps): update dependency @tailor-platform/sdk to v2.44.0 chore(deps): update dependency @tailor-platform/sdk to v2.45.0 Nov 23, 2026
@renovate
renovate Bot force-pushed the renovate/tailor-platform-sdk-and-erp-kit-packages branch from 41ac12b to cc82c09 Compare November 23, 2026 12:40
@renovate renovate Bot changed the title chore(deps): update dependency @tailor-platform/sdk to v2.45.0 chore(deps): update dependency @tailor-platform/sdk to v2.46.0 Nov 23, 2026
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