@tailor-platform/create-sdk 2.0.0-next.10 → 2.0.0-next.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/package.json +5 -5
- package/templates/executor/.oxlintrc.json +1 -0
- package/templates/executor/package.json +5 -5
- package/templates/generators/.oxlintrc.json +1 -0
- package/templates/generators/package.json +6 -6
- package/templates/hello-world/.oxlintrc.json +1 -0
- package/templates/hello-world/package.json +5 -5
- package/templates/inventory-management/.oxlintrc.json +1 -0
- package/templates/inventory-management/package.json +5 -5
- package/templates/multi-application/.oxlintrc.json +1 -0
- package/templates/multi-application/package.json +5 -5
- package/templates/resolver/.oxlintrc.json +1 -0
- package/templates/resolver/package.json +5 -5
- package/templates/resolver/tailor.d.ts +2 -2
- package/templates/static-web-site/.oxlintrc.json +1 -0
- package/templates/static-web-site/package.json +5 -5
- package/templates/tailordb/.oxlintrc.json +1 -0
- package/templates/tailordb/package.json +5 -5
- package/templates/workflow/.oxlintrc.json +1 -0
- package/templates/workflow/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# @tailor-platform/create-sdk
|
|
2
2
|
|
|
3
|
+
## 2.0.0-next.11
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1890](https://github.com/tailor-platform/sdk/pull/1890) [`9fdacdc`](https://github.com/tailor-platform/sdk/commit/9fdacdcbbdcb18f4b324470ac34ca70215f962aa) Thanks [@toiroakr](https://github.com/toiroakr)! - Add a lint rule (`no-execute-script-arg-stringify`) that flags passing a `JSON.stringify(...)` result as `executeScript`'s `arg` option — `executeScript` serializes `arg` internally, so a pre-stringified value silently double-encodes at runtime. Enabled in newly scaffolded projects.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#1915](https://github.com/tailor-platform/sdk/pull/1915) [`dc691ec`](https://github.com/tailor-platform/sdk/commit/dc691ec1e2181400c6715233f0588a1b5150038f) Thanks [@toiroakr](https://github.com/toiroakr)! - Generate the `Env` interface in `tailor.d.ts` from the type of each `defineConfig({ env })` value instead of the value itself. The resolved value used to be written in as a literal type, so running `generate` or `deploy` with real environment variables loaded stamped those values into a file that is normally committed.
|
|
12
|
+
|
|
13
|
+
```diff
|
|
14
|
+
interface Env {
|
|
15
|
+
- API_BASE: "https://api.example.com";
|
|
16
|
+
- RETRIES: 3;
|
|
17
|
+
- VERBOSE: true;
|
|
18
|
+
+ API_BASE: string;
|
|
19
|
+
+ RETRIES: number;
|
|
20
|
+
+ VERBOSE: boolean;
|
|
21
|
+
}
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`env` keys that aren't valid TypeScript identifiers (for example `"API-BASE"`) are now quoted as well; previously they were emitted bare and produced a `tailor.d.ts` that failed to parse.
|
|
25
|
+
|
|
26
|
+
Run `tailor generate` after upgrading to refresh the file. Code that relied on the literal narrowing — comparing `env.STAGE` against a literal union, for example — has to widen its own types or read the value through a local narrowing check. If a `tailor.d.ts` you already committed contains a sensitive value, treat that value as exposed and rotate it; keep secrets in [Secret Manager](https://github.com/tailor-platform/sdk/blob/main/packages/sdk/docs/services/secret.md) rather than `env`.
|
|
27
|
+
|
|
28
|
+
- [#1808](https://github.com/tailor-platform/sdk/pull/1808) [`a4cdee0`](https://github.com/tailor-platform/sdk/commit/a4cdee079707105213f8e5833dcaa613f39c8464) Thanks [@toiroakr](https://github.com/toiroakr)! - Remove the APIs that were marked `@deprecated` on the way to v2, so 2.0.0 ships without deprecated aliases. Each removal has migration coverage in `tailor upgrade`:
|
|
29
|
+
|
|
30
|
+
- `@tailor-platform/sdk/cli` no longer re-exports `kyselyTypePlugin`, `enumConstantsPlugin`, `fileUtilsPlugin`, and `seedPlugin`. Import them from `@tailor-platform/sdk/plugin/kysely-type`, `/plugin/enum-constants`, `/plugin/file-utils`, and `/plugin/seed` (codemod `v2/plugin-cli-import`).
|
|
31
|
+
- `tailor.workflow.startJobFunction` and the `StartJobFunctionOptions` type are removed; use the canonical `execJobFunction` / `ExecJobFunctionOptions` (new codemod `v2/exec-job-function-rename`). `mockWorkflow()` no longer exposes the `startJobFunction` alias — assert on its `execJobFunction` mock instead — and `v2/workflow-trigger-rename` now rewrites `triggerJobFunction` straight to `execJobFunction`.
|
|
32
|
+
- `@tailor-platform/sdk/test` no longer exports the platform-global mocks `setupTailordbMock`, `setupWorkflowMock`, `setupWaitPointMock`, `setupInvokerMock`, and `setupTailorErrorsMock`, nor the bundled-output helper `createImportMain`. Use the `tailor-runtime` environment from `@tailor-platform/sdk/vitest` with `mockTailordb` / `mockWorkflow` (migration guidance: `v2/sdk-test-mocks-to-vitest`). `createTailorDBHook`, `createStandardSchema`, and `unauthenticatedTailorUser` are unchanged.
|
|
33
|
+
- The programmatic CLI functions no longer accept name-keyed options: `GetWorkflowOptions`, `StartWorkflowOptions`, `ListWorkflowExecutionsOptions`, `GetExecutorOptions`, `TriggerExecutorOptions`, `ListExecutorJobsOptions`, `GetExecutorJobOptions`, and `WatchExecutorJobOptions` are removed along with the overloads that took them. Pass the definition itself — `startWorkflow({ workflow: myWorkflow, invoker: "admin" })`, `watchExecutorJob({ executor: myExecutor, jobId })` — which also types `arg` and `payload` from the definition (migration guidance: `v2/cli-typed-options`). The name-keyed entry points remain available as CLI commands (`tailor workflow start <name>`, `tailor executor trigger <name>`).
|
|
34
|
+
|
|
3
35
|
## 2.0.0-next.10
|
|
4
36
|
|
|
5
37
|
### Patch Changes
|
|
@@ -8,6 +40,10 @@
|
|
|
8
40
|
|
|
9
41
|
## 2.0.0-next.9
|
|
10
42
|
|
|
43
|
+
## 1.85.0
|
|
44
|
+
|
|
45
|
+
## 1.84.0
|
|
46
|
+
|
|
11
47
|
## 1.83.0
|
|
12
48
|
|
|
13
49
|
## 1.82.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/create-sdk",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.11",
|
|
4
4
|
"description": "A CLI tool to quickly create a new Tailor Platform SDK project",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -21,15 +21,15 @@
|
|
|
21
21
|
"execa": "10.0.0",
|
|
22
22
|
"picocolors": "1.1.1",
|
|
23
23
|
"pkg-types": "2.3.1",
|
|
24
|
-
"politty": "0.11.
|
|
24
|
+
"politty": "0.11.6",
|
|
25
25
|
"zod": "4.4.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@types/node": "24.13.3",
|
|
29
29
|
"eslint-plugin-zod": "4.7.0",
|
|
30
|
-
"oxlint": "1.
|
|
31
|
-
"oxlint-tsgolint": "0.
|
|
32
|
-
"tsdown": "0.22.
|
|
30
|
+
"oxlint": "1.76.0",
|
|
31
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
32
|
+
"tsdown": "0.22.14",
|
|
33
33
|
"typescript": "6.0.3"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
19
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
18
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
19
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
20
20
|
"@types/node": "24.13.3",
|
|
21
|
-
"oxfmt": "0.
|
|
22
|
-
"oxlint": "1.
|
|
23
|
-
"oxlint-tsgolint": "0.
|
|
21
|
+
"oxfmt": "0.61.0",
|
|
22
|
+
"oxlint": "1.76.0",
|
|
23
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
24
24
|
"typescript": "6.0.3",
|
|
25
25
|
"vitest": "4.1.10"
|
|
26
26
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "src/generated/", "src/seed/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -17,13 +17,13 @@
|
|
|
17
17
|
"typecheck": "tsc --noEmit"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
21
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
22
|
-
"@tailor-platform/sdk-plugin-seed": "0.1.0-next.
|
|
20
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
21
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
22
|
+
"@tailor-platform/sdk-plugin-seed": "0.1.0-next.3",
|
|
23
23
|
"@types/node": "24.13.3",
|
|
24
|
-
"oxfmt": "0.
|
|
25
|
-
"oxlint": "1.
|
|
26
|
-
"oxlint-tsgolint": "0.
|
|
24
|
+
"oxfmt": "0.61.0",
|
|
25
|
+
"oxlint": "1.76.0",
|
|
26
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
27
27
|
"typescript": "6.0.3",
|
|
28
28
|
"vitest": "4.1.10"
|
|
29
29
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
17
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
16
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
17
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
18
18
|
"@types/node": "24.13.3",
|
|
19
|
-
"oxfmt": "0.
|
|
20
|
-
"oxlint": "1.
|
|
21
|
-
"oxlint-tsgolint": "0.
|
|
19
|
+
"oxfmt": "0.61.0",
|
|
20
|
+
"oxlint": "1.76.0",
|
|
21
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
22
22
|
"typescript": "6.0.3"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
17
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
16
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
17
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
18
18
|
"@types/node": "24.13.3",
|
|
19
|
-
"oxfmt": "0.
|
|
20
|
-
"oxlint": "1.
|
|
21
|
-
"oxlint-tsgolint": "0.
|
|
19
|
+
"oxfmt": "0.61.0",
|
|
20
|
+
"oxlint": "1.76.0",
|
|
21
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
22
22
|
"typescript": "6.0.3"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
"typecheck": "tsc --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
18
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
17
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
18
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
19
19
|
"@types/node": "24.13.3",
|
|
20
|
-
"oxfmt": "0.
|
|
21
|
-
"oxlint": "1.
|
|
22
|
-
"oxlint-tsgolint": "0.
|
|
20
|
+
"oxfmt": "0.61.0",
|
|
21
|
+
"oxlint": "1.76.0",
|
|
22
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
23
23
|
"typescript": "6.0.3"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
19
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
18
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
19
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
20
20
|
"@types/node": "24.13.3",
|
|
21
|
-
"oxfmt": "0.
|
|
22
|
-
"oxlint": "1.
|
|
23
|
-
"oxlint-tsgolint": "0.
|
|
21
|
+
"oxfmt": "0.61.0",
|
|
22
|
+
"oxlint": "1.76.0",
|
|
23
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
24
24
|
"typescript": "6.0.3",
|
|
25
25
|
"vitest": "4.1.10"
|
|
26
26
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
17
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
16
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
17
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
18
18
|
"@types/node": "24.13.3",
|
|
19
|
-
"oxfmt": "0.
|
|
20
|
-
"oxlint": "1.
|
|
21
|
-
"oxlint-tsgolint": "0.
|
|
19
|
+
"oxfmt": "0.61.0",
|
|
20
|
+
"oxlint": "1.76.0",
|
|
21
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
22
22
|
"typescript": "6.0.3"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
19
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
18
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
19
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
20
20
|
"@types/node": "24.13.3",
|
|
21
|
-
"oxfmt": "0.
|
|
22
|
-
"oxlint": "1.
|
|
23
|
-
"oxlint-tsgolint": "0.
|
|
21
|
+
"oxfmt": "0.61.0",
|
|
22
|
+
"oxlint": "1.76.0",
|
|
23
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
24
24
|
"typescript": "6.0.3",
|
|
25
25
|
"vitest": "4.1.10"
|
|
26
26
|
}
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"ignorePatterns": [".tailor/", "src/generated/", "tailor.d.ts"],
|
|
17
17
|
"rules": {
|
|
18
18
|
"tailor-sdk/no-api-prefix-in-path-pattern": "warn",
|
|
19
|
+
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
19
20
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
20
21
|
"no-case-declarations": "error",
|
|
21
22
|
"no-empty": "error",
|
|
@@ -16,14 +16,14 @@
|
|
|
16
16
|
"typecheck": "tsc --noEmit"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.
|
|
20
|
-
"@tailor-platform/sdk": "2.0.0-next.
|
|
19
|
+
"@tailor-platform/eslint-plugin-sdk": "0.2.0-next.1",
|
|
20
|
+
"@tailor-platform/sdk": "2.0.0-next.11",
|
|
21
21
|
"@types/node": "24.13.3",
|
|
22
22
|
"graphql": "17.0.2",
|
|
23
23
|
"graphql-request": "7.4.0",
|
|
24
|
-
"oxfmt": "0.
|
|
25
|
-
"oxlint": "1.
|
|
26
|
-
"oxlint-tsgolint": "0.
|
|
24
|
+
"oxfmt": "0.61.0",
|
|
25
|
+
"oxlint": "1.76.0",
|
|
26
|
+
"oxlint-tsgolint": "7.0.2001",
|
|
27
27
|
"typescript": "6.0.3",
|
|
28
28
|
"vitest": "4.1.10"
|
|
29
29
|
}
|