@checkstack/backend 0.4.15 → 0.4.16
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/package.json +12 -12
- package/src/services/config-service.ts +21 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @checkstack/backend
|
|
2
2
|
|
|
3
|
+
## 0.4.16
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 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.
|
|
8
|
+
- Updated dependencies [c0c0ed2]
|
|
9
|
+
- Updated dependencies [c0c0ed2]
|
|
10
|
+
- @checkstack/backend-api@0.9.0
|
|
11
|
+
- @checkstack/auth-common@0.6.0
|
|
12
|
+
- @checkstack/queue-api@0.2.8
|
|
13
|
+
- @checkstack/signal-backend@0.1.14
|
|
14
|
+
|
|
3
15
|
## 0.4.15
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@checkstack/backend",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.16",
|
|
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.
|
|
17
|
-
"@checkstack/auth-common": "0.5.
|
|
18
|
-
"@checkstack/backend-api": "0.8.
|
|
19
|
-
"@checkstack/common": "0.6.
|
|
20
|
-
"@checkstack/drizzle-helper": "0.0.
|
|
21
|
-
"@checkstack/queue-api": "0.2.
|
|
22
|
-
"@checkstack/signal-backend": "0.1.
|
|
23
|
-
"@checkstack/signal-common": "0.1.
|
|
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.
|
|
42
|
-
"@checkstack/scripts": "0.1.
|
|
43
|
-
"@checkstack/test-utils-backend": "0.1.
|
|
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
|
-
//
|
|
298
|
-
const
|
|
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
|
}
|