@tailor-platform/sdk 2.18.0 → 2.20.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.
Files changed (73) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/{application-DEkgf2w1.mjs → application-B6NYnrhv.mjs} +32 -32
  3. package/dist/application-B6NYnrhv.mjs.map +1 -0
  4. package/dist/application-BlbyGJsd.mjs +1 -0
  5. package/dist/cli/commands/deploy/application.d.mts +1 -0
  6. package/dist/cli/commands/deploy/apply-phases.d.mts +1 -1
  7. package/dist/cli/commands/deploy/deploy.d.mts +1 -1
  8. package/dist/cli/commands/deploy/deployment-target.d.mts +1 -0
  9. package/dist/cli/commands/deploy/event-subscriptions.d.mts +1 -0
  10. package/dist/cli/commands/deploy/executor.d.mts +1 -1
  11. package/dist/cli/commands/deploy/function-registry.d.mts +1 -1
  12. package/dist/cli/commands/deploy/resolver.d.mts +1 -0
  13. package/dist/cli/commands/deploy/secret-manager.d.mts +1 -1
  14. package/dist/cli/commands/deploy/tailordb/migration-validation.d.mts +1 -1
  15. package/dist/cli/commands/deploy/tailordb/plan.d.mts +1 -1
  16. package/dist/cli/commands/deploy/types.d.mts +1 -1
  17. package/dist/cli/commands/deploy/workflow.d.mts +1 -0
  18. package/dist/cli/commands/generate/service.d.mts +1 -0
  19. package/dist/cli/commands/tailordb/migrate/schema-checks.d.mts +1 -1
  20. package/dist/cli/lib.d.mts +1 -1
  21. package/dist/cli/lib.mjs +1 -1
  22. package/dist/cli/main.mjs +21 -21
  23. package/dist/cli/main.mjs.map +1 -1
  24. package/dist/cli/services/application.d.mts +2 -0
  25. package/dist/cli/services/executor/service.d.mts +1 -0
  26. package/dist/completion/zsh-worker.zsh +1 -1
  27. package/dist/configure/index.d.mts +7 -7
  28. package/dist/configure/index.mjs +1 -1
  29. package/dist/configure/index.mjs.map +1 -1
  30. package/dist/configure/types/field.types.d.mts +24 -4
  31. package/dist/configure/types/type.d.mts +1 -0
  32. package/dist/date-B7-oyTGE.mjs +2 -0
  33. package/dist/date-B7-oyTGE.mjs.map +1 -0
  34. package/dist/field-parse-BbNyotv5.mjs +2 -0
  35. package/dist/field-parse-BbNyotv5.mjs.map +1 -0
  36. package/dist/{manager-C26Gi1bX.mjs → manager-qfbUL7ru.mjs} +2 -2
  37. package/dist/{manager-C26Gi1bX.mjs.map → manager-qfbUL7ru.mjs.map} +1 -1
  38. package/dist/parser/service/auth/schema.d.mts +1 -0
  39. package/dist/plugin/index.mjs +1 -1
  40. package/dist/{register-ts-hook-BD3ArLqY.mjs → register-ts-hook-FsCX38LQ.mjs} +50 -50
  41. package/dist/register-ts-hook-FsCX38LQ.mjs.map +1 -0
  42. package/dist/runtime/date.d.mts +3 -3
  43. package/dist/runtime/field-parse.d.mts +1 -0
  44. package/dist/runtime/index.d.mts +2 -1
  45. package/dist/runtime/index.mjs +1 -1
  46. package/dist/runtime/temporal.d.mts +31 -0
  47. package/dist/{schema-DRyQEabV.mjs → schema-BKvcWdVf.mjs} +2 -2
  48. package/dist/{schema-DRyQEabV.mjs.map → schema-BKvcWdVf.mjs.map} +1 -1
  49. package/dist/service-BgrEteZ2.mjs +1 -0
  50. package/dist/service-CuqkHP1r.mjs +7 -0
  51. package/dist/service-CuqkHP1r.mjs.map +1 -0
  52. package/dist/types/field.generated.d.mts +1 -1
  53. package/dist/types/helpers.d.mts +8 -6
  54. package/dist/utils/test/index.mjs +1 -1
  55. package/dist/vitest/environment.mjs +1 -1
  56. package/dist/vitest/environment.mjs.map +1 -1
  57. package/docs/configuration.md +18 -1
  58. package/docs/github-actions.md +22 -15
  59. package/docs/migration/v3.md +0 -33
  60. package/docs/services/resolver.md +53 -1
  61. package/docs/services/staticwebsite.md +17 -0
  62. package/docs/testing.md +17 -0
  63. package/package.json +8 -6
  64. package/dist/application-DEkgf2w1.mjs.map +0 -1
  65. package/dist/application-Dl94fzpm.mjs +0 -1
  66. package/dist/date-CGBZbMW5.mjs +0 -2
  67. package/dist/date-CGBZbMW5.mjs.map +0 -1
  68. package/dist/field-parse-CzlKC4b7.mjs +0 -2
  69. package/dist/field-parse-CzlKC4b7.mjs.map +0 -1
  70. package/dist/register-ts-hook-BD3ArLqY.mjs.map +0 -1
  71. package/dist/service-B3OiWCYg.mjs +0 -1
  72. package/dist/service-eM7Fd8zS.mjs +0 -7
  73. package/dist/service-eM7Fd8zS.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,35 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 2.20.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#2370](https://github.com/tailor-platform/sdk/pull/2370) [`5ecfb0f`](https://github.com/tailor-platform/sdk/commit/5ecfb0fe27e7d72dcea4421c5c8426ca9689284f) Thanks [@toiroakr](https://github.com/toiroakr)! - `defineConfig({ env })` values now accept the `<name>:url` static website placeholder, the same one `cors`, OAuth2 redirect URIs, and IdP return origins already accept. On deploy, the CLI replaces such a value with the deployed website's URL before it reaches resolver, executor, workflow job, auth hook, and TailorDB migration script code, so `env.siteUrl` reads the site's actual deployed URL (e.g. `https://my-site.example.com`) at runtime instead of the literal string `"my-site:url"`. A path suffix works too (`"my-site:url/callback"`).
