@luckystack/core 0.1.6 → 0.1.8
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 +11 -0
- package/CLAUDE.md +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/index.js.map +1 -1
- package/docs/app-bootstrap.md +0 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.1.5]
|
|
11
|
+
|
|
12
|
+
### Removed
|
|
13
|
+
|
|
14
|
+
- **`DNS` dropped from the env schema.** It was a reserved/legacy var that
|
|
15
|
+
conflated the backend origin (OAuth callback host) with the public origin
|
|
16
|
+
(where users browse). Projects now derive the backend origin from
|
|
17
|
+
`SERVER_IP`/`SERVER_PORT` and set the public origin via `app.publicUrl` (see the
|
|
18
|
+
scaffold's `config.ts`). Leftover `DNS=` lines in existing `.env` files are
|
|
19
|
+
harmless — the schema is `loose()`, so unknown keys pass through ignored.
|
|
20
|
+
|
|
10
21
|
## [0.1.0]
|
|
11
22
|
|
|
12
23
|
### Added
|
package/CLAUDE.md
CHANGED
|
@@ -173,7 +173,6 @@ Env vars read directly by core (via `env.ts` and call-time helpers):
|
|
|
173
173
|
| `SERVER_IP` | `'127.0.0.1'` | `getBindAddress()` fallback. |
|
|
174
174
|
| `SERVER_PORT` | `'80'` | `getBindAddress()` fallback. |
|
|
175
175
|
| `SECURE` | `'false'` | `allowedOrigin` scheme selection. |
|
|
176
|
-
| `DNS` | `''` | Reserved for downstream packages. |
|
|
177
176
|
| `REDIS_HOST` | `'127.0.0.1'` | `redis.ts` default client + `getRedisConnectionOptions`. |
|
|
178
177
|
| `REDIS_PORT` | `'6379'` | Same. |
|
|
179
178
|
| `REDIS_USER` | (unset) | Optional ioredis auth. |
|
package/dist/index.d.ts
CHANGED
|
@@ -328,7 +328,6 @@ declare const EnvSchema: z.ZodObject<{
|
|
|
328
328
|
true: "true";
|
|
329
329
|
false: "false";
|
|
330
330
|
}>>;
|
|
331
|
-
DNS: z.ZodDefault<z.ZodString>;
|
|
332
331
|
REDIS_HOST: z.ZodDefault<z.ZodString>;
|
|
333
332
|
REDIS_PORT: z.ZodDefault<z.ZodString>;
|
|
334
333
|
PROJECT_NAME: z.ZodDefault<z.ZodString>;
|
|
@@ -344,7 +343,6 @@ declare const env: {
|
|
|
344
343
|
SERVER_IP: string;
|
|
345
344
|
SERVER_PORT: string;
|
|
346
345
|
SECURE: "true" | "false";
|
|
347
|
-
DNS: string;
|
|
348
346
|
REDIS_HOST: string;
|
|
349
347
|
REDIS_PORT: string;
|
|
350
348
|
PROJECT_NAME: string;
|
package/dist/index.js
CHANGED
|
@@ -837,7 +837,6 @@ var EnvSchema = z.object({
|
|
|
837
837
|
SERVER_IP: z.string().min(1).default("127.0.0.1"),
|
|
838
838
|
SERVER_PORT: z.string().regex(/^\d+$/).default("80"),
|
|
839
839
|
SECURE: z.enum(["true", "false"]).default("false"),
|
|
840
|
-
DNS: z.string().default(""),
|
|
841
840
|
REDIS_HOST: z.string().min(1).default("127.0.0.1"),
|
|
842
841
|
REDIS_PORT: z.string().regex(/^\d+$/).default("6379"),
|
|
843
842
|
PROJECT_NAME: z.string().min(1).default("luckystack")
|
|
@@ -862,7 +861,6 @@ var applyResolvedDefaultsToProcessEnv = (resolvedEnv) => {
|
|
|
862
861
|
process.env.SERVER_IP = process.env.SERVER_IP ?? resolvedEnv.SERVER_IP;
|
|
863
862
|
process.env.SERVER_PORT = process.env.SERVER_PORT ?? resolvedEnv.SERVER_PORT;
|
|
864
863
|
process.env.SECURE = process.env.SECURE ?? resolvedEnv.SECURE;
|
|
865
|
-
process.env.DNS = process.env.DNS ?? resolvedEnv.DNS;
|
|
866
864
|
process.env.REDIS_HOST = process.env.REDIS_HOST ?? resolvedEnv.REDIS_HOST;
|
|
867
865
|
process.env.REDIS_PORT = process.env.REDIS_PORT ?? resolvedEnv.REDIS_PORT;
|
|
868
866
|
process.env.PROJECT_NAME = process.env.PROJECT_NAME ?? resolvedEnv.PROJECT_NAME;
|