@bymax-one/nest-storage 1.0.4 → 1.0.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 +50 -1
- package/README.md +4 -2
- package/dist/server/index.cjs +1 -1
- package/dist/server/index.mjs +1 -1
- package/package.json +4 -17
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,53 @@ The format follows [Keep a Changelog 1.1.0](https://keepachangelog.com/en/1.1.0/
|
|
|
8
8
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
|
|
11
|
+
## [1.0.6] - 2026-08-06
|
|
12
|
+
|
|
13
|
+
**Documentation and tooling, not behaviour.** `dist/` differs from `1.0.5` only in the text
|
|
14
|
+
of five comments; no runtime code changed.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- **Five of the six suppression reasons never reached the mutation report.** Stryker captures
|
|
19
|
+
a directive's reason only after the colon and only to the end of that comment line. Five
|
|
20
|
+
directives wrapped their reason onto following `//` lines, so the report kept a truncated
|
|
21
|
+
half-sentence — and for the one on `storage.service.ts` it kept nothing, falling back to
|
|
22
|
+
`Ignored using a comment`. `docs/mutation_testing_results.md` had specified the right shape
|
|
23
|
+
(`<Mutator>: <reason>`) all along; the source did not follow it. Each reason is now on its
|
|
24
|
+
directive line.
|
|
25
|
+
- The README counted **five** `// Stryker disable` comments where the source carries six.
|
|
26
|
+
|
|
27
|
+
### Security
|
|
28
|
+
|
|
29
|
+
- **`js-yaml` is patched to the fixed release** (GHSA-5p4m-2wfm-xmqj, CVSS 7.5). It reaches
|
|
30
|
+
this repo only through `jest` -> `babel-plugin-istanbul` -> `@istanbuljs/load-nyc-config`,
|
|
31
|
+
and `dependencies` is empty, so nothing here ships it and no consumer was exposed. Fixed
|
|
32
|
+
with a `pnpm-workspace.yaml` override to `3.15.1` / `4.3.1` — a patch bump within each
|
|
33
|
+
major — rather than by telling the scanner to ignore dev dependencies, which would leave it
|
|
34
|
+
blind after this advisory is gone. `dist/` is unaffected.
|
|
35
|
+
|
|
36
|
+
### Added
|
|
37
|
+
|
|
38
|
+
- `check:mutants` gate (`scripts/check-mutation-directives.mjs`) — validates every
|
|
39
|
+
`// Stryker` comment against the parser's own regular expression, rejecting a reason
|
|
40
|
+
wrapped onto a second line, a reason written after `--` instead of a colon, and a mutator
|
|
41
|
+
name Stryker does not know, which would silence nothing. Wired into CI and
|
|
42
|
+
`prepublishOnly`.
|
|
43
|
+
|
|
44
|
+
## [1.0.5] - 2026-08-06
|
|
45
|
+
|
|
46
|
+
**Published-artifact change, not a behavioural one.** `dist/` differs from `1.0.4` — this
|
|
47
|
+
bundler preserves comments and the source gained mutation-suppression notes — but no runtime
|
|
48
|
+
path changed. Measured by building both revisions and diffing the output.
|
|
49
|
+
|
|
50
|
+
### Tests
|
|
51
|
+
|
|
52
|
+
- `configurable: false` on the withheld credentials accessor had nothing asserting it. That flag
|
|
53
|
+
is the guarantee behind every serialization assertion already in the suite: a configurable
|
|
54
|
+
accessor can be redefined back into a plain enumerable value by anything holding the object.
|
|
55
|
+
It is load-bearing in this package specifically — the sibling cache and queue packages freeze
|
|
56
|
+
their resolved options, which makes every property non-configurable anyway; this one does not.
|
|
57
|
+
|
|
11
58
|
## [1.0.4] - 2026-08-04
|
|
12
59
|
|
|
13
60
|
### Security
|
|
@@ -208,4 +255,6 @@ have regressed from. They are kept because the reasoning is worth having.
|
|
|
208
255
|
[1.0.2]: https://github.com/bymaxone/nest-storage/compare/v1.0.1...v1.0.2
|
|
209
256
|
[1.0.3]: https://github.com/bymaxone/nest-storage/compare/v1.0.2...v1.0.3
|
|
210
257
|
[1.0.4]: https://github.com/bymaxone/nest-storage/compare/v1.0.3...v1.0.4
|
|
211
|
-
[
|
|
258
|
+
[1.0.5]: https://github.com/bymaxone/nest-storage/compare/v1.0.4...v1.0.5
|
|
259
|
+
[1.0.6]: https://github.com/bymaxone/nest-storage/compare/v1.0.5...v1.0.6
|
|
260
|
+
[Unreleased]: https://github.com/bymaxone/nest-storage/compare/v1.0.6...HEAD
|
package/README.md
CHANGED
|
@@ -838,9 +838,11 @@ place stays there — so the suite is held to a bar beyond "the tests pass".
|
|
|
838
838
|
- ✅ **Published-artifact gates** — `check:exports` resolves the types the way each module
|
|
839
839
|
system does, `check:runtime` loads every subpath from the packed tarball in ESM and
|
|
840
840
|
CommonJS, and `check:published` compiles this README's snippets against `dist/`
|
|
841
|
-
- ✅ **Every suppression is justified** — no coverage directives anywhere; the
|
|
841
|
+
- ✅ **Every suppression is justified** — no coverage directives anywhere; the six
|
|
842
842
|
`// Stryker disable` comments in the production source each name why the mutant they
|
|
843
|
-
silence is provably equivalent, and
|
|
843
|
+
silence is provably equivalent, and `check:mutants` proves each reason is written in the
|
|
844
|
+
grammar Stryker parses, so the mutation report carries it in full rather than the
|
|
845
|
+
`Ignored using a comment` fallback
|
|
844
846
|
|
|
845
847
|
```bash
|
|
846
848
|
pnpm test # unit tests (Jest)
|
package/dist/server/index.cjs
CHANGED
|
@@ -153,7 +153,7 @@ function validateOptions(options) {
|
|
|
153
153
|
var SLASH = "/";
|
|
154
154
|
function trimTrailingSlashes(value) {
|
|
155
155
|
let end = value.length;
|
|
156
|
-
while (
|
|
156
|
+
while (value[end - 1] === SLASH) {
|
|
157
157
|
end -= 1;
|
|
158
158
|
}
|
|
159
159
|
return end === value.length ? value : value.slice(0, end);
|
package/dist/server/index.mjs
CHANGED
|
@@ -151,7 +151,7 @@ function validateOptions(options) {
|
|
|
151
151
|
var SLASH = "/";
|
|
152
152
|
function trimTrailingSlashes(value) {
|
|
153
153
|
let end = value.length;
|
|
154
|
-
while (
|
|
154
|
+
while (value[end - 1] === SLASH) {
|
|
155
155
|
end -= 1;
|
|
156
156
|
}
|
|
157
157
|
return end === value.length ? value : value.slice(0, end);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bymax-one/nest-storage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.6",
|
|
4
4
|
"description": "Provider-agnostic S3-compatible object storage for NestJS. Works with AWS S3, DigitalOcean Spaces, Cloudflare R2, Backblaze B2, MinIO, Wasabi.",
|
|
5
5
|
"author": "Bymax One <support@bymax.one>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,6 +46,7 @@
|
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "pnpm clean && tsup",
|
|
48
48
|
"check:exports": "attw --pack . --profile strict",
|
|
49
|
+
"check:mutants": "node scripts/check-mutation-directives.mjs",
|
|
49
50
|
"check:published": "node scripts/check-published-surface.mjs",
|
|
50
51
|
"check:runtime": "node scripts/check-consumer-runtime.mjs",
|
|
51
52
|
"clean": "rm -rf dist coverage",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"mutation": "stryker run",
|
|
55
56
|
"mutation:dry-run": "stryker run --dryRunOnly",
|
|
56
57
|
"mutation:incremental": "stryker run --incremental",
|
|
57
|
-
"prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm test:cov:all && pnpm build && pnpm size && pnpm check:published",
|
|
58
|
+
"prepublishOnly": "pnpm clean && pnpm typecheck && pnpm lint && pnpm check:mutants && pnpm test:cov:all && pnpm build && pnpm size && pnpm check:published",
|
|
58
59
|
"release": "npm publish --provenance --access public",
|
|
59
60
|
"size": "node scripts/check-size.mjs",
|
|
60
61
|
"test": "jest",
|
|
@@ -125,20 +126,6 @@
|
|
|
125
126
|
"typescript": "^5.9.3",
|
|
126
127
|
"typescript-eslint": "^8.65.0"
|
|
127
128
|
},
|
|
128
|
-
"pnpm": {
|
|
129
|
-
"overrides": {
|
|
130
|
-
"brace-expansion@1": "^1.1.17",
|
|
131
|
-
"brace-expansion@2": "^2.1.3",
|
|
132
|
-
"brace-expansion@5": "^5.0.8",
|
|
133
|
-
"esbuild": "0.28.1",
|
|
134
|
-
"fast-uri": "^3.1.4",
|
|
135
|
-
"multer": "2.2.0",
|
|
136
|
-
"protobufjs": "^7.6.5",
|
|
137
|
-
"qs": "6.15.2",
|
|
138
|
-
"undici": "^8.9.0",
|
|
139
|
-
"uuid": "11.1.1"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
129
|
"keywords": [
|
|
143
130
|
"nestjs",
|
|
144
131
|
"storage",
|
|
@@ -153,7 +140,7 @@
|
|
|
153
140
|
"presigned-url",
|
|
154
141
|
"multipart-upload"
|
|
155
142
|
],
|
|
156
|
-
"packageManager": "pnpm@
|
|
143
|
+
"packageManager": "pnpm@11.20.0",
|
|
157
144
|
"engines": {
|
|
158
145
|
"node": ">=24.0.0"
|
|
159
146
|
},
|