8
+
9
+ This resolves even when the deploy that resolves `env` is also the one creating the referenced website, so a single `deploy` call still injects the real URL — no second, manually-triggered `deploy` needed. If the referenced website genuinely does not exist, the CLI warns and leaves the pattern in place instead. Any other lookup failure (a permission error, a transient platform error, ...) fails the deploy instead, so a raw pattern never reaches application code unnoticed. If the website's URL still isn't available after this rebuild, the deploy fails with a clear error rather than shipping the unresolved placeholder.
10
+
11
+ TailorDB's pre-deploy migration state check now always runs first, before any resource is created or updated, so a stale migration checkpoint or schema fails the deploy without leaving other resources partially applied.
12
+
13
+ ### Patch Changes
14
+
15
+ - [#2382](https://github.com/tailor-platform/sdk/pull/2382) [`6b0fad4`](https://github.com/tailor-platform/sdk/commit/6b0fad4fa0cbd1140abde7538f334537e2a229e6) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @​clack/prompts to v1.8.1
16
+
17
+ - [#2391](https://github.com/tailor-platform/sdk/pull/2391) [`f92a680`](https://github.com/tailor-platform/sdk/commit/f92a680a86d1eebfdc9d7b1a409f084373ef3067) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency open to v11.0.4
18
+
19
+ ## 2.19.0
20
+
21
+ ### Minor Changes
22
+
23
+ - [#2369](https://github.com/tailor-platform/sdk/pull/2369) [`f5a3ad8`](https://github.com/tailor-platform/sdk/commit/f5a3ad8212dc5eec1ce54265d7a841aea96c7944) Thanks [@toiroakr](https://github.com/toiroakr)! - Add `as: "temporal"` to `t.date`, `t.datetime`, and `t.time`, using `Temporal.PlainDate`, `Temporal.Instant`, and `Temporal.PlainTime` respectively. Extend `as: "date"` to datetime and time fields, converting datetime input to a `Date` and time input to a `Date` on 1970-01-01 UTC. Time output uses hours/minutes (UTC for Date) and truncates seconds and fractions without rounding. Existing defaults remain unchanged. Import `Temporal` from `@tailor-platform/sdk/runtime` for constructors and types without changing TypeScript `lib` settings. The `tailor-runtime` Vitest environment installs a Temporal polyfill only when the runtime lacks it; deployed functions use native Temporal.
24
+
25
+ ### Patch Changes
26
+
27
+ - [#2332](https://github.com/tailor-platform/sdk/pull/2332) [`766a3f9`](https://github.com/tailor-platform/sdk/commit/766a3f91acaf7fa9cd643f7c2bf9fe6055d578c5) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @clack/prompts to v1.8.0
28
+
29
+ - [#2378](https://github.com/tailor-platform/sdk/pull/2378) [`867d586`](https://github.com/tailor-platform/sdk/commit/867d586a8b08a27f0b1a26dec2f18efa7963e375) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency zod to v4.6.5
30
+
31
+ - [#2383](https://github.com/tailor-platform/sdk/pull/2383) [`8d65e44`](https://github.com/tailor-platform/sdk/commit/8d65e44c5f4462637a9f3b60a2c0241b8edbb098) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency @​napi-rs/keyring to v2.1.0
32
+
3
33
  ## 2.18.0
4
34
 
5
35
  ### Minor Changes