|
1 | 1 | # @tailor-platform/sdk |
2 | 2 |
|
| 3 | +## 2.0.0-next.3 |
| 4 | +### Major Changes |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +- [#1559](https://github.com/tailor-platform/sdk/pull/1559) [`ff8ef1c`](https://github.com/tailor-platform/sdk/commit/ff8ef1c1323daf81812c182e146fd53da20e676e) Thanks [@dqn](https://github.com/dqn)! - Rename auth attribute module augmentation from `AttributeMap` to `Attributes`. |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | +- [#1536](https://github.com/tailor-platform/sdk/pull/1536) [`84d9aba`](https://github.com/tailor-platform/sdk/commit/84d9aba843f14e8a7a43f0baff92dfc8afdf2821) Thanks [@toiroakr](https://github.com/toiroakr)! - Minimum Node.js version raised to 22.15.0; TypeScript loading switched from tsx to amaro |
| 13 | + |
| 14 | + Removes `tsx` (which pulled in esbuild's native binaries, ~10.5 MB) from |
| 15 | + `dependencies` and replaces it with `amaro` (~3.8 MB, zero transitive deps). |
| 16 | + |
| 17 | + A small `ts-hook.mjs` provides the Node.js module hook with both a resolver |
| 18 | + and a load hook (`amaro` for full TypeScript support including enums). |
| 19 | + The resolver handles `.ts` extension fallback, directory barrel imports |
| 20 | + (`./models` → `./models/index.ts`), and tsconfig `paths` aliases (reads |
| 21 | + `tsconfig.json` following `extends` chains). |
| 22 | + Dev-only scripts now use `node --experimental-strip-types` instead. |
| 23 | + |
| 24 | + Raises the minimum Node.js version to 22.15.0 (from >=22) to use |
| 25 | + `module.registerHooks()`, which allows synchronous hook registration directly |
| 26 | + in the main thread without a worker thread. |
| 27 | + |
| 28 | + |
| 29 | +- [#1557](https://github.com/tailor-platform/sdk/pull/1557) [`7ff575f`](https://github.com/tailor-platform/sdk/commit/7ff575fdfa15c00b5fc6282b28c0cb50bfdf927b) Thanks [@toiroakr](https://github.com/toiroakr)! - Rename the CLI binary from `tailor-sdk` to `tailor`. |
| 30 | + |
| 31 | + The output directory default changes from `.tailor-sdk` to `.tailor`, and the GitHub Actions lock file path changes from `.github/tailor-sdk.lock` to `.github/tailor.lock`. |
| 32 | + |
| 33 | + Run the `v2/rename-bin` codemod to migrate `tailor-sdk` invocations in package.json scripts, shell scripts, CI workflows, and documentation: |
| 34 | + |
| 35 | + ```sh |
| 36 | + npx @tailor-platform/sdk-codemod --from 1.x --to 2.0.0 |
| 37 | + ``` |
| 38 | + |
| 39 | + |
| 40 | +- [#1563](https://github.com/tailor-platform/sdk/pull/1563) [`501e8bf`](https://github.com/tailor-platform/sdk/commit/501e8bfdd2bca7201a1c9b036bf72087476da416) Thanks [@dqn](https://github.com/dqn)! - Standardize SDK-owned environment variables on the `TAILOR_*` namespace. |
| 41 | + |
| 42 | + Replace the removed SDK-specific environment variables with their new names: `TAILOR_CONFIG_PATH`, `TAILOR_DTS_PATH`, `TAILOR_CI_ALLOW_ID_INJECTION`, `TAILOR_DEPLOY_BUILD_ONLY`, `TAILOR_BUILD_OUTPUT_DIR`, `TAILOR_SKILLS_SOURCE`, `TAILOR_TEMPLATE_SDK_VERSION`, `TAILOR_PLATFORM_URL`, `TAILOR_PLATFORM_OAUTH2_CLIENT_ID`, `TAILOR_INLINE_SOURCEMAP`, `TAILOR_QUERY_NEWLINE_ON_ENTER`, and `TAILOR_APP_LOG_LEVEL`. The deprecated `TAILOR_TOKEN` fallback is removed; use `TAILOR_PLATFORM_TOKEN`. The v2 codemod rewrites unambiguous removed SDK environment variable names and flags generic names such as `LOG_LEVEL` and `PLATFORM_URL` for manual review. |
| 43 | + |
| 44 | +### Minor Changes |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | +- [#1541](https://github.com/tailor-platform/sdk/pull/1541) [`ca880ef`](https://github.com/tailor-platform/sdk/commit/ca880efcc7b11b14a146d042ab4b1c582d44e780) Thanks [@k1LoW](https://github.com/k1LoW)! - Add MFA support to `defineIdp`. The `userAuthPolicy` now accepts `enableMfa`, `requireMfa`, `allowedReturnOrigins`, and `mfaIssuer` to configure TOTP-based MFA for the Built-in IdP. `permission.unenrollMfa` controls who can unenroll a user's MFA factor. Static-website `:url` placeholders are accepted in `allowedReturnOrigins` and resolved at deploy time. |
| 49 | + |
| 50 | + |
| 51 | +### Patch Changes |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | +- [#1552](https://github.com/tailor-platform/sdk/pull/1552) [`2dac106`](https://github.com/tailor-platform/sdk/commit/2dac106b113aef8f456fc655397363f9cc342061) Thanks [@k1LoW](https://github.com/k1LoW)! - Update IdP examples in documentation to use `permission` instead of the legacy `authorization` field |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | +- [#1526](https://github.com/tailor-platform/sdk/pull/1526) [`b0d1487`](https://github.com/tailor-platform/sdk/commit/b0d148734a507ed8e2dc77bc034442ec5ee3175e) Thanks [@toiroakr](https://github.com/toiroakr)! - Improve CLI startup time for commands that do not connect to the platform. Commands such as `profile list`, `profile delete`, `login`, and `logout` now start approximately 5x faster (~1.6s instead of ~8s). |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +- [#1507](https://github.com/tailor-platform/sdk/pull/1507) [`7701823`](https://github.com/tailor-platform/sdk/commit/7701823ceb454509f0b28e09115f36c5508ad8e4) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @urql/core to v6.0.2 |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | +- [#1514](https://github.com/tailor-platform/sdk/pull/1514) [`21ff9fb`](https://github.com/tailor-platform/sdk/commit/21ff9fb0193b35ccdc59ba9e804884f9a5e8640e) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update oxc |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | +- [#1527](https://github.com/tailor-platform/sdk/pull/1527) [`abfc979`](https://github.com/tailor-platform/sdk/commit/abfc9797f496a81c0edb991c37e053092bf87f9e) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update rolldown |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | +- [#1532](https://github.com/tailor-platform/sdk/pull/1532) [`a54f156`](https://github.com/tailor-platform/sdk/commit/a54f156ec2ed43a279aade6fd4e3eb81879659d7) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @clack/prompts to v1.6.0 |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | +- [#1533](https://github.com/tailor-platform/sdk/pull/1533) [`e3bc2ce`](https://github.com/tailor-platform/sdk/commit/e3bc2ce65ab30ee53e5de0eb48ca6c24049fcd1b) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency politty to v0.9.2 |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +- [#1535](https://github.com/tailor-platform/sdk/pull/1535) [`a3b3387`](https://github.com/tailor-platform/sdk/commit/a3b338733081b5d9c7ab5cdb665bd96fbbc143f3) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency graphql to v17 |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | +- [#1490](https://github.com/tailor-platform/sdk/pull/1490) [`0639734`](https://github.com/tailor-platform/sdk/commit/0639734531335df884db4b5517d5e5ff6db601c7) Thanks [@toiroakr](https://github.com/toiroakr)! - refactor: migrate internal path aliases to Node subpath imports |
| 88 | + |
| 89 | + Replace the tsconfig `@/*` path alias with the `#/*` subpath import |
| 90 | + (`package.json` `imports`), and resolve `@tailor-platform/tailor-proto` as a |
| 91 | + regular package dependency instead of a `@tailor-proto/*` path alias. Internal |
| 92 | + build/resolution change only — no public API or runtime behavior change. |
| 93 | + |
3 | 94 | ## 2.0.0-next.2 |
4 | 95 | ### Major Changes |
5 | 96 |
|
|
0 commit comments