@luckystack/server 0.6.5 → 0.6.6

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
@@ -9,14 +9,13 @@ 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 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.
12
+ - **Redis secret-manager pointer boot** (ADR 0026): fixes the `WRONGPASS ... REDIS_PASSWORD_V<n>`
13
+ boot failure with no consumer code the `registerRedisClient(...)` workaround can be removed.
14
+ The rebuild is triggered by `@luckystack/secret-manager` firing core's secrets-resolved channel
15
+ at resolve time (see the `@luckystack/core` changelog). An intermediate 0.6.3/0.6.4 attempt did
16
+ this from `createLuckyStackServer` gated on `config.secretManager.url`, but that gate is always
17
+ falsy (the scaffold doesn't register `secretManager` into `projectConfig`) — that vestigial gate
18
+ is now REMOVED; the channel is the single trigger.
20
19
 
21
20
  ## [0.6.0] - 2026-07-12
22
21
 
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, rebuildDefaultRedisClient } from "@luckystack/core";
10
+ import { registerBindAddress, writeBootUuid, getLogger as getLogger13, getProjectConfig as getProjectConfig15, tryCatch as tryCatch10, isProduction as isProduction2, resolveEnvKey as resolveEnvKey5, dispatchHook as dispatchHook8 } from "@luckystack/core";
11
11
 
12
12
  // src/httpHandler.ts
13
13
  import { randomUUID } from "crypto";
@@ -2363,9 +2363,6 @@ var createLuckyStackServer = async (options = {}) => {
2363
2363
  if (enableDevTools) {
2364
2364
  await initDevTools();
2365
2365
  }
2366
- if (getProjectConfig15().secretManager?.url) {
2367
- rebuildDefaultRedisClient();
2368
- }
2369
2366
  const [bootUuidError] = await tryCatch10(() => writeBootUuid());
2370
2367
  if (bootUuidError) {
2371
2368
  throw new Error(