@luckystack/server 0.6.3 → 0.6.5
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 +8 -6
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -9,12 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
9
9
|
|
|
10
10
|
### Fixed
|
|
11
11
|
|
|
12
|
-
- **Redis secret-manager pointer boot** (ADR 0026): `createLuckyStackServer` now
|
|
13
|
-
|
|
14
|
-
`config.secretManager.url` is set, so a client an early import may
|
|
15
|
-
unresolved `REDIS_PASSWORD` pointer is
|
|
16
|
-
|
|
17
|
-
`
|
|
12
|
+
- **Redis secret-manager pointer boot** (ADR 0026): `createLuckyStackServer` now EAGERLY
|
|
13
|
+
REBUILDS + registers the default Redis client from the resolved `process.env` right before
|
|
14
|
+
the boot-UUID write when `config.secretManager.url` is set, so a client an early import may
|
|
15
|
+
have built from an unresolved `REDIS_PASSWORD` pointer is replaced by a fresh registered one.
|
|
16
|
+
**Correction over 0.6.3:** the previous `resetDefaultRedisClient()` was insufficient (it
|
|
17
|
+
deferred the lazy rebuild, so the pointer resurfaced); `rebuildDefaultRedisClient()` captures
|
|
18
|
+
the resolved secret immediately. Fixes the `WRONGPASS ... REDIS_PASSWORD_V<n>` boot failure
|
|
19
|
+
with no consumer code — the `registerRedisClient(...)` workaround can be removed.
|
|
18
20
|
|
|
19
21
|
## [0.6.0] - 2026-07-12
|
|
20
22
|
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
|
|
8
8
|
// src/createServer.ts
|
|
9
9
|
import http from "http";
|
|
10
|
-
import { registerBindAddress, writeBootUuid, getLogger as getLogger13, getProjectConfig as getProjectConfig15, tryCatch as tryCatch10, isProduction as isProduction2, resolveEnvKey as resolveEnvKey5, dispatchHook as dispatchHook8,
|
|
10
|
+
import { registerBindAddress, writeBootUuid, getLogger as getLogger13, getProjectConfig as getProjectConfig15, tryCatch as tryCatch10, isProduction as isProduction2, resolveEnvKey as resolveEnvKey5, dispatchHook as dispatchHook8, rebuildDefaultRedisClient } from "@luckystack/core";
|
|
11
11
|
|
|
12
12
|
// src/httpHandler.ts
|
|
13
13
|
import { randomUUID } from "crypto";
|
|
@@ -2364,7 +2364,7 @@ var createLuckyStackServer = async (options = {}) => {
|
|
|
2364
2364
|
await initDevTools();
|
|
2365
2365
|
}
|
|
2366
2366
|
if (getProjectConfig15().secretManager?.url) {
|
|
2367
|
-
|
|
2367
|
+
rebuildDefaultRedisClient();
|
|
2368
2368
|
}
|
|
2369
2369
|
const [bootUuidError] = await tryCatch10(() => writeBootUuid());
|
|
2370
2370
|
if (bootUuidError) {
|