@luckystack/server 0.6.1 → 0.6.3

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
@@ -5,6 +5,17 @@ All notable changes to `@luckystack/server` are documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [Unreleased]
9
+
10
+ ### Fixed
11
+
12
+ - **Redis secret-manager pointer boot** (ADR 0026): `createLuckyStackServer` now drops any
13
+ cached default Redis client right before the boot-UUID write when
14
+ `config.secretManager.url` is set, so a client an early import may have built from an
15
+ unresolved `REDIS_PASSWORD` pointer is rebuilt from the resolved `process.env`. Fixes the
16
+ `WRONGPASS ... REDIS_PASSWORD_V<n>` boot failure with no consumer code — the
17
+ `registerRedisClient(...)` workaround can be removed.
18
+
8
19
  ## [0.6.0] - 2026-07-12
9
20
 
10
21
  ### Added
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 } 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, resetDefaultRedisClient } from "@luckystack/core";
11
11
 
12
12
  // src/httpHandler.ts
13
13
  import { randomUUID } from "crypto";
@@ -2363,6 +2363,9 @@ var createLuckyStackServer = async (options = {}) => {
2363
2363
  if (enableDevTools) {
2364
2364
  await initDevTools();
2365
2365
  }
2366
+ if (getProjectConfig15().secretManager?.url) {
2367
+ resetDefaultRedisClient();
2368
+ }
2366
2369
  const [bootUuidError] = await tryCatch10(() => writeBootUuid());
2367
2370
  if (bootUuidError) {
2368
2371
  throw new Error(