@tailor-platform/sdk 1.70.0 → 1.70.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.
@@ -369,17 +369,14 @@ Auth connections enable OAuth2 authentication with external providers (Google, M
369
369
 
370
370
  For the official Tailor Platform documentation, see [AuthConnection Guide](https://docs.tailor.tech/guides/auth/authconnection).
371
371
 
372
- > [!WARNING]
373
- > **Managing connections through `tailor.config.ts` is unreliable for shared and CI deploys.**
374
- > A deploy revokes and recreates the connection — discarding the token obtained via `authconnection authorize` — whenever it cannot confirm the secret is unchanged. That check relies on a hash stored locally in `.tailor-sdk/secrets-state.json`, which is gitignored and therefore not shared across machines. So a deploy from CI, a clean checkout, another developer's machine, or after deleting `.tailor-sdk/` recreates the connection and drops its token. Only repeated deploys from the same machine that still holds that state keep the token.
375
- >
376
- > Because of this, prefer to **create the connection and its token from the Console**. You can jump to the connections page with:
372
+ > [!NOTE]
373
+ > Deploy updates connections **in-place**, preserving the OAuth token. If the connection requires re-authorization after an update, the deploy will warn you:
377
374
  >
378
375
  > ```bash
376
+ > tailor-sdk authconnection authorize --name <connection-name>
377
+ > # Or via the Console:
379
378
  > tailor-sdk authconnection open
380
379
  > ```
381
- >
382
- > The `connections` field in `defineAuth()` and the `authconnection authorize` flow are documented below for reference.
383
380
 
384
381
  ### Setup Flow
385
382
 
@@ -432,13 +429,6 @@ The authorize command opens a browser for the OAuth2 flow. The authorization cod
432
429
  | `authUrl` | `string` | No | Override for the authorization endpoint. |
433
430
  | `tokenUrl` | `string` | No | Override for the token endpoint. |
434
431
 
435
- ### Change Detection
436
-
437
- The SDK uses hash-based change detection for connection configs. Only connections whose configuration has changed since the last `apply` are updated (revoked and recreated). Deleting the `.tailor-sdk/` directory forces all connections to be re-sent.
438
-
439
- > [!WARNING]
440
- > The secret hash lives in `.tailor-sdk/secrets-state.json`, which is gitignored and not shared across machines or CI. When that state is missing — a clean checkout, CI, another machine, or after deleting `.tailor-sdk/` — a deploy cannot confirm the secret is unchanged, so it revokes and recreates the connection and discards the token stored by `authconnection authorize`. For shared and CI workflows, manage the connection and create its token from the Console (`tailor-sdk authconnection open`) instead.
441
-
442
432
  ### `auth.getConnectionToken()`
443
433
 
444
434
  `auth.getConnectionToken()` retrieves connection tokens at runtime by calling `tailor.authconnection.getConnectionToken()` internally. When `connections` is defined in `defineAuth()`, the connection name is type-checked and autocompleted against the defined keys:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/sdk",
3
- "version": "1.70.0",
3
+ "version": "1.70.1",
4
4
  "description": "Tailor Platform SDK - The SDK to work with Tailor Platform",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -141,7 +141,7 @@
141
141
  "dependencies": {
142
142
  "@0no-co/graphql.web": "1.3.2",
143
143
  "@badgateway/oauth2-client": "3.3.1",
144
- "@bufbuild/protobuf": "2.12.0",
144
+ "@bufbuild/protobuf": "2.12.1",
145
145
  "@bufbuild/protovalidate": "1.2.0",
146
146
  "@connectrpc/connect": "2.1.2",
147
147
  "@connectrpc/connect-node": "2.1.2",
@@ -157,16 +157,16 @@
157
157
  "@oxc-project/types": "0.137.0",
158
158
  "@standard-schema/spec": "1.1.0",
159
159
  "@tailor-platform/function-kysely-tailordb": "0.1.3",
160
- "@toiroakr/lines-db": "0.9.2",
160
+ "@toiroakr/lines-db": "0.10.0",
161
161
  "@toiroakr/read-multiline": "0.4.1",
162
- "@urql/core": "6.0.2",
162
+ "@urql/core": "6.0.3",
163
163
  "chalk": "5.6.2",
164
164
  "chokidar": "5.0.0",
165
165
  "confbox": "0.2.4",
166
166
  "date-fns": "4.4.0",
167
- "es-toolkit": "1.48.1",
167
+ "es-toolkit": "1.49.0",
168
168
  "find-up-simple": "1.0.1",
169
- "globals": "17.6.0",
169
+ "globals": "17.7.0",
170
170
  "graphql": "17.0.1",
171
171
  "inflection": "3.0.2",
172
172
  "kysely": "0.29.2",
@@ -178,8 +178,8 @@
178
178
  "pathe": "2.0.3",
179
179
  "pgsql-ast-parser": "12.0.2",
180
180
  "pkg-types": "2.3.1",
181
- "politty": "0.9.2",
182
- "rolldown": "1.1.2",
181
+ "politty": "0.10.1",
182
+ "rolldown": "1.1.3",
183
183
  "semver": "7.8.5",
184
184
  "sql-highlight": "6.1.0",
185
185
  "std-env": "4.1.0",
@@ -199,14 +199,14 @@
199
199
  "@types/semver": "7.7.1",
200
200
  "@typescript/native-preview": "7.0.0-dev.20260621.1",
201
201
  "@vitest/coverage-v8": "4.1.9",
202
- "oxfmt": "0.55.0",
203
- "oxlint": "1.70.0",
202
+ "oxfmt": "0.56.0",
203
+ "oxlint": "1.71.0",
204
204
  "oxlint-tsgolint": "0.23.0",
205
205
  "sonda": "0.13.1",
206
206
  "tsdown": "0.22.3",
207
207
  "typescript": "6.0.3",
208
208
  "vitest": "4.1.9",
209
- "zinfer": "0.2.2",
209
+ "zinfer": "0.2.3",
210
210
  "@tailor-platform/tailor-proto": "^0.0.0"
211
211
  },
212
212
  "peerDependencies": {
@@ -1,4 +0,0 @@
1
-
2
- import { n as generatePluginFilesIfNeeded, r as loadApplication, t as defineApplication } from "./application-Df5_I83n.mjs";
3
-
4
- export { defineApplication, generatePluginFilesIfNeeded };