@checkstack/backend 0.4.15 → 0.4.17

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,26 @@
1
1
  # @checkstack/backend
2
2
 
3
+ ## 0.4.17
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [23c80bc]
8
+ - @checkstack/backend-api@0.10.0
9
+ - @checkstack/queue-api@0.2.9
10
+ - @checkstack/signal-backend@0.1.15
11
+
12
+ ## 0.4.16
13
+
14
+ ### Patch Changes
15
+
16
+ - c0c0ed2: Introduce generic "Login Flows" to allow authentication strategies to define their own interaction patterns (form, redirect, or oauth) during registration. This fixes an issue where LDAP login attempts were incorrectly routed through the standard social login flow by instead providing a dedicated credential collection form for LDAP.
17
+ - Updated dependencies [c0c0ed2]
18
+ - Updated dependencies [c0c0ed2]
19
+ - @checkstack/backend-api@0.9.0
20
+ - @checkstack/auth-common@0.6.0
21
+ - @checkstack/queue-api@0.2.8
22
+ - @checkstack/signal-backend@0.1.14
23
+
3
24
  ## 0.4.15
4
25
 
5
26
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/backend",
3
- "version": "0.4.15",
3
+ "version": "0.4.17",
4
4
  "checkstack": {
5
5
  "type": "backend"
6
6
  },
@@ -13,14 +13,14 @@
13
13
  "lint:code": "eslint . --max-warnings 0"
14
14
  },
15
15
  "dependencies": {
16
- "@checkstack/api-docs-common": "0.1.7",
17
- "@checkstack/auth-common": "0.5.6",
18
- "@checkstack/backend-api": "0.8.1",
19
- "@checkstack/common": "0.6.3",
20
- "@checkstack/drizzle-helper": "0.0.3",
21
- "@checkstack/queue-api": "0.2.6",
22
- "@checkstack/signal-backend": "0.1.12",
23
- "@checkstack/signal-common": "0.1.7",
16
+ "@checkstack/api-docs-common": "0.1.8",
17
+ "@checkstack/auth-common": "0.5.7",
18
+ "@checkstack/backend-api": "0.8.2",
19
+ "@checkstack/common": "0.6.4",
20
+ "@checkstack/drizzle-helper": "0.0.4",
21
+ "@checkstack/queue-api": "0.2.7",
22
+ "@checkstack/signal-backend": "0.1.13",
23
+ "@checkstack/signal-common": "0.1.8",
24
24
  "@hono/zod-validator": "^0.7.6",
25
25
  "@orpc/client": "^1.13.14",
26
26
  "@orpc/contract": "^1.13.14",
@@ -38,8 +38,8 @@
38
38
  "devDependencies": {
39
39
  "@types/pg": "^8.11.0",
40
40
  "@types/bun": "latest",
41
- "@checkstack/tsconfig": "0.0.3",
42
- "@checkstack/scripts": "0.1.1",
43
- "@checkstack/test-utils-backend": "0.1.12"
41
+ "@checkstack/tsconfig": "0.0.4",
42
+ "@checkstack/scripts": "0.1.2",
43
+ "@checkstack/test-utils-backend": "0.1.13"
44
44
  }
45
45
  }
@@ -257,6 +257,11 @@ export class ConfigServiceImpl implements ConfigService {
257
257
  // Decrypt secrets
258
258
  const decryptedData = this.decryptSecrets(schema, migratedData);
259
259
 
260
+ // Auto-save if migrated
261
+ if (versioned.needsMigration(storedRecord)) {
262
+ await this.set(configId, schema, version, decryptedData as T, migrations);
263
+ }
264
+
260
265
  // Validate with schema
261
266
  return schema.parse(decryptedData);
262
267
  }
@@ -294,8 +299,22 @@ export class ConfigServiceImpl implements ConfigService {
294
299
  // Parse and migrate the stored record
295
300
  const migratedData = await versioned.parse(storedRecord);
296
301
 
297
- // Redact secrets (don't decrypt)
298
- const redactedData = this.redactSecrets(schema, migratedData);
302
+ // Decrypt for auto-save (ConfigService can decrypt locally for migration persistence)
303
+ const decryptedData = this.decryptSecrets(schema, migratedData);
304
+
305
+ // Auto-save if migrated
306
+ if (versioned.needsMigration(storedRecord)) {
307
+ await this.set(
308
+ configId,
309
+ schema,
310
+ version,
311
+ decryptedData as T,
312
+ migrations
313
+ );
314
+ }
315
+
316
+ // Redact secrets for return
317
+ const redactedData = this.redactSecrets(schema, decryptedData);
299
318
 
300
319
  return redactedData as Partial<T>;
301
320
  }