@luckystack/core 0.4.0 → 0.5.0
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 +23 -0
- package/CLAUDE.md +245 -243
- package/LICENSE +21 -21
- package/README.md +93 -93
- package/dist/{chunk-H64EC7Q6.js → chunk-A3VMC576.js} +3 -3
- package/dist/chunk-A3VMC576.js.map +1 -0
- package/dist/{chunk-6BBJ2Q6I.js → chunk-ECWDUWBG.js} +1 -1
- package/dist/chunk-ECWDUWBG.js.map +1 -0
- package/dist/{chunk-TGYBUT4N.js → chunk-ELHTLIEX.js} +1 -1
- package/dist/chunk-ELHTLIEX.js.map +1 -0
- package/dist/client.js +4 -4
- package/dist/client.js.map +1 -1
- package/dist/eslint/index.js.map +1 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +38 -6
- package/dist/index.js.map +1 -1
- package/dist/{projectConfig-FITPOAMC.js → projectConfig-P2AHHQVW.js} +2 -2
- package/dist/{sentrySetup-MHAHHITT.js → sentrySetup-552JVLHJ.js} +2 -2
- package/docs/app-bootstrap.md +418 -418
- package/docs/config-registry.md +348 -348
- package/docs/csrf-config.md +88 -88
- package/docs/error-tracker-registry.md +174 -174
- package/docs/hooks.md +298 -298
- package/docs/rate-limit-strategy.md +170 -170
- package/docs/redis-adapter.md +111 -111
- package/docs/session-types.md +180 -180
- package/docs/socket-bootstrap.md +366 -366
- package/package.json +4 -1
- package/dist/chunk-6BBJ2Q6I.js.map +0 -1
- package/dist/chunk-H64EC7Q6.js.map +0 -1
- package/dist/chunk-TGYBUT4N.js.map +0 -1
- /package/dist/{projectConfig-FITPOAMC.js.map → projectConfig-P2AHHQVW.js.map} +0 -0
- /package/dist/{sentrySetup-MHAHHITT.js.map → sentrySetup-552JVLHJ.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,29 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.5.0] - 2026-07-11
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- **`@prisma/client` is now an OPTIONAL peer dependency** (ADR 0020, the ORM
|
|
15
|
+
choice). npm no longer auto-installs it; scaffolded projects get it via the
|
|
16
|
+
template's direct dependency when `orm: 'prisma'`. Non-scaffolded projects
|
|
17
|
+
that relied on peer auto-install must add `@prisma/client` to their own
|
|
18
|
+
`package.json`. The same demotion applies in `@luckystack/api`, `devkit`,
|
|
19
|
+
`server`, `sync`, and `login`.
|
|
20
|
+
- `@prisma/client` left the static-import position in `db.ts`: the default
|
|
21
|
+
resolver now lazy-`require()`s it on first access. When it is absent AND no
|
|
22
|
+
client was registered, DB access throws an actionable error pointing at
|
|
23
|
+
`luckystack/core/clients.ts` instead of a bare `ERR_MODULE_NOT_FOUND` at boot.
|
|
24
|
+
|
|
25
|
+
### Added
|
|
26
|
+
|
|
27
|
+
- `isPrismaClientResolvable()` — is a generated `@prisma/client` present?
|
|
28
|
+
- `registerDbHealthCheck` / `getDbHealthCheck` / `isDbHealthCheckRegistered` /
|
|
29
|
+
`resetDbHealthCheckForTests` (+ types `DbHealthCheck`, `DbHealthResult`) —
|
|
30
|
+
pluggable `/readyz` database probe; without one the server falls back to the
|
|
31
|
+
built-in Prisma ping when Prisma is present, else reports `'skipped'`.
|
|
32
|
+
|
|
10
33
|
## [0.1.5]
|
|
11
34
|
|
|
12
35
|
### Removed
|