Skip to content

chore(deps): update dependency @tailor-platform/sdk to v2.49.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

Note

This PR body was truncated due to platform limits.

This PR contains the following updates:

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

Release Notes

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

v2.49.0

Compare Source

Minor Changes
  • #​3193 020444e Thanks @​toiroakr! - Add @tailor-platform/sdk-plugin-studio, a CLI plugin that serves a local web UI shell with tailor studio.

    The shell opens one port on 127.0.0.1 (default 7777, the next free port when taken) and serves CLI plugin UIs under /plugins/<id>/, so plugins no longer need a server and port of their own. For now the shell has one built-in tab, the ERD viewer. It is built with AppShell, the UI base of the Console. Requests are accepted only for the 127.0.0.1 / localhost hosts on the shell's port, and any request other than GET / HEAD must be marked Sec-Fetch-Site: same-origin, a mark a browser sets itself, and an Origin it carries must be a local one. Requests a browser marks as coming from another site (cross-site or same-site) are rejected, so a page open in the same browser cannot trigger a tab's work. The server does not authenticate clients on the same machine, so it is meant for a machine used by one person.

    A bar at the top of the page shows the selected profile and workspace and switches them for every tab; when the choice is changed in one browser window, the bar of every other open window follows. The choice is remembered per project. The bar also creates profiles. @tailor-platform/sdk/cli exports listProfileInfos (the profiles of the platform configuration), createProfile (what tailor profile create runs), listLoggedInUsers and listWorkspacesOfUser for it, and platformConfigFromEnv, which returns the settings of TAILOR_PLATFORM_URL and its siblings that differ from the default platform. The platform is taken from the environment when tailor studio starts.

    The default tab is @tailor-platform/sdk-plugin-tailordb-erd. When it is not installed the tab shows the install command, and when the installed version does not provide a UI yet the tab says so. tailor studio is also added to the install hint that the CLI prints when a plugin executable is missing.

  • #​3321 e1d6a20 Thanks @​dqn! - Export defineWorkspace() and defineApp() (beta) from @tailor-platform/sdk, with their config types WorkspaceConfig and AppDefinition. A defineWorkspace() config declares every service of a workspace in one tailor.config.ts and lists the services each application exposes; defineApp() is its single-application form, defineConfig() without id and external. The new Workspace Configuration guide (docs/workspace.md) describes how to write, deploy, and move to one.

    With such a config:

    • tailor deploy deploys the whole workspace. Its first deploy over resources that defineConfig() configs deployed lists them and asks before taking them over. Installing @tailor-platform/sdk writes the config's tailor.d.ts.
    • query, tailordb truncate, the tailordb migration commands, function run and script, workflow run and start, api, seed, and the machineuser and oauth2client commands run on it. For the several Auth services such a config can have, a machine user or OAuth2 client can be written as <auth>/<name>, startWorkflow() and seedPlugin's machineUserName take { namespace, machineUserName }, and loadSeedContext() returns resolveMachineUser() and appName.
    • tailor show and tailor open take --app, and tailor show without it, for a config with several applications, lists the deployed ones and warns about the others. tailor data clone clones its only application, and tailor remove stops and points to tailor deploy and tailor workspace delete. For a defineConfig() config, --app accepts only the config's own name.
    • tailor setup ci generates one deploy for the whole workspace, records the config under workspaces in .github/tailor.lock, rejects --erd-preview, and takes --migration-test only when the config deploys one application that lists every TailorDB namespace with migrations. tailor setup --seed reads a seedPlugin machineUserName given as { namespace, machineUserName }.

    CLI help shows the <auth>/<name> form, and the READMEs of the seed, frontend, and TailorDB ERD plugins describe workspace configs.

  • #​3320 01ef061 Thanks @​dragon3! - Add tailor tailordb replication commands: list lists the workspace's replications, destination list lists their destinations with each one's state and the service account to grant, status <name> shows the state of each table a replication writes, and repair <name> [--type <type>...] rewrites the tables in ERROR, or the tables of the named types after confirmation.

  • #​3300 1eb84c0 Thanks @​dragon3! - Replicate TailorDB tables into a BigQuery dataset you own. Define datasets with defineTailorDBReplicationDestination(), declare a namespace's replications in its replications config, and choose the tables and fields to copy with .replication() on each table; tailor deploy creates, updates, and deletes them. A destination is deployed with the replications that use it, and dbReplicationDestinations keeps one no replication uses yet. deploy prints the service account to grant access to the dataset, and checks the grant again on each deploy until it is in place.

