|
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 | +- [#1529](https://github.com/tailor-platform/sdk/pull/1529) [`9ecb380`](https://github.com/tailor-platform/sdk/commit/9ecb380acdc1b37578c23c628ab46958663b4001) Thanks [@dqn](https://github.com/dqn)! - Reject unknown keys in SDK parser schemas instead of silently dropping them from application definitions. |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | +- [#1622](https://github.com/tailor-platform/sdk/pull/1622) [`0fe8bad`](https://github.com/tailor-platform/sdk/commit/0fe8bad9afbb7702bc067ac9635b77c0438497a6) Thanks [@dqn](https://github.com/dqn)! - Remove the deprecated `auth.getConnectionToken()` helper from values returned by `defineAuth()`. Use `authconnection.getConnectionToken(...)` from `@tailor-platform/sdk/runtime` in resolvers, executors, and workflows instead. The v2 codemod rewrites direct `auth.getConnectionToken(...)` calls when the `auth` binding is imported from `tailor.config`. |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | +- [#1620](https://github.com/tailor-platform/sdk/pull/1620) [`1d71a52`](https://github.com/tailor-platform/sdk/commit/1d71a528ac57dd6fc0de2ab9b898b538608ac13e) Thanks [@dqn](https://github.com/dqn)! - Stop importing credentials and profiles from legacy `~/.tailorctl/config` when the platform config is missing. New CLI configs now start empty in the current platform config format. |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | +- [#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 |
| 25 | + |
| 26 | + Removes `tsx` (which pulled in esbuild's native binaries, ~10.5 MB) from |
| 27 | + `dependencies` and replaces it with `amaro` (~3.8 MB, zero transitive deps). |
| 28 | + |
| 29 | + A small `ts-hook.mjs` provides the Node.js module hook with both a resolver |
| 30 | + and a load hook (`amaro` for full TypeScript support including enums). |
| 31 | + The resolver handles `.ts` extension fallback, directory barrel imports |
| 32 | + (`./models` → `./models/index.ts`), and tsconfig `paths` aliases (reads |
| 33 | + `tsconfig.json` following `extends` chains). |
| 34 | + Dev-only scripts now use `node --experimental-strip-types` instead. |
| 35 | + |
| 36 | + Raises the minimum Node.js version to 22.15.0 (from >=22) to use |
| 37 | + `module.registerHooks()`, which allows synchronous hook registration directly |
| 38 | + in the main thread without a worker thread. |
| 39 | + |
| 40 | + |
| 41 | +- [#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`. |
| 42 | + |
| 43 | + 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`. |
| 44 | + |
| 45 | + Run the `v2/rename-bin` codemod to migrate `tailor-sdk` invocations in package.json scripts, shell scripts, CI workflows, and documentation: |
| 46 | + |
| 47 | + ```sh |
| 48 | + npx @tailor-platform/sdk-codemod --from 1.x --to 2.0.0 |
| 49 | + ``` |
| 50 | + |
| 51 | + |
| 52 | +- [#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. |
| 53 | + |
| 54 | + 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. |
| 55 | + |
| 56 | + |
| 57 | +- [#1556](https://github.com/tailor-platform/sdk/pull/1556) [`645949e`](https://github.com/tailor-platform/sdk/commit/645949ed64bda8b82fc44c0db54928698b12a2eb) Thanks [@toiroakr](https://github.com/toiroakr)! - Rename `defineWaitPoint` and `defineWaitPoints` to `createWaitPoint` and `createWaitPoints`. |
| 58 | + |
| 59 | + These functions create runtime instances with `.wait()` and `.resolve()` methods that call the platform API at runtime, so the `create*` prefix is more accurate. Update any usages: |
| 60 | + |
| 61 | + ```diff |
| 62 | + -import { defineWaitPoint, defineWaitPoints } from "@tailor-platform/sdk"; |
| 63 | + +import { createWaitPoint, createWaitPoints } from "@tailor-platform/sdk"; |
| 64 | + |
| 65 | + -export const approval = defineWaitPoint<Payload, Result>("approval"); |
| 66 | + +export const approval = createWaitPoint<Payload, Result>("approval"); |
| 67 | + |
| 68 | + -export const waitPoints = defineWaitPoints((define) => ({ ... })); |
| 69 | + +export const waitPoints = createWaitPoints((define) => ({ ... })); |
| 70 | + ``` |
| 71 | + |
| 72 | +### Minor Changes |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | +- [#1608](https://github.com/tailor-platform/sdk/pull/1608) [`89a29a2`](https://github.com/tailor-platform/sdk/commit/89a29a2700f69d27cc27816a02cb7abcc6c731d4) Thanks [@k1LoW](https://github.com/k1LoW)! - Add `workflow.resumeWorkflow(executionId)` to `@tailor-platform/sdk/runtime` for resuming a failed or pending-retry workflow execution from user code. `mockWorkflow()` in `@tailor-platform/sdk/vitest` gains a matching `resumeWorkflow` `vi.fn` and `setResumeHandler` helper for tests. |
| 77 | + |
| 78 | + |
| 79 | +### Patch Changes |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | +- [#1615](https://github.com/tailor-platform/sdk/pull/1615) [`5e1023c`](https://github.com/tailor-platform/sdk/commit/5e1023c4fca7e2b5b2251b7f44aa3de5d42da716) Thanks [@dqn](https://github.com/dqn)! - Include the HTTP status, status text, and response body when a machine user token request fails, instead of a fixed generic message. |
| 84 | + |
3 | 85 | ## 2.0.0-next.2 |
4 | 86 | ### Major Changes |
5 | 87 |
|
|
0 commit comments