@bymax-one/nest-storage 1.1.9 → 1.1.11

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
@@ -13,6 +13,49 @@ note on each entry is the compatibility contract — read it, not the number.
13
13
 
14
14
  ## [Unreleased]
15
15
 
16
+ ## [1.1.11] - 2026-11-13
17
+
18
+ ### Changed
19
+
20
+ - **Development and CI tooling updated; the published code does not change.** The AWS SDK
21
+ development dependencies and the pinned GitHub Actions are bumped to newer patch releases.
22
+ No file under `src/` changed.
23
+
24
+ ### Documentation
25
+
26
+ - **The README is shorter and corrected.** The API table and the export list now match the
27
+ published surface, text that repeated itself or did not belong is removed, and the security
28
+ controls are restored as one compact table with a row per control.
29
+
30
+ **Apply to a derived backend:** nothing to change; this release carries no runtime change.
31
+
32
+ ## [1.1.10] - 2026-11-09
33
+
34
+ ### Fixed
35
+
36
+ - **A caller string bound for an HTTP header is now checked, whether or not a MIME whitelist is set.**
37
+ `contentType`, `cacheControl`, `contentDisposition`, `kmsKeyId`, the keys and values of `metadata`,
38
+ `range`, `ifMatch`, `ifNoneMatch`, and `responseContentDisposition` and `responseContentType` of a
39
+ signed download URL passed through unchecked: with no whitelist, `getUploadUrl` signed a content
40
+ type holding a CR, LF, NUL or DEL, or a non-ASCII character, and the other options reached the
41
+ request or a signed URL the same way. Each of them may now hold only tab, space and printable
42
+ ASCII, and a `metadata` key must be a non-empty header name. Anything else fails with
43
+ `STORAGE_VALIDATION_FAILED` and `details: { field, reason }` before any request, from `upload()`,
44
+ `copy()`, `download()`, `getUploadUrl()`, `getMultipartUploadUrls()` and `getDownloadUrl()`. The
45
+ error never repeats the value. `defaultCacheControl` and `kmsKeyId` in the module options are
46
+ checked at bootstrap and fail with `STORAGE_INVALID_CONFIG`. An idempotent repeat of an `upload()`
47
+ is checked too, so it is not answered from the cache when a header-bound value is bad. With a
48
+ whitelist set, a bad `contentType` is still refused by the whitelist first, as
49
+ `STORAGE_MIME_NOT_ALLOWED`; that error no longer shows a `contentType` that is not a header value,
50
+ only the whitelist.
51
+
52
+ **Apply to a derived backend:** a value with a control or non-ASCII character that used to reach the
53
+ provider now fails with `STORAGE_VALIDATION_FAILED`. To send a non-ASCII filename, percent-encode it
54
+ as RFC 6266 `filename*`: `contentDisposition: "attachment; filename*=UTF-8''caf%C3%A9.pdf"`.
55
+ Percent-encode non-ASCII `metadata` values yourself with `encodeURIComponent`. A `metadata` key
56
+ with a colon, a space, a slash or a non-ASCII character is refused; use letters, digits and
57
+ `-`, `_` or `.`.
58
+
16
59
  ## [1.1.9] - 2026-11-09
17
60
 
18
61
  ### Fixed
@@ -639,4 +682,6 @@ have regressed from. They are kept because the reasoning is worth having.
639
682
  [1.1.7]: https://github.com/bymaxone/nest-storage/compare/v1.1.6...v1.1.7
640
683
  [1.1.8]: https://github.com/bymaxone/nest-storage/compare/v1.1.7...v1.1.8
641
684
  [1.1.9]: https://github.com/bymaxone/nest-storage/compare/v1.1.8...v1.1.9
642
- [Unreleased]: https://github.com/bymaxone/nest-storage/compare/v1.1.9...HEAD
685
+ [1.1.10]: https://github.com/bymaxone/nest-storage/compare/v1.1.9...v1.1.10
686
+ [1.1.11]: https://github.com/bymaxone/nest-storage/compare/v1.1.10...v1.1.11
687
+ [Unreleased]: https://github.com/bymaxone/nest-storage/compare/v1.1.11...HEAD