Patch Changes
  • #​3315 85b4512 Thanks @​dqn! - .default("now") on db.date() and db.time() fields now fills in the UTC date (YYYY-MM-DD) and UTC time (HH:mm) of the operation. Before, a record created without the field was stored with it empty, so reading a required field failed with Cannot return null for non-nullable field, and seed validation rejected a row that omitted the field. The next tailor deploy updates the tables that use it. Records created before then keep the empty value until you set the field on them: an update that leaves the field out does not fill it. A table-level create hook now receives these fields as strings, as their types declare, and createTailorDBHook and tailor seed fill --fields return and write these values in place of a full datetime.

    Seed validation also accepts a row that omits a db.datetime() field with a fixed Date default, including a Date array on an array field, a row whose field create hook returns a Date array, and a row whose table create hook returns Dates inside an array or object. It rejected these as not ISO datetimes. createTailorDBHook now returns these Dates as ISO strings.

    The PGlite CREATE TABLE script that kyselyTypePlugin writes to pgliteSchemaPath now fills a time field's "now" default to the minute, as a deployed table stores it, in place of the time with seconds; run tailor generate to update it. A migration's db.pglite.ts written from now on does the same.

  • #​3261 f493045 Thanks @​dqn! - Add the v3 codemods v3/config-to-app and v3/config-to-workspace, which tailor upgrade runs on the upgrade to v3. v3/config-to-app rewrites a defineConfig() config deployed on its own to defineApp(). v3/config-to-workspace merges the configs deployed to one workspace into one defineWorkspace() config in the upgraded directory and deletes them. Both record the config under workspaces in .github/tailor.lock, and report what they leave for a manual change. tailor upgrade now lists the files the codemods deleted.

  • #​3319 36067ab Thanks @​dqn! - The ERD preview job that tailor setup ci branch --erd-preview generates now installs Corepack itself when the base branch uses yarn, so it no longer fails with corepack: command not found on runners or container images without one, such as those with only Node.js 25 or later. When the head branch uses pnpm, the job also runs the pnpm that the head's setup installs instead of a Corepack pnpm shim. Run tailor setup update to regenerate existing workflows.

  • #​2998 0685207 Thanks @​toiroakr! - Fix getExtendedTable and getGeneratedTable for a table with .plugin() that is imported under a URL with a query string, as the generated seed schema files are when tailor seed studio loads them: getExtendedTable failed with Could not resolve namespace for table, and getGeneratedTable returned the table generated from an earlier definition after the source table was imported again. A table added to a namespace file while the process is running is found too, where the namespace file used to be read from its first import.

  • #​3312 ea284a8 Thanks @​dqn! - Fix tailor deploy keeping a TailorDB table and its records when its pending migrations remove or rename away the table and a later one adds it back. For example, with the workspace at 0000, 0001 adds an optional field f2 to Item with a migrate.ts that writes it, 0002 removes Item, and 0004 adds it back: the migrate.ts of 0001 failed with field 'f2' not found because the field was never added, and without that script the deploy finished with Item still holding the records it had before 0002.

    The migration that removes or renames away such a table now deletes it with its records once its checkpoint is committed, and the migration that adds it back creates it again, the same as deploying each migration on its own; the migrations before the removal apply their schema changes to it. When the workspace has the table, the deploy plan lists it as deleted and created, so a deploy without --yes asks to confirm the deletion. With --no-schema-check, a table that a pending migration removes or renames away is deleted the same way even when the local definitions still have it; unless a later pending migration adds it back, its local definition creates it again.

    A table whose definition a pending migration changes and a later one changes back now also gets the definition of each migration while the migrations run. Before, it kept the deployed definition, so a migrate.ts that wrote a field such a migration added failed.

  • #​3221 e6f404a Thanks @​renovate! - fix(deps): update dependency lines-db to v0.19.3

    Seed loading now reads a JSONL row surrounded by a non-breaking space or a second byte order mark the same way lines-db validate does, instead of failing with Invalid JSON. It prints a warning with the file and line of each such row.

  • #​3286 62221a0 Thanks @​renovate! - fix(deps): update dependency @​​badgateway/oauth2-client to v3.4.0

  • #​3313 173521f Thanks @​dqn! - Fix tailor deploy failing with table '<name>' not found when one deploy applies a TailorDB migration that adds a table and a later migration that removes it again or renames it away. For example, 0001 adds table Archive and its migrate.ts writes to it, and 0002 removes Archive: the deploy never created Archive, because the final schema does not have it, so the script of 0001 failed. The same happened to a table that a migration adds back after an earlier migration of the same deploy removed it, when a later migration removes it again.

    The deploy now creates such a table before the script of the migration that adds it, and deletes it once the checkpoint of the migration that removes or renames it away is committed.

    The deploy also creates the GraphQL permission such a table has in its migration, as it now does for a table of the checkpoint that a later migration removes. Previously, when a deploy stopped partway through a migration while such a table existed, the next deploy stopped with MIGRATION_REMOTE_DRIFT ("GQL permission changed") instead of resuming the migration.

  • #​3316 c82e196 Thanks @​dqn! - Type the input of TailorDB hooks with the values the Platform passes when a create or update leaves a field out. A field's .hooks() create and update receive undefined for a field the input leaves out, and null only when the input sets it to null, so input is now T | null | undefined. In a table's .hooks() create, input has id only when the input sets one (string | null | undefined), has an optional field only when the input sets it or a field hook or default fills it, and no longer lists .serial() fields.

    Some code that type-checked before now fails type checking:

    • A hook that checks input !== null before using the value, uses input.id as a string, or reads a .serial() field. Once deployed, such code threw or read undefined when the input left the field out. Check input != null (or input.id != null) first, and drop reads of .serial() fields.
    • A hook whose input parameter is annotated as T | null, or code that passes input, or an optional field of a table create hook's input, where T | null is expected. Widen the type to T | null | undefined.
    • A hook on an optional field that returns input as is. In an update hook, return input ?? oldValue to keep the stored value when the update leaves the field out; returning null clears it.
  • #​3322 5ee0fb0 Thanks @​dqn! - tailor workflow run and tailor function run --async no longer wait indefinitely after a run when the Platform does not answer the removal of its temporary resources. A removal that gets no answer within 30 seconds is given up on, together with the removals after it: the command prints the result and warns which resources may remain, and tailor workflow prune removes them. The same limit applies, and the command goes on, when tailor workflow prune removes finished runs; when tailor deploy, tailor tailordb migration test, tailor workflow run, and tailor function run --async remove the resources of earlier finished runs; when tailor seed apply removes the resources of a seed script it ran; and when tailor deploy and tailor remove remove the temporary resources of a TailorDB migration that could not start or that failed before any of its steps committed.

  • #​2998 564ebaa Thanks @​toiroakr! - Declare the row type of the seed schema of a table a plugin generates, so a table with no rows in its JSONL file is listed by tailor seed studio.

  • #​2998 7269e5f Thanks @​toiroakr! - createStandardSchema now declares the row type through ~standard.types. Tools that read a seed schema file, such as the lines-db studio, can list a table whose JSONL file has no rows and offer to add its first row.

  • #​3299 1331622 Thanks @​dqn! - A migration's db.pglite.ts now leaves nullable a required integer serial field that the migration adds to an existing table, as db.ts already allows, so a migration test can stage existing rows with that column null. The pgliteSchemaPath output of kyselyTypePlugin likewise leaves nullable an integer serial field made optional with .clone({ optional: true }) or pickFields(..., { optional: true }). A db.pglite.ts written before upgrading is not rewritten and keeps the column NOT NULL.

