@tailor-platform/sdk 2.17.0 → 2.19.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 +36 -0
- package/dist/{application-ChuNPwnl.mjs → application-BYlhYQyh.mjs} +14 -14
- package/dist/application-BYlhYQyh.mjs.map +1 -0
- package/dist/application-KZRJHv2j.mjs +1 -0
- package/dist/cli/commands/deploy/event-subscriptions.d.mts +1 -0
- package/dist/cli/commands/generate/service.d.mts +1 -0
- package/dist/cli/lib.d.mts +3 -2
- package/dist/cli/lib.mjs +1 -1
- package/dist/cli/lib.mjs.map +1 -1
- package/dist/cli/main.mjs +28 -28
- package/dist/cli/main.mjs.map +1 -1
- package/dist/cli/services/executor/service.d.mts +1 -0
- package/dist/cli/shared/error-diagnostics.d.mts +10 -0
- package/dist/cli/shared/github-actions.d.mts +11 -0
- package/dist/completion/zsh-worker.zsh +1 -1
- package/dist/configure/index.d.mts +7 -7
- package/dist/configure/index.mjs +1 -1
- package/dist/configure/index.mjs.map +1 -1
- package/dist/configure/types/field.types.d.mts +24 -4
- package/dist/configure/types/type.d.mts +1 -0
- package/dist/date-B7-oyTGE.mjs +2 -0
- package/dist/date-B7-oyTGE.mjs.map +1 -0
- package/dist/field-parse-BbNyotv5.mjs +2 -0
- package/dist/field-parse-BbNyotv5.mjs.map +1 -0
- package/dist/{manager-C26Gi1bX.mjs → manager-qfbUL7ru.mjs} +2 -2
- package/dist/{manager-C26Gi1bX.mjs.map → manager-qfbUL7ru.mjs.map} +1 -1
- package/dist/parser/service/auth/schema.d.mts +1 -0
- package/dist/plugin/index.mjs +1 -1
- package/dist/{register-ts-hook-Dn-XlVSD.mjs → register-ts-hook-Djjnj5R8.mjs} +52 -52
- package/dist/register-ts-hook-Djjnj5R8.mjs.map +1 -0
- package/dist/runtime/date.d.mts +3 -3
- package/dist/runtime/field-parse.d.mts +1 -0
- package/dist/runtime/index.d.mts +2 -1
- package/dist/runtime/index.mjs +1 -1
- package/dist/runtime/temporal.d.mts +31 -0
- package/dist/{schema-DRyQEabV.mjs → schema-BKvcWdVf.mjs} +2 -2
- package/dist/{schema-DRyQEabV.mjs.map → schema-BKvcWdVf.mjs.map} +1 -1
- package/dist/seed/index.d.mts +5 -0
- package/dist/seed/index.mjs +3 -2
- package/dist/seed/index.mjs.map +1 -1
- package/dist/service-BgrEteZ2.mjs +1 -0
- package/dist/service-CuqkHP1r.mjs +7 -0
- package/dist/service-CuqkHP1r.mjs.map +1 -0
- package/dist/types/field.generated.d.mts +1 -1
- package/dist/types/helpers.d.mts +8 -6
- package/dist/utils/test/index.mjs +1 -1
- package/dist/vitest/environment.mjs +1 -1
- package/dist/vitest/environment.mjs.map +1 -1
- package/docs/cli-reference.md +11 -2
- package/docs/github-actions.md +22 -15
- package/docs/migration/v3.md +0 -33
- package/docs/services/resolver.md +53 -1
- package/docs/services/tailordb-migration.md +4 -0
- package/docs/testing.md +17 -0
- package/package.json +12 -10
- package/dist/application-ChuNPwnl.mjs.map +0 -1
- package/dist/application-Oh5dMmb5.mjs +0 -1
- package/dist/date-CGBZbMW5.mjs +0 -2
- package/dist/date-CGBZbMW5.mjs.map +0 -1
- package/dist/field-parse-CzlKC4b7.mjs +0 -2
- package/dist/field-parse-CzlKC4b7.mjs.map +0 -1
- package/dist/register-ts-hook-Dn-XlVSD.mjs.map +0 -1
- package/dist/service-B3OiWCYg.mjs +0 -1
- package/dist/service-eM7Fd8zS.mjs +0 -7
- package/dist/service-eM7Fd8zS.mjs.map +0 -1
package/docs/testing.md
CHANGED
|
@@ -475,6 +475,23 @@ export default defineConfig({
|
|
|
475
475
|
|
|
476
476
|
Inline projects inherit the root-level `tailorRuntime()` plugin by default on Vitest 5. On Vitest 4, add `extends: true` to each project; without it, `node:*` import blocking silently does not run.
|
|
477
477
|
|
|
478
|
+
### Temporal
|
|
479
|
+
|
|
480
|
+
The `tailor-runtime` environment supplies `Temporal` when Node.js does not provide it, including non-ISO calendars. An existing native implementation is preserved. No `test.execArgv` flags or separate polyfill setup are needed, and the environment restores the original global on teardown.
|
|
481
|
+
|
|
482
|
+
Use the SDK import for both values and types without changing your TypeScript `lib` settings:
|
|
483
|
+
|
|
484
|
+
```typescript
|
|
485
|
+
import { Temporal } from "@tailor-platform/sdk/runtime";
|
|
486
|
+
|
|
487
|
+
test("adds one day", () => {
|
|
488
|
+
const day: Temporal.PlainDate = Temporal.PlainDate.from("2026-09-07");
|
|
489
|
+
expect(day.add({ days: 1 }).toString()).toBe("2026-09-08");
|
|
490
|
+
});
|
|
491
|
+
```
|
|
492
|
+
|
|
493
|
+
The polyfill is loaded by the test environment only. Deployed functions use the Platform's native Temporal.
|
|
494
|
+
|
|
478
495
|
### Known Limitations
|
|
479
496
|
|
|
480
497
|
- **`process` and `require`** are not removed or blocked. Vitest's internal runner depends on them extensively. On the real platform runtime, they do not exist.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tailor-platform/sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.19.0",
|
|
4
4
|
"description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -151,20 +151,20 @@
|
|
|
151
151
|
"dependencies": {
|
|
152
152
|
"@0no-co/graphql.web": "1.3.4",
|
|
153
153
|
"@badgateway/oauth2-client": "3.3.1",
|
|
154
|
-
"@bufbuild/protobuf": "2.
|
|
154
|
+
"@bufbuild/protobuf": "2.15.0",
|
|
155
155
|
"@bufbuild/protovalidate": "1.2.0",
|
|
156
156
|
"@connectrpc/connect": "2.2.0",
|
|
157
157
|
"@connectrpc/connect-node": "2.2.0",
|
|
158
158
|
"@inquirer/core": "12.0.3",
|
|
159
159
|
"@inquirer/prompts": "8.7.2",
|
|
160
160
|
"@jridgewell/trace-mapping": "0.3.31",
|
|
161
|
-
"@napi-rs/keyring": "2.
|
|
161
|
+
"@napi-rs/keyring": "2.1.0",
|
|
162
162
|
"@opentelemetry/api": "1.9.1",
|
|
163
163
|
"@opentelemetry/exporter-trace-otlp-proto": "0.222.0",
|
|
164
164
|
"@opentelemetry/resources": "2.11.0",
|
|
165
165
|
"@opentelemetry/sdk-trace-node": "2.11.0",
|
|
166
166
|
"@opentelemetry/semantic-conventions": "1.43.0",
|
|
167
|
-
"@oxc-project/types": "0.
|
|
167
|
+
"@oxc-project/types": "0.149.0",
|
|
168
168
|
"@politty/zod": "0.2.1",
|
|
169
169
|
"@secretlint/core": "13.0.5",
|
|
170
170
|
"@secretlint/secretlint-rule-preset-recommend": "13.0.5",
|
|
@@ -185,20 +185,22 @@
|
|
|
185
185
|
"inflection": "3.0.2",
|
|
186
186
|
"kysely": "0.29.5",
|
|
187
187
|
"mime-types": "3.0.2",
|
|
188
|
-
"open": "11.0.
|
|
189
|
-
"oxc-parser": "0.
|
|
188
|
+
"open": "11.0.3",
|
|
189
|
+
"oxc-parser": "0.149.0",
|
|
190
190
|
"p-limit": "7.3.2",
|
|
191
191
|
"pathe": "2.0.3",
|
|
192
192
|
"pgsql-ast-parser": "12.0.2",
|
|
193
193
|
"pkg-types": "2.3.3",
|
|
194
|
-
"rolldown": "1.2.
|
|
194
|
+
"rolldown": "1.2.8",
|
|
195
195
|
"semver": "7.8.5",
|
|
196
196
|
"sql-highlight": "6.1.0",
|
|
197
197
|
"std-env": "4.2.0",
|
|
198
|
+
"temporal-polyfill": "1.0.5",
|
|
199
|
+
"temporal-spec": "1.0.1",
|
|
198
200
|
"ts-cron-validator": "1.1.5",
|
|
199
201
|
"type-fest": "5.9.0",
|
|
200
202
|
"xdg-basedir": "5.1.0",
|
|
201
|
-
"zod": "4.5
|
|
203
|
+
"zod": "4.6.5"
|
|
202
204
|
},
|
|
203
205
|
"devDependencies": {
|
|
204
206
|
"@electric-sql/pglite": "0.5.8",
|
|
@@ -211,8 +213,8 @@
|
|
|
211
213
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|
|
212
214
|
"@vitest/coverage-v8": "5.0.0",
|
|
213
215
|
"eslint-plugin-zod": "4.12.1",
|
|
214
|
-
"oxfmt": "0.
|
|
215
|
-
"oxlint": "1.
|
|
216
|
+
"oxfmt": "0.67.0",
|
|
217
|
+
"oxlint": "1.82.0",
|
|
216
218
|
"oxlint-tsgolint": "7.0.2001",
|
|
217
219
|
"sonda": "0.14.0",
|
|
218
220
|
"tsdown": "0.23.0",
|