@tailor-platform/sdk 1.5.0 → 1.6.1

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 (33) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/dist/{list-Dr8070QZ.mjs → application-ByT5pepr.mjs} +211 -9511
  3. package/dist/application-ByT5pepr.mjs.map +1 -0
  4. package/dist/application-dwcUabL3.mjs +5 -0
  5. package/dist/{auth-CZPUwA1p.mjs → auth-0Zh4xp4z.mjs} +2 -31
  6. package/dist/auth-0Zh4xp4z.mjs.map +1 -0
  7. package/dist/cli/index.mjs +247 -27
  8. package/dist/cli/index.mjs.map +1 -1
  9. package/dist/cli/lib.d.mts +286 -14
  10. package/dist/cli/lib.mjs +4 -4
  11. package/dist/cli/lib.mjs.map +1 -1
  12. package/dist/configure/index.d.mts +3 -3
  13. package/dist/configure/index.mjs +75 -4
  14. package/dist/configure/index.mjs.map +1 -1
  15. package/dist/{index-D40SiXpf.d.mts → index-DEUmmYtB.d.mts} +57 -32
  16. package/dist/{index-bRPODqag.d.mts → index-lFUelrvN.d.mts} +56 -24
  17. package/dist/{jiti-BUw4tcVQ.mjs → jiti-SMSW3TA0.mjs} +1 -1
  18. package/dist/{jiti-BUw4tcVQ.mjs.map → jiti-SMSW3TA0.mjs.map} +1 -1
  19. package/dist/{job-CX4l7Myn.mjs → job-8XfvLyxH.mjs} +2 -9
  20. package/dist/job-8XfvLyxH.mjs.map +1 -0
  21. package/dist/list-DU6Y_JM5.mjs +11953 -0
  22. package/dist/list-DU6Y_JM5.mjs.map +1 -0
  23. package/dist/{src-Bu0051gO.mjs → src-qLXX6nub.mjs} +1 -1
  24. package/dist/{src-Bu0051gO.mjs.map → src-qLXX6nub.mjs.map} +1 -1
  25. package/dist/utils/test/index.d.mts +2 -2
  26. package/dist/utils/test/index.mjs +1 -1
  27. package/docs/cli/application.md +23 -187
  28. package/docs/cli/tailordb.md +621 -0
  29. package/docs/cli-reference.md +31 -15
  30. package/package.json +11 -1
  31. package/dist/auth-CZPUwA1p.mjs.map +0 -1
  32. package/dist/job-CX4l7Myn.mjs.map +0 -1
  33. package/dist/list-Dr8070QZ.mjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,90 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#499](https://github.com/tailor-platform/sdk/pull/499) [`b8c3e77`](https://github.com/tailor-platform/sdk/commit/b8c3e77400c86577cd9609924fd0ee29885fe74b) Thanks [@k1LoW](https://github.com/k1LoW)! - Add IdP and Auth event triggers for executor
8
+
9
+ New trigger functions:
10
+
11
+ - `idpUserCreatedTrigger()` - fires when an IdP user is created
12
+ - `idpUserUpdatedTrigger()` - fires when an IdP user is updated
13
+ - `idpUserDeletedTrigger()` - fires when an IdP user is deleted
14
+ - `authAccessTokenIssuedTrigger()` - fires when an access token is issued
15
+ - `authAccessTokenRefreshedTrigger()` - fires when an access token is refreshed
16
+ - `authAccessTokenRevokedTrigger()` - fires when an access token is revoked
17
+
18
+ ## 1.6.0
19
+
20
+ ### Minor Changes
21
+
22
+ - [#462](https://github.com/tailor-platform/sdk/pull/462) [`f83a3ed`](https://github.com/tailor-platform/sdk/commit/f83a3ed25a0c3019a97aaada32d5398db12865ba) Thanks [@toiroakr](https://github.com/toiroakr)! - Add TailorDB schema migration feature (beta). Migrations allow you to safely evolve your database schema with type-safe data transformations.
23
+
24
+ > **Note:** This feature is currently in beta. The API and behavior may change in future releases.
25
+
26
+ **Key Features:**
27
+
28
+ - **Local snapshot-based diff detection** - Detects field-level schema differences between current types and previous snapshots
29
+ - **Type-safe migration scripts** - Generates TypeScript migration scripts with Kysely transaction types
30
+ - **Transaction-wrapped execution** - All changes commit or rollback together for atomicity
31
+ - **Automatic execution during apply** - Pending migrations run as part of `tailor-sdk apply`
32
+ - **Migration checkpoint management** - Manually control which migrations have been applied
33
+ - **Migration status tracking** - View current state and pending migrations
34
+
35
+ **Commands:**
36
+
37
+ - `tailordb migration generate` - Generate migration files from schema changes (supports `--name`, `--yes`, `--init`)
38
+ - `tailordb migration set <number>` - Manually set migration checkpoint
39
+ - `tailordb migration status` - Show migration status and pending migrations
40
+
41
+ **Supported Schema Changes:**
42
+
43
+ The migration system automatically handles:
44
+
45
+ - Adding/removing optional fields (non-breaking)
46
+ - Adding required fields (breaking - migration script generated)
47
+ - Changing optional→required (breaking - migration script generated)
48
+ - Adding/removing indexes (non-breaking)
49
+ - Adding unique constraints (breaking - migration script generated)
50
+ - Adding/removing enum values (removing is breaking - migration script generated)
51
+ - Adding/removing types (non-breaking)
52
+
53
+ **Unsupported Changes:**
54
+
55
+ The following changes require a 3-step migration process:
56
+
57
+ - **Field type changes** (e.g., `string` → `integer`) - Add new field, migrate data, remove old field, then re-add with original name
58
+ - **Array to single value changes** - Add new single-value field, migrate data, remove array field, then re-add with original name
59
+
60
+ **Configuration:**
61
+
62
+ Configure migrations in `tailor.config.ts`:
63
+
64
+ ```typescript
65
+ db: {
66
+ tailordb: {
67
+ files: ["./tailordb/*.ts"],
68
+ migration: {
69
+ directory: "./migrations",
70
+ // Optional: specify machine user for migration execution
71
+ // If not specified, the first machine user from auth.machineUsers is used
72
+ machineUser: "admin-machine-user",
73
+ },
74
+ },
75
+ }
76
+ ```
77
+
78
+ ### Patch Changes
79
+
80
+ - [#488](https://github.com/tailor-platform/sdk/pull/488) [`f26a33d`](https://github.com/tailor-platform/sdk/commit/f26a33d1519d444f03e0e40cf43b16b2f5693348) Thanks [@riku99](https://github.com/riku99)! - Moved workflow service config types to the parser layer and updated CLI imports
81
+
82
+ - [#493](https://github.com/tailor-platform/sdk/pull/493) [`8111b0f`](https://github.com/tailor-platform/sdk/commit/8111b0f69bd924db51283b16eb20b650384ad3a1) Thanks [@toiroakr](https://github.com/toiroakr)! - fix: improve ERD command UX
83
+
84
+ - Allow `erd export` and `erd serve` to work without `erdSite` configuration (only `erd deploy` requires it)
85
+ - Suppress verbose liam CLI output during ERD build
86
+ - Improve `erd export` log output with success message for build path
87
+
3
88
  ## 1.5.0
4
89
 
5
90
  ### Minor Changes