v2.48.0

Compare Source

Minor Changes
  • #​3271 d94954e Thanks @​dqn! - @tailor-platform/sdk/cli exports the beta generateWorkspaceUserTypes(), which writes tailor.d.ts for a config that loadConfigFile() loads as a workspace.

    Internal: installing @tailor-platform/sdk writes tailor.d.ts for a config defined with defineWorkspace() or defineApp(), which is not exported yet.

  • #​3244 9f1c657 Thanks @​dqn! - Breaking change (beta): DeployedContext now requires staticWebsites, so code that builds the context itself, such as a plugin test that calls onDeployed, fails to type-check until it adds staticWebsites: the registering config's sites keyed by name, the same ones its application.staticWebsites held.

  • #​3244 9f1c657 Thanks @​dqn! - The context of the onDeployed plugin hook now has staticWebsites, the static websites of the config that registers the plugin keyed by name, which the plugin can publish to. Its application is deprecated and will be removed in v3: read the registering config's applications from applications, picking those whose configPath equals the context's configPath. tailor upgrade to v3 runs the v3/plugin-context-application codemod, which reports plugins that read application for a manual change.

  • #​3250 723c727 Thanks @​dqn! - @tailor-platform/sdk/cli exports lockVersionFor() and parseLockWorkspaces() for .github/tailor.lock, and the beta loadConfigFile(), which loads tailor.config.ts and its plugins for SDK plugins that read the config themselves.

    TAILOR_LOCK_VERSION is now 3, the newest lock version the SDK reads. A lock that records no workspace config is still written as version 2, so older SDKs keep reading it.

  • #​3268 630f717 Thanks @​toiroakr! - Add tailor function run --async, which runs the function as an asynchronous job instead of a synchronous run, so the time limit of a synchronous run does not stop it (the Platform still ends a job after 5 minutes). The command registers the function as a temporary resource, starts it, waits for it to finish, prints its logs and result the way a synchronous run does, and removes the resource. --timeout limits how long the command waits, not how long the function may run, and --interval sets how often it checks. When the wait stops (--timeout elapsed, or Ctrl+C), the function keeps running and its resource stays: tailor function logs <execution ID> reads the outcome, and tailor workflow prune removes the resources of runs that have finished. --async cannot be combined with --watch or --name, and --timeout and --interval need --async.

    When a synchronous function run is stopped by the Platform's time limit, its error is now followed by the same command line with --async added, and --json carries it as suggestion.

  • #​3259 3866c02 Thanks @​toiroakr! - tailor function run --name is deprecated and will be removed in v3. It keeps working and prints a deprecation warning when used. Use tailor workflow run <file> --job <name> instead, which also runs the jobs the job starts with .start() and accepts only a JSON object or null as its argument. tailor upgrade reports each use of function run --name for a manual change through the v3/function-run-name-to-workflow-run codemod.

  • #​3260 4e0d088 Thanks @​toiroakr! - Add tailor function scaffold, which scaffolds a one-off script to run with function run, and deprecate tailor function script. scaffold takes the same arguments and behaves as script did, matching tailor workflow scaffold. script keeps working as an alias that prints a deprecation warning, and is removed in v3. A db.ts written by function script is still refreshed when you scaffold over it, and the file now says Generated by tailor function scaffold. tailor upgrade offers the v3/function-script-rename codemod to rewrite function script invocations in package.json scripts, shell scripts, YAML, Markdown, and commands written as strings in TypeScript and JavaScript files.

  • #​3250 16c0913 Thanks @​dqn! - tailor show lists the services the application's GraphQL API exposes under subgraphs, and show() returns them in ShowInfo.subgraphs.

  • #​3249 a9151f5 Thanks @​dqn! - tailor machineuser list and tailor oauth2client list show the Auth service of each entry, as authNamespace in --json.

  • #​3249 a9151f5 Thanks @​dqn! - tailor query takes --namespace to run a SQL query in that TailorDB namespace without inferring it from the tables the query names, and --app to name the application a GraphQL query runs against; query() takes namespace and app the same way. tailor tailordb truncate and truncate() accept a namespace together with table names, to look the tables up in that namespace only. When several namespaces have a table of the name given (compared with the same case, or ignoring case when no namespace has it with the same case), tailor query and tailor tailordb truncate now stop with TAILORDB_TABLE_NAMESPACE_AMBIGUOUS instead of using the first namespace that has it.

