@bymax-one/nest-cache 1.0.1 → 1.0.2
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 +24 -0
- package/package.json +9 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,30 @@ project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.0.2] - 2026-07-29
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- **The `./shared` subpath now resolves under `moduleResolution: node`.** A
|
|
14
|
+
`typesVersions` map points the subpath at its `.d.cts` declarations, which is
|
|
15
|
+
the only mechanism that resolution algorithm understands — it predates
|
|
16
|
+
`exports` and ignores it entirely. Without this, a consumer whose tsconfig
|
|
17
|
+
sets `module: commonjs` without an explicit `moduleResolution` (the default
|
|
18
|
+
the Nest CLI scaffolds, which falls back to `node`) got
|
|
19
|
+
`error TS2307: Cannot find module '@bymax-one/nest-cache/shared'` while the
|
|
20
|
+
root entrypoint resolved fine. Runtime was never affected: Node reads
|
|
21
|
+
`exports`, so `require('@bymax-one/nest-cache/shared')` always worked.
|
|
22
|
+
|
|
23
|
+
This supersedes the note under 1.0.1 claiming the subpath was "not fixable
|
|
24
|
+
without a directory shim" — that was wrong, `typesVersions` fixes it with no
|
|
25
|
+
extra files in the tarball.
|
|
26
|
+
|
|
27
|
+
### Changed
|
|
28
|
+
|
|
29
|
+
- `check:exports` now runs the **strict** `attw` profile. The `--profile node16`
|
|
30
|
+
escape hatch existed only to ignore the failing `node10` row, which no longer
|
|
31
|
+
fails, so every entrypoint is now verified in every resolution mode.
|
|
32
|
+
|
|
9
33
|
## [1.0.1] - 2026-07-29
|
|
10
34
|
|
|
11
35
|
### Fixed
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bymax-one/nest-cache",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Typed Redis cache for NestJS based on ioredis 5, with namespace strategy, Pub/Sub and Lua script management.",
|
|
5
5
|
"author": "Bymax One <support@bymax.one>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,13 @@
|
|
|
46
46
|
"main": "./dist/server/index.cjs",
|
|
47
47
|
"module": "./dist/server/index.mjs",
|
|
48
48
|
"types": "./dist/server/index.d.cts",
|
|
49
|
+
"typesVersions": {
|
|
50
|
+
"*": {
|
|
51
|
+
"shared": [
|
|
52
|
+
"./dist/shared/index.d.cts"
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
49
56
|
"lint-staged": {
|
|
50
57
|
"*.{ts,tsx,js,mjs,cjs}": [
|
|
51
58
|
"eslint --fix",
|
|
@@ -132,7 +139,7 @@
|
|
|
132
139
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.server.json",
|
|
133
140
|
"test:types": "tsc --noEmit -p tsconfig.typetest.json",
|
|
134
141
|
"size": "node scripts/check-size.mjs",
|
|
135
|
-
"check:exports": "attw --pack .
|
|
142
|
+
"check:exports": "attw --pack .",
|
|
136
143
|
"clean": "rm -rf dist coverage",
|
|
137
144
|
"release": "pnpm publish --provenance"
|
|
138
145
|
}
|