@tailor-platform/sdk 1.44.2 → 1.45.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 +12 -0
- package/dist/{actor-DzCuoMlP.d.mts → actor-CzX_hVOP.d.mts} +2 -2
- package/dist/{application-7wtQzifE.mjs → application-BsSJZRCq.mjs} +3 -2
- package/dist/{application-7wtQzifE.mjs.map → application-BsSJZRCq.mjs.map} +1 -1
- package/dist/application-C0O80PUX.mjs +4 -0
- package/dist/cli/index.mjs +2 -2
- package/dist/cli/lib.d.mts +6 -6
- package/dist/cli/lib.mjs +2 -2
- package/dist/configure/index.d.mts +5 -5
- package/dist/configure/index.mjs +16 -4
- package/dist/configure/index.mjs.map +1 -1
- package/dist/{index-DdsUV-aA.d.mts → index-Bd-0JRjy.d.mts} +2 -2
- package/dist/{index-ZZYEd_0R.d.mts → index-C_f357K2.d.mts} +2 -2
- package/dist/{index-BOfTiouP.d.mts → index-CemBzf4z.d.mts} +41 -8
- package/dist/{index-BEEL1-6Z.d.mts → index-DIz-15Cx.d.mts} +2 -2
- package/dist/{index-0Dk-fDWi.d.mts → index-SnYVi8ww.d.mts} +2 -2
- package/dist/plugin/builtin/enum-constants/index.d.mts +1 -1
- package/dist/plugin/builtin/file-utils/index.d.mts +1 -1
- package/dist/plugin/builtin/kysely-type/index.d.mts +1 -1
- package/dist/plugin/builtin/seed/index.d.mts +1 -1
- package/dist/plugin/index.d.mts +2 -2
- package/dist/{runtime-CEj_sAfP.mjs → runtime-Bmq4L9pj.mjs} +71 -25
- package/dist/runtime-Bmq4L9pj.mjs.map +1 -0
- package/dist/{tailor-db-field-D_z185oq.d.mts → tailor-db-field-CY1D1PtT.d.mts} +5 -2
- package/dist/utils/test/index.d.mts +3 -3
- package/dist/{workflow.generated-B7Mupf5V.d.mts → workflow.generated--YammZcl.d.mts} +2 -2
- package/docs/cli/tailordb.md +35 -415
- package/docs/services/executor.md +15 -1
- package/docs/services/idp.md +2 -2
- package/docs/services/tailordb-migration.md +418 -0
- package/docs/services/tailordb.md +6 -0
- package/package.json +3 -3
- package/dist/application-P55ZFKHG.mjs +0 -4
- package/dist/runtime-CEj_sAfP.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @tailor-platform/sdk
|
|
2
2
|
|
|
3
|
+
## 1.45.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#1080](https://github.com/tailor-platform/sdk/pull/1080) [`52823be`](https://github.com/tailor-platform/sdk/commit/52823be3ab8ac4efd3b9621db60d3a6fb9033d12) Thanks [@toiroakr](https://github.com/toiroakr)! - Add an `idp` option to IdP user triggers (`idpUserCreatedTrigger`, `idpUserUpdatedTrigger`, `idpUserDeletedTrigger`, `idpUserTrigger`) so executors can subscribe to a specific IdP namespace. Previously, projects with multiple IdPs failed `apply` because the SDK could not decide which IdP an executor targeted; specify `idp: "my-idp"` to disambiguate, or omit it when the project defines a single IdP. The auto-configuration of `publishUserEvents` now applies only to IdPs that are actually targeted, and `publishUserEvents: false` on a targeted IdP is rejected with a clear error instead of a warning. The new `IdpName` type is narrowed to defined IdP names via the generated `tailor.d.ts` for compile-time validation.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#1094](https://github.com/tailor-platform/sdk/pull/1094) [`a872d26`](https://github.com/tailor-platform/sdk/commit/a872d26feb81266b27d0415d36b412f12e81fb42) Thanks [@renovate](https://github.com/apps/renovate)! - fix(deps): update dependency ora to v9.4.0
|
|
12
|
+
|
|
13
|
+
- [#1092](https://github.com/tailor-platform/sdk/pull/1092) [`0687372`](https://github.com/tailor-platform/sdk/commit/0687372075bb8694505b2f0d0199e732606fd758) Thanks [@toiroakr](https://github.com/toiroakr)! - Restructure TailorDB migration documentation. The migration concepts, configuration, supported schema changes, automatic execution flow, and troubleshooting have moved from the CLI reference (`docs/cli/tailordb.md`) into a dedicated guide (`docs/services/tailordb-migration.md`). The CLI reference now keeps only the command tables and links to the guide. The guide also adds previously missing operational guidance: exact `migration set` semantics (label-only, not a DB rollback), team workflow and CI/CD coordination, failure recovery, machine user permissions, multi-namespace ordering, performance for large tables, local testing, rollback strategy, observability, and a beta notice. Minor wording corrections for the pre-migration phase and foreign key change classification.
|
|
14
|
+
|
|
3
15
|
## 1.44.2
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="@tailor-platform/function-types" />
|
|
2
|
-
import { Bt as InferredAttributeMap, zt as InferredAttributeList } from "./tailor-db-field-
|
|
2
|
+
import { Bt as InferredAttributeMap, zt as InferredAttributeList } from "./tailor-db-field-CY1D1PtT.mjs";
|
|
3
3
|
|
|
4
4
|
//#region src/types/env.d.ts
|
|
5
5
|
interface Env {}
|
|
@@ -27,4 +27,4 @@ type TailorActor = {
|
|
|
27
27
|
};
|
|
28
28
|
//#endregion
|
|
29
29
|
export { Env as n, TailorEnv as r, TailorActor as t };
|
|
30
|
-
//# sourceMappingURL=actor-
|
|
30
|
+
//# sourceMappingURL=actor-CzX_hVOP.d.mts.map
|
|
@@ -3837,7 +3837,8 @@ const IdpUserTriggerSchema = z.object({
|
|
|
3837
3837
|
"idp.user.created",
|
|
3838
3838
|
"idp.user.updated",
|
|
3839
3839
|
"idp.user.deleted"
|
|
3840
|
-
])).min(1).transform((arr) => [...new Set(arr)]).describe("IdP user event types to trigger on")
|
|
3840
|
+
])).min(1).transform((arr) => [...new Set(arr)]).describe("IdP user event types to trigger on"),
|
|
3841
|
+
idp: z.string().optional().describe("IdP namespace name to subscribe to. If omitted, the project's only IdP is used; throws when multiple IdPs exist.")
|
|
3841
3842
|
});
|
|
3842
3843
|
const AuthAccessTokenTriggerSchema = z.object({
|
|
3843
3844
|
kind: z.literal("authAccessToken").describe("Auth access token event trigger"),
|
|
@@ -5317,4 +5318,4 @@ async function loadApplication(params) {
|
|
|
5317
5318
|
|
|
5318
5319
|
//#endregion
|
|
5319
5320
|
export { loadWorkspaceId as C, writePlatformConfig as D, saveUserTokens as E, loadAccessToken as S, resolveTokens as T, getDistDir as _, WorkflowJobSchema as a, deleteUserTokens as b, ExecutorSchema as c, buildResolverOperationHookExpr as d, OAuth2ClientSchema as f, createBundleCache as g, loadFilesWithIgnores as h, resolveInlineSourcemap as i, INVOKER_EXPR as l, stringifyFunction as m, generatePluginFilesIfNeeded as n, ResolverSchema as o, TailorDBTypeSchema as p, loadApplication as r, createExecutorService as s, defineApplication as t, buildExecutorArgsExpr as u, hashFile as v, readPlatformConfig as w, fetchLatestToken as x, loadConfig as y };
|
|
5320
|
-
//# sourceMappingURL=application-
|
|
5321
|
+
//# sourceMappingURL=application-BsSJZRCq.mjs.map
|