Repository navigation
Update dependency @tailor-platform/sdk to v2.22.0 - #125
Merged
Merged
Conversation
renovate
Bot
force-pushed
the
renovate/tailor-platform-sdk-2.x
branch
from
September 28, 2026 08:02
6087c81 to
c2fe225
Compare
jackchuka
approved these changes
Sep 29, 2026
jackchuka
left a comment
Member
There was a problem hiding this comment.
@tailor-platform/sdk 2.20.0 → 2.22.0. 2.22 requires export const plugins naming — already used in step-03/04; no other affected APIs used. CI generate/typecheck/lint/fmt pass. Safe to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
2.20.0→2.22.0Release Notes
tailor-platform/sdk (@tailor-platform/sdk)
v2.22.0Compare Source
Minor Changes
#2346
87a6579Thanks @dqn! - Add theTAILOR_JSON_OUTPUTenvironment variable to default CLI output to JSON without passing--jsonon every call, for agents, scripts, and CI. Set it totrueor1to enable JSON;falseor0keeps table output. An explicit--jsonstill wins, and with the variable unset every command keeps its current output, so existing pipes and CI steps are unaffected. Dispatched CLI plugins inherit the variable from the environment.#2403
7c3e1ccThanks @toiroakr! -@tailor-platform/sdk/clinow exportsappIdLockKeyandresolveAppId, so a CLI plugin can read a config's application id the same waydeploydoes — preferring the id recorded in.github/tailor.lock, falling back to the id the config module evaluates to.resolveAppIdnever writes the lock, edits the config, or prompts, and resolves toundefinedwithout warning when neither source has an id. A config id that disagrees with the lock, or that already belongs to a different, still-existing config, throwsAPP_ID_CONFLICTinstead of guessing.#2339
1d60b6aThanks @toiroakr! - Lock the beta plugin config export name toplugins.definePlugins()must be assigned toexport const pluginsintailor.config.ts; any other export name (plugins2,generator,generators, etc.) is no longer read for plugins, matching the documented convention. Apluginsexport that is not an array, or that contains an item that is not a valid plugin, now fails config loading with a descriptive error instead of being silently dropped. A duplicate plugin ID withinpluginsnow fails config loading in every code path instead of silently keeping only the last one.Provide a v2 minor-release upgrade codemod for existing
generator/generatorsexports. Preserve unrelated imports and shadowed variables, and leave imports unchanged when their config cannot be safely renamed. Include.mtsand.ctsimports and report remaining split exports or multiple plugin arrays for manual migration.Patch Changes
#2428
1f18ce8Thanks @toiroakr! - FixFORBIDDEN_RUNTIME_GLOBALwrongly rejecting workflow jobs and executors whose dependencies detect the environment withtypeofternaries such astypeof global !== "undefined" ? global : ...ortypeof window === "undefined" ? {} : window, including after the bundle is minifiedFix TailorDB hooks and validators dropping a constant from the same file when they read it behind a
typeofcheck such astypeof DEFAULT_VALUE !== "undefined" && DEFAULT_VALUE#2426
3ebdc0cThanks @renovate! - fix(deps): update dependency @toiroakr/lines-db to v0.13.0#2429
214e199Thanks @renovate! - fix(deps): update dependency get-east-asian-width to v1.7.0#2430
b6a0146Thanks @renovate! - fix(deps): update dependency type-fest to v5.10.0#2431
716c337Thanks @renovate! - fix(deps): update oxc#2444
c4fcd01Thanks @renovate! - chore(deps): lock file maintenance#2426
f3a0671Thanks @renovate! -tailor seed validatenow reports a JSONL line that is not valid JSON with its file and line, and points the GitHub Actions annotation at that line.#2419
c984ba0Thanks @dqn! - Re-runningtailor setup cinow keeps your own jobs, steps, and top-level keys in generated workflows and composite actions, along withruns-on/timeout-minutes/container/envon managed jobs and the documented editable inputs (such asuser-mappingontailor-notify).tailor setup checkonly reports edits to SDK-managed parts, and--forceresets those parts without discarding your additions. Files generated by an older version need one--forcere-run if you had edited them.setup ci branch,setup ci tag, andsetup ci coordinateaccept--restrict-dispatch, which lets a manualworkflow_dispatchdeploy only the target branch (branch targets) or a tag, which must also pass the reachability guard when--branchis set (tag targets). Dry runs stay available from any ref.v2.21.0Compare Source
Minor Changes
#2417
f9f2791Thanks @toiroakr! - Make function bundles smaller by leaving out code they do not use:DateandTemporalvalues for the representations (as: "date"oras: "temporal") the resolver'sinputandoutputfields use. A resolver without such fields includes neither.Add
parseDateFieldsto@tailor-platform/sdk/runtime. It parses a value likefield.parseand always converts fields declared withas: "date"oras: "temporal". Inside a resolverbody, calling.parse()on a field whose representation the resolver'sinputandoutputdo not use now throws an error pointing toparseDateFields; useparseDateFieldsthere instead.#2402
e8651deThanks @toiroakr! - Fix the Secret Manager runtime-access guidance: reading a secret from a resolver, executor, or workflow via thesecretsobject exported bydefineSecretManager()fails to build withFORBIDDEN_RUNTIME_GLOBAL (process)once any vault value comes fromprocess.env, because that object also carries the raw config values into the deployed bundle. The docs now recommendsecretmanager.getSecret()/getSecrets()from@tailor-platform/sdk/runtimeinstead, which never touches the config object.secretmanager.getSecret()/getSecrets()'s vault and secret name arguments are now type-checked and autocompleted, the same wayaigateway.get()andauthconnection.getConnectionToken()already are: aftertailor generate/tailor deploy, vault names declared viadefineSecretManager()are suggested (any other string still works, since vaults can also be managed via the CLI), and secret names inside a declared vault are checked against that vault's configuration.defineSecretManager()'sget()/getAll()methods are now@deprecatedfor the same reason and will be removed in a future major version; a codemod (v3/secrets-get-to-secretmanager) is registered to guide the migration.Patch Changes
#2399
78e3b5eThanks @renovate! - chore(deps): update dependency @types/node to v24.13.5#2406
6fa2839Thanks @renovate! - fix(deps): update dependency kysely to v0.29.6#2407
759cd65Thanks @renovate! - fix(deps): update dependency p-limit to v7.3.3#2408
cd150c4Thanks @renovate! - fix(deps): update dependency rolldown to v1.2.9#2413
6298636Thanks @renovate! - chore(deps): update dependency tsx to v4.23.15#2420
7de777dThanks @renovate! - fix(deps): update dependency @bufbuild/protovalidate to v1.3.0#2421
a04b239Thanks @renovate! - fix(deps): update dependency @politty/zod to v0.3.0#2427
d121b73Thanks @renovate! - fix(deps): update dependency amaro to v1.2.1Configuration
📅 Schedule: (UTC)
🚦 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.
This PR was generated by Mend Renovate. View the repository job log.