Patch Changes
  • #​3267 eaea547 Thanks @​toiroakr! - Accept an explicit undefined for the optional properties of the IdP, Auth, and TailorDB service config types.

  • #​3248 2698bf9 Thanks @​dqn! - Errors about a missing or unknown Auth service, IdP, invoker, migration machine user, or executor trigger target now point at the file to fix. tailor deploy and tailor tailordb migration test prefix the message with that file, put it in error.context.file, and annotate it in GitHub Actions; tailor tailordb migration validate prefixes the failed check's message in its report with it and puts it in that check's error.context.file. A service or machine user the config lacks (AUTH_CONFIG_REQUIRED, MACHINE_USER_REQUIRED, MACHINE_USER_NOT_FOUND, AUTH_MACHINE_USER_NOT_FOUND, EXECUTOR_IDP_REQUIRED), and an external Auth service a string invoker resolves through that does not exist (INVOKER_AUTH_NOT_FOUND), point at the config; an error about a value an executor or resolver names (EXECUTOR_AUTH_NOT_FOUND, EXECUTOR_IDP_AMBIGUOUS, INVOKER_AUTH_REQUIRED, INVOKER_AUTH_NOT_FOUND for an object invoker, INVOKER_MACHINE_USER_NOT_FOUND, EVENT_SUBSCRIPTION_OWNER_NOT_FOUND, DEPLOY_RESOURCE_NAMESPACE_AMBIGUOUS) points at that executor or resolver file. DEPLOY_RESOURCE_NAMESPACE_AMBIGUOUS now also names the executor, INVOKER_AUTH_REQUIRED suggests naming the Auth service with invoker: { namespace, machineUserName }, and the AUTH_CONFIG_REQUIRED error for an executor with an authAccessToken trigger names the executor and suggests defining an Auth service in the config.

  • #​3302 5999be0 Thanks @​anukiransolur! - Fix the link from the kyselyTypePlugin contentMapper section of the configuration docs to "Type Definitions Without tailor generate", which pointed to an anchor some Markdown renderers do not resolve.

  • #​3244 7f461b2 Thanks @​dqn! - In a config without an Auth service, tailor deploy now stops with WORKFLOW_START_INVOKER_AUTH_REQUIRED at a workflow .start() whose invoker is a string literal, instead of deploying a start that runs the workflow without the machine user. Name the Auth service instead: { invoker: { namespace: "<auth>", machineUserName: "<machine user>" } }. A string invoker that is not a literal in the call (a variable, a conditional, or a function call, for example) is not caught, and the workflow still runs without the machine user.

  • #​3244 c7c71c4 Thanks @​dqn! - Internal: tailor deploy builds, plans, and applies a workspace config defined with defineWorkspace() or defineApp(), which is not exported yet. Nothing changes for a defineConfig() config.

  • #​3292 42ad3d9 Thanks @​dqn! - tailor deploy now records its SDK version on the workspace as the sdk-version label after applying, keeping the workspace's other labels, so the version is recorded even for a config that deploys no application, such as one with only static websites. When the label cannot be recorded, such as when the workspace has no room for more labels, the deploy still succeeds, prints a warning, and adds a workspaceSdkVersionNotRecorded entry to the --json result's warnings.

  • #​3270 01fc6e4 Thanks @​dqn! - Internal refactoring: stop exporting a function and types that only their own modules use. No user-facing behavior change.

  • #​3294 f22bcde Thanks @​dqn! - When TAILOR_BUILD_OUTPUT_DIR is an absolute path or points outside the config file's directory (such as ../out), tailor deploy and tailor tailordb migration test now save the selected workspace in that directory under a name unique to each config file. Previously an absolute path was recreated under the config file's directory, and config files in different directories that shared ../out read each other's selection. A selection that an earlier version saved in these setups is not reused: the next deploy that does not name a workspace (--workspace-id, TAILOR_PLATFORM_WORKSPACE_ID, or a profile) selects one as on a first deploy, and a non-interactive run stops with WORKSPACE_SELECTION_REQUIRED until one run names it. For an absolute path, you can delete the copy of that path that earlier versions created under the config file's directory (for example tmp/tailor-out/ for /tmp/tailor-out).

  • #​3296 31a90e7 Thanks @​dqn! - Report the checkpoint reset that the next deploy makes in tailor tailordb migration status, instead of a migration history mismatch, for a namespace still at the checkpoint and migration history that migration rebaseline replaced. The command now exits zero in that case, lists the migrations after 0000 as pending, and reports the reset as checkpointRepair in --json output. When such a namespace records a migration in progress, it reports the error the next deploy stops with.

    For such a namespace, tailor deploy, tailor tailordb migration validate, migration status, and migration test now report an in-progress record that cannot be read as MIGRATION_IN_PROGRESS_INVALID, whose suggestion applies to it, instead of MIGRATION_IN_PROGRESS_CONFLICT; migration test reports either error instead of MIGRATION_TEST_SOURCE_REPAIR_PENDING when any source namespace waiting for the reset records a migration in progress.

  • #​3276 ff9cc29 Thanks @​toiroakr! - Stop exporting three internal helpers that no other file uses.

  • #​3258 1f51e32 Thanks @​renovate! - fix(deps): update dependency @​​enlumine/graphql to v0.2.1

  • #​3262 071a8a3 Thanks @​renovate! - fix(deps): update dependency @​​enlumine/sql to v0.2.1

  • #​3263 0657a99 Thanks @​renovate! - fix(deps): update dependency @​​enlumine/terminal to v0.2.1

  • #​3265 39f812e Thanks @​renovate! - fix(deps): update dependency @​​politty/zod to v0.7.8

  • #​3283 7f2d4dd Thanks @​renovate! - fix(deps): update dependency @​​inquirer/prompts to v8.8.1

  • #​3298 4374f22 Thanks @​renovate! - fix(deps): update dependency @​​secretlint/core to v14.1.0

  • #​3269 39b20f6 Thanks @​toiroakr! - tailor seed apply now inserts rows of a table with a self-referencing foreign key in groups instead of one row at a time. Rows whose parents are all in earlier groups share one INSERT statement (up to 100 rows each), so rows spread over a few levels take a handful of statements instead of one per row. Rows in a cycle, tables with missing or duplicate ids, and tables whose self-reference fields are unknown are still inserted one by one.

  • #​3287 39c624e Thanks @​dqn! - Internal: name the object types of function parameters that were written inline. No behavior changes.

  • #​3249 a9151f5 Thanks @​dqn! - Internal: query, tailordb truncate, the tailordb migration commands, function run and script, workflow run and start, api, seed, and the machineuser and oauth2client commands run on a workspace config defined with defineWorkspace() or defineApp(), which is not exported yet. For the several Auth services such a config can have, a machine user or OAuth2 client can be written as <auth>/<name>, startWorkflow() and seedPlugin's machineUserName take { namespace, machineUserName }, and loadSeedContext() returns resolveMachineUser() and appName. With such a config, tailordb migration test --data clone requires a single application that lists every namespace with pending migrations and exists in the source workspace, and checks this before it sets up the target workspace.

  • #​3297 cea7dc3 Thanks @​dragon3! - tailor api can inspect and call RepairTailorDBReplication.

  • #​3250 723c727 Thanks @​dqn! - Internal: for a workspace config defined with defineWorkspace() or defineApp(), which is not exported yet, tailor show and tailor open take --app, tailor show without it, for a config with several applications, lists the deployed ones and warns about the others, tailor data clone clones its only application, tailor remove stops and points to tailor deploy and tailor workspace delete, and tailor setup ci generates one deploy for the whole workspace, records the config under workspaces in .github/tailor.lock, rejects --erd-preview, and takes --migration-test only when the config deploys one application that lists every TailorDB namespace with migrations. For a defineConfig() config, --app accepts only the config's own name, and nothing else changes.

v2.47.0

Compare Source

Minor Changes
  • #​3241 2d302e2 Thanks @​dqn! - Resolvers, executor operations, and workflow.start() accept invoker: { namespace, machineUserName } to name the Auth service of the machine user. tailor deploy checks the invoker of each resolver and executor operation against the machine users of that Auth service; an object invoker was not checked before. It stops with INVOKER_MACHINE_USER_NOT_FOUND when the machine user does not exist, and with INVOKER_AUTH_NOT_FOUND when the Auth service does not exist, including for a string invoker whose external Auth service does not exist, which got INVOKER_MACHINE_USER_NOT_FOUND before. Fix the name, or deploy the config that defines the Auth service first or in the same run.

  • #​3232 6fdc372 Thanks @​dqn! - Breaking change (beta): TailorDBReadyContext, ResolverReadyContext, and ExecutorReadyContext now require auths, so code that builds one of these contexts itself, such as a plugin test that calls a hook, fails to type-check until it adds auths: {} for a config without an Auth service, or { [auth.name]: auth } for the one it passed as auth.

  • #​3218 bdfae2c Thanks @​toiroakr! - tailor tailordb migration resolve --maintenance takes the tables of a namespace out of the maintenance mode a deploy left in place after committing a migration, without settling a migration or moving the checkpoint. tailor tailordb migration status reports such a record and the command that releases it, and tailor tailordb migration sync removes it. tailor tailordb migration rebaseline now refuses to run while such a record remains and points to the new option. Before, it moved the checkpoint to 0000 and left the record at the old checkpoint, so the next tailor deploy stopped with MIGRATION_REMOTE_DRIFT (settings changed) until you ran migration sync 0000.

  • #​3232 15f56c9 Thanks @​dqn! - With kyselyTypePlugin({ contentMapper: true }), createScopedGetDB from @tailor-platform/sdk/plugin/kysely-type/db returns a getDB that type-checks only for the TailorDB namespaces you name, such as createScopedGetDB<"customer-db" | "order-db">(). To keep part of your code to those namespaces, export that getDB from a module of your own and forbid importing the SDK's with no-restricted-imports. It restricts nothing at runtime.

    The context of the generation hooks onTailorDBReady, onResolverReady, and onExecutorReady now has auths, every Auth service of the config keyed by its name. Their auth is deprecated and will be removed in v3. tailor upgrade to v3 runs the v3/plugin-context-auths codemod, which reports plugins that read auth for a manual change.

  • #​3240 58ba791 Thanks @​dqn! - Add an auth option to the authAccessToken triggers (authAccessTokenIssuedTrigger({ auth: "my-auth" }) and the others) that names the Auth service the trigger subscribes to. It must name the Auth service the config uses; deploy fails for any other name.

  • #​3196 fab9f44 Thanks @​toiroakr! - Add tailor workflow run <file>, which runs a workflow job as a temporary workflow without deploying it. The main job of the workflow the file exports as default (or the only job of the file; --job selects another one) becomes the first job of the temporary workflow, and every job it starts with .start() is registered under a name of its own, so the deployed jobs of the same name are never touched. A job that calls .start() is suspended until the started job finishes, so work that does not fit in one job (the Platform ends a job after 5 minutes) can be split across jobs. A file that defines no workflow job is refused. The command waits until the run ends (--timeout limits the wait), prints the logs of every job and the result of the first job, and removes the temporary resources. tailor workflow prune removes the resources of runs whose wait was cut short (--timeout), and warns about resources named tmp-run-… that carry no label; --include-unlabeled removes those too. tailor deploy also removes the resources of finished runs at its end, and never fails because of it. tailor workflow scaffold <file> scaffolds a workflow definition (two jobs and a createWorkflow) to run with workflow run.

Patch Changes
  • #​3234 ce477c3 Thanks @​dqn! - Internal: deploy can plan resources for a whole workspace, taking over the ones an application config deployed, for the upcoming workspace configs. Deploying a defineConfig() config is unchanged.

  • #​3229 5a3415f Thanks @​dqn! - Internal refactoring: the CLI builds the services of a config through one path that can also hold several Auth services, in preparation for workspace configs. No user-facing behavior change.

  • #​3224 6e24ed0 Thanks @​dqn! - CLI plugins now receive the user's email in TAILOR_PLATFORM_USER when the profile or TAILOR_PLATFORM_URL selects a platform other than the default, as they already did on the default platform. They previously received the user ID.

    When a profile's platform_url differs from TAILOR_PLATFORM_URL (or the default) and its user has no login saved for that platform, plugins now receive the user ID instead of the email from a login not tied to a platform. No token is injected in that case, as before.

  • #​3247 524efd8 Thanks @​dqn! - Most errors and warnings that quote a failure's message, such as the TailorDB migration and temporary resource cleanup warnings, now end with it, so a message that already ends with a period no longer gets a second one (Build failed..). DEPLOYED_HOOK_FAILED lists the hooks that did not run in its details instead of its message.

  • #​3227 a24ae12 Thanks @​dqn! - tailor deploy now rewrites the SDK labels of a resource whose configuration is unchanged when they differ from the ones the deploy sets, such as the application name label after renaming an application that keeps its id. Only the labels are written. Workflow job functions still get their labels only when their workflow is created or updated. The plan summary's labelRefreshes now counts these resources, apart from TailorDB tables and resolvers, instead of only function scripts.

  • #​3217 861b57e Thanks @​renovate! - fix(deps): update dependency @​​secretlint/core to v14.0.1

  • #​3225 a0411a7 Thanks @​renovate! - fix(deps): update oxc

  • #​3242 [ce9c159](https://redirect.github.com/tailor-platform/sdk/commit/c

[!IMPORTANT]
✂ PR body was truncated to here.


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
@renovate
renovate Bot force-pushed the renovate/tailor-platform-sdk-and-erp-kit-packages branch 2 times, most recently from 030866a to a65b8b8 Compare November 27, 2026 03:13
@renovate renovate Bot changed the title chore(deps): update dependency @tailor-platform/sdk to v2.46.0 chore(deps): update dependency @tailor-platform/sdk to v2.47.0 Nov 27, 2026
@renovate
renovate Bot force-pushed the renovate/tailor-platform-sdk-and-erp-kit-packages branch from a65b8b8 to 059172a Compare November 29, 2026 02:31
@renovate renovate Bot changed the title chore(deps): update dependency @tailor-platform/sdk to v2.47.0 chore(deps): update dependency @tailor-platform/sdk to v2.48.0 Nov 29, 2026
@renovate
renovate Bot force-pushed the renovate/tailor-platform-sdk-and-erp-kit-packages branch from 059172a to 9e4eaaf Compare November 30, 2026 06:25
@renovate renovate Bot changed the title chore(deps): update dependency @tailor-platform/sdk to v2.48.0 chore(deps): update dependency @tailor-platform/sdk to v2.49.0 Nov 30, 2026
@renovate
renovate Bot force-pushed the renovate/tailor-platform-sdk-and-erp-kit-packages branch from 9e4eaaf to 6964fc7 Compare December 1, 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.

0 participants