@tailor-platform/create-sdk 2.15.0 → 2.16.0
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 +10 -0
- package/package.json +1 -1
- package/templates/executor/.oxlintrc.json +9 -0
- package/templates/executor/package.json +2 -2
- package/templates/generators/.oxlintrc.json +9 -0
- package/templates/generators/package.json +3 -3
- package/templates/hello-world/.oxlintrc.json +9 -0
- package/templates/hello-world/package.json +2 -2
- package/templates/inventory-management/.oxlintrc.json +9 -0
- package/templates/inventory-management/package.json +2 -2
- package/templates/multi-application/.oxlintrc.json +9 -0
- package/templates/multi-application/package.json +2 -2
- package/templates/resolver/.oxlintrc.json +9 -0
- package/templates/resolver/package.json +2 -2
- package/templates/static-web-site/.oxlintrc.json +9 -0
- package/templates/static-web-site/package.json +2 -2
- package/templates/tailordb/.oxlintrc.json +9 -0
- package/templates/tailordb/package.json +2 -2
- package/templates/workflow/.oxlintrc.json +9 -0
- package/templates/workflow/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @tailor-platform/create-sdk
|
|
2
2
|
|
|
3
|
+
## 2.16.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#2313](https://github.com/tailor-platform/sdk/pull/2313) [`9817890`](https://github.com/tailor-platform/sdk/commit/98178900a5208a734fb3977eeab94fa103cce6c3) Thanks [@dqn](https://github.com/dqn)! - Add two lint rules that flag, in files defining a resolver, executor, workflow job, or HTTP adapter, the Node-only globals (`no-node-only-globals`) and Node built-in module imports (`no-node-builtin-imports`) that the Tailor Platform runtime does not provide. Both print the same suggested alternative the build does, and both leave configuration, scripts, and tests alone. Enabled in newly scaffolded projects.
|
|
8
|
+
|
|
9
|
+
- [#2314](https://github.com/tailor-platform/sdk/pull/2314) [`8351e86`](https://github.com/tailor-platform/sdk/commit/8351e866d65a07109b965f11f56d55d8207fbe2c) Thanks [@dqn](https://github.com/dqn)! - Add three lint rules that check literal values against constraints the build otherwise validates only at `tailor generate` / `tailor deploy` time: `valid-execution-policy-definition` (a workflow execution policy `name` or `key` outside the platform grammar), `valid-workflow-retry-policy` (a `retryPolicy` outside the platform limits, such as `initialBackoff` greater than `maxBackoff`), and `valid-resolver-permission` (a permission with no `permit: true` policy, or a condition that does not compare exactly one `user` operand to a string or a boolean). Values the rules cannot resolve to literals are left to the build. Enabled in newly scaffolded projects.
|
|
10
|
+
|
|
11
|
+
- [#2312](https://github.com/tailor-platform/sdk/pull/2312) [`c2ae1ac`](https://github.com/tailor-platform/sdk/commit/c2ae1acd688dd13df0a0d21d8d76ebc756415ab4) Thanks [@dqn](https://github.com/dqn)! - Add lint rules that catch workflow mistakes the build otherwise reports only at `tailor generate` / `tailor deploy` time: `valid-workflow-job-definition` (a `createWorkflowJob` `name` that is not a string literal or a `body` that is not an inline function), `no-job-start-outside-body` (a job's `.start()` called outside any job body in the same file), `no-direct-exec-job-function` (calling `execJobFunction` directly instead of `.start()`), and `valid-workflow-exports` (a `createWorkflow` result that is not the default export, or a job that is not a named export). Enabled in newly scaffolded projects.
|
|
12
|
+
|
|
3
13
|
## 2.15.0
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"typecheck": "tsc --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
18
|
-
"@tailor-platform/sdk": "2.
|
|
17
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
18
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
19
19
|
"@types/node": "24.13.3",
|
|
20
20
|
"oxfmt": "0.66.0",
|
|
21
21
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"typecheck": "tsc --noEmit"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
21
|
-
"@tailor-platform/sdk": "2.
|
|
22
|
-
"@tailor-platform/sdk-plugin-seed": "0.
|
|
20
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
21
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
22
|
+
"@tailor-platform/sdk-plugin-seed": "0.3.0",
|
|
23
23
|
"@types/node": "24.13.3",
|
|
24
24
|
"oxfmt": "0.66.0",
|
|
25
25
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"typecheck": "tsc --noEmit"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
16
|
-
"@tailor-platform/sdk": "2.
|
|
15
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
16
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
17
17
|
"@types/node": "24.13.3",
|
|
18
18
|
"oxfmt": "0.66.0",
|
|
19
19
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"typecheck": "tsc --noEmit"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
16
|
-
"@tailor-platform/sdk": "2.
|
|
15
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
16
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
17
17
|
"@types/node": "24.13.3",
|
|
18
18
|
"oxfmt": "0.66.0",
|
|
19
19
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
17
|
-
"@tailor-platform/sdk": "2.
|
|
16
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
17
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
18
18
|
"@types/node": "24.13.3",
|
|
19
19
|
"oxfmt": "0.66.0",
|
|
20
20
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"typecheck": "tsc --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
18
|
-
"@tailor-platform/sdk": "2.
|
|
17
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
18
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
19
19
|
"@types/node": "24.13.3",
|
|
20
20
|
"oxfmt": "0.66.0",
|
|
21
21
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"typecheck": "tsc --noEmit"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
16
|
-
"@tailor-platform/sdk": "2.
|
|
15
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
16
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
17
17
|
"@types/node": "24.13.3",
|
|
18
18
|
"oxfmt": "0.66.0",
|
|
19
19
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
"typecheck": "tsc --noEmit"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
18
|
-
"@tailor-platform/sdk": "2.
|
|
17
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
18
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
19
19
|
"@types/node": "24.13.3",
|
|
20
20
|
"oxfmt": "0.66.0",
|
|
21
21
|
"oxlint": "1.81.0",
|
|
@@ -16,8 +16,17 @@
|
|
|
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-direct-exec-job-function": "warn",
|
|
19
20
|
"tailor-sdk/no-execute-script-arg-stringify": "warn",
|
|
21
|
+
"tailor-sdk/no-job-start-outside-body": "warn",
|
|
22
|
+
"tailor-sdk/no-node-builtin-imports": "warn",
|
|
23
|
+
"tailor-sdk/no-node-only-globals": "warn",
|
|
20
24
|
"tailor-sdk/no-unconditional-permit": "warn",
|
|
25
|
+
"tailor-sdk/valid-execution-policy-definition": "warn",
|
|
26
|
+
"tailor-sdk/valid-resolver-permission": "warn",
|
|
27
|
+
"tailor-sdk/valid-workflow-exports": "warn",
|
|
28
|
+
"tailor-sdk/valid-workflow-job-definition": "warn",
|
|
29
|
+
"tailor-sdk/valid-workflow-retry-policy": "warn",
|
|
21
30
|
"import/default": "off",
|
|
22
31
|
"import/namespace": "off",
|
|
23
32
|
"import/no-duplicates": ["error", { "considerQueryString": true }],
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"typecheck": "tsc --noEmit"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@tailor-platform/eslint-plugin-sdk": "0.
|
|
19
|
-
"@tailor-platform/sdk": "2.
|
|
18
|
+
"@tailor-platform/eslint-plugin-sdk": "0.3.0",
|
|
19
|
+
"@tailor-platform/sdk": "2.16.0",
|
|
20
20
|
"@types/node": "24.13.3",
|
|
21
21
|
"graphql": "17.0.2",
|
|
22
22
|
"graphql-request": "7.4.0",
|