@tailor-platform/sdk 1.56.1 → 1.57.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @tailor-platform/sdk
2
2
 
3
+ ## 1.57.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1319](https://github.com/tailor-platform/sdk/pull/1319) [`77754c2`](https://github.com/tailor-platform/sdk/commit/77754c264f3a18ccea2fb2ee2a144da4768b09a9) Thanks [@dqn](https://github.com/dqn)! - Replace the Liam-based `tailordb erd` beta commands with a TailorDB-specific ERD viewer generated from local TailorDB schema. `tailordb erd export` writes a single self-contained `index.html` under `<output>/<namespace>/dist` (CSS, JS, and the schema are inlined as separately extractable blocks), `tailordb erd serve` runs a built-in local server with watch reload and `--port` / `--open`, and `tailordb erd deploy` uploads the generated viewer while keeping the existing `erdSite` requirement.
8
+
9
+ ### Patch Changes
10
+
11
+ - [#1309](https://github.com/tailor-platform/sdk/pull/1309) [`9e4c726`](https://github.com/tailor-platform/sdk/commit/9e4c726c1a84ac70ba7bc74aaf4765173562ed0e) Thanks [@toiroakr](https://github.com/toiroakr)! - fix(cli): track auth connection ownership via platform labels
12
+
13
+ `deploy` now tags auth connections with SDK ownership labels and uses them to decide which connections to manage, matching every other auth resource. Connections that are not labeled by the SDK are treated as unowned: they are surfaced in the unmanaged-resource confirmation prompt rather than silently deleted, and once you confirm adoption the SDK label is written even when the connection is otherwise unchanged, so later deploys recognize it as owned. Auth connection deletions are also shown in the deletion confirmation prompt.
14
+
3
15
  ## 1.56.1
4
16
 
5
17
  ### Patch Changes
package/README.md CHANGED
@@ -97,26 +97,3 @@ See [Create Tailor Platform SDK](https://github.com/tailor-platform/sdk/tree/mai
97
97
 
98
98
  - Node.js 22 or later (or Bun)
99
99
  - A Tailor Platform account ([request access](https://www.tailor.tech/demo))
100
-
101
- ## Dependabot Noise
102
-
103
- Installing `@tailor-platform/sdk` pulls in a few transitive advisories that are **not exploitable in practice**. They are listed here so you can triage reports from `npm audit` / `pnpm audit` / Dependabot without diffing our lockfile.
104
-
105
- ### valibot ReDoS ([GHSA-vqpr-j7v3-hqw9](https://github.com/advisories/GHSA-vqpr-j7v3-hqw9))
106
-
107
- - **Why it shows up**: `@liam-hq/cli@0.7.24` pins `valibot@1.1.0`, which falls in the vulnerable range (`< 1.2.0`).
108
- - **Why it's safe here**: `@liam-hq/cli` is invoked only by `tailor-sdk tailordb erd export` as a child process, against developer-controlled schema files. The vulnerable code path (`v.emoji()` on attacker-controlled strings) is never reached.
109
- - **If you want to silence it**: add an override to your project so `valibot` resolves to `>=1.2.0`. `@toiroakr/lines-db` declares `valibot` as an optional peer with range `>=1.0.0`, so forcing `1.2.0+` is safe.
110
-
111
- ```jsonc
112
- // pnpm (package.json)
113
- "pnpm": { "overrides": { "valibot": ">=1.2.0" } }
114
-
115
- // npm (package.json)
116
- "overrides": { "valibot": ">=1.2.0" }
117
-
118
- // yarn (package.json)
119
- "resolutions": { "valibot": ">=1.2.0" }
120
- ```
121
-
122
- This fix has to live in your project's `package.json` — overrides in a published package do not propagate to consumers.
@@ -606,15 +606,18 @@ const GeneratorConfigSchema = CodeGeneratorSchema.brand("CodeGenerator");
606
606
  /**
607
607
  * Load Tailor configuration file and associated generators and plugins.
608
608
  * @param configPath - Optional explicit config path
609
+ * @param options - Optional module import behavior.
609
610
  * @returns Loaded config, generators, plugins, and config path
610
611
  */
611
- async function loadConfig(configPath) {
612
+ async function loadConfig(configPath, options = {}) {
612
613
  installCliTailordbStub();
613
614
  const foundPath = loadConfigPath(configPath);
614
615
  if (!foundPath) throw new Error("Configuration file not found: tailor.config.ts not found in current or parent directories");
615
616
  const resolvedPath = path.resolve(process.cwd(), foundPath);
616
617
  if (!fs$1.existsSync(resolvedPath)) throw new Error(`Configuration file not found: ${configPath}`);
617
- const configModule = await import(pathToFileURL(resolvedPath).href);
618
+ const configUrl = pathToFileURL(resolvedPath);
619
+ if (options.importNonce) configUrl.searchParams.set("tailorImportNonce", options.importNonce);
620
+ const configModule = await import(configUrl.href);
618
621
  if (!configModule || !configModule.default) throw new Error("Invalid Tailor config module: default export not found");
619
622
  const validated = AppConfigSchema.safeParse(configModule.default);
620
623
  if (!validated.success) {
@@ -5835,5 +5838,5 @@ async function loadApplication(params) {
5835
5838
  }
5836
5839
 
5837
5840
  //#endregion
5838
- export { saveUserTokens as A, deleteUserTokens as C, loadWorkspaceId as D, loadConfigPath as E, readPlatformConfig as O, loadConfig as S, loadAccessToken as T, createLogLevelTreeshakeOptions as _, WorkflowJobSchema as a, getDistDir as b, createExecutorService as c, buildExecutorArgsExpr as d, buildResolverOperationHookExpr as f, composeFunctionTreeshakeOptions as g, loadFilesWithIgnores as h, resolveInlineSourcemap as i, writePlatformConfig as j, resolveTokens as k, ExecutorSchema as l, stringifyFunction as m, generatePluginFilesIfNeeded as n, ResolverSchema as o, TailorDBTypeSchema as p, loadApplication as r, HTTP_METHODS as s, defineApplication as t, INVOKER_EXPR as u, resolveBundleLogLevel as v, fetchLatestToken as w, hashFile as x, createBundleCache as y };
5839
- //# sourceMappingURL=application-DuT_ae02.mjs.map
5841
+ export { resolveTokens as A, loadConfig as C, loadConfigPath as D, loadAccessToken as E, writePlatformConfig as M, loadWorkspaceId as O, hashFile as S, fetchLatestToken as T, createLogLevelTreeshakeOptions as _, WorkflowJobSchema as a, getDistDir as b, createExecutorService as c, buildExecutorArgsExpr as d, buildResolverOperationHookExpr as f, composeFunctionTreeshakeOptions as g, loadFilesWithIgnores as h, resolveInlineSourcemap as i, saveUserTokens as j, readPlatformConfig as k, ExecutorSchema as l, stringifyFunction as m, generatePluginFilesIfNeeded as n, ResolverSchema as o, TailorDBTypeSchema as p, loadApplication as r, HTTP_METHODS as s, defineApplication as t, INVOKER_EXPR as u, resolveBundleLogLevel as v, deleteUserTokens as w, hashContent as x, createBundleCache as y };
5842
+ //# sourceMappingURL=application-CdkoGX27.mjs.map