@nifrajs/aws-lambda 5.1.0 → 5.3.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +85 -0
  2. package/package.json +3 -2
package/CHANGELOG.md ADDED
@@ -0,0 +1,85 @@
1
+ # @nifrajs/aws-lambda
2
+
3
+ ## 5.3.0
4
+
5
+ No changes in this release.
6
+
7
+ ## 5.2.1
8
+
9
+ No changes in this release.
10
+
11
+ ## 5.2.0
12
+
13
+ ### Patch Changes
14
+
15
+ - 9498cf8: The package ships its `CHANGELOG.md`, so the installed package has the notes for every version, as the GitHub release does. Before, the tarball held only the code, `README.md`, `LICENSE` and `package.json`.
16
+
17
+ ## 5.1.0
18
+
19
+ ### Patch Changes
20
+
21
+ - 74b8c29: A `HEAD` request now gets a body-less answer from both `handle()` and `streamHandle()`: the GET route's status and headers, an empty `body`, and no streamed chunks. Before, the adapter returned the full GET body for `HEAD`, and a streaming route was read to its end. A streaming body is now cancelled instead, so its producer learns nobody is reading, as on the Node, Bun and Deno adapters.
22
+
23
+ ## 5.0.0
24
+
25
+ ### Patch Changes
26
+
27
+ - 9f5daa8: When an event carries no `requestContext.domainName`, the adapter uses the `Host` header for the request URL only if it is a plain host and port. A `Host` holding `/`, `?`, `#` or `@` can no longer change the URL's host or the path the app routes on; such a request is built on `localhost` instead.
28
+
29
+ ## 4.0.2
30
+
31
+ ## 4.0.1
32
+
33
+ ## 4.0.0
34
+
35
+ ### Patch Changes
36
+
37
+ - 031c33d: fix(runtime): preserve typed-array compatibility across Fetch runtimes and reject invalid request bodies at the runner boundary.
38
+
39
+ ## 3.5.0
40
+
41
+ ## 3.4.0
42
+
43
+ ## 3.3.0
44
+
45
+ ## 3.2.0
46
+
47
+ ## 3.1.0
48
+
49
+ ## 3.0.0
50
+
51
+ ## 2.14.1
52
+
53
+ ## 2.14.0
54
+
55
+ ## 2.13.0
56
+
57
+ ## 2.12.1
58
+
59
+ ## 2.12.0
60
+
61
+ ### Minor Changes
62
+
63
+ - 2a01366: New package: AWS Lambda adapter for API Gateway HTTP APIs (payload v2) and Lambda Function URLs.
64
+
65
+ - `handle(app)` returns a buffered v2 handler; `streamHandle(app)` streams responses on Function
66
+ URLs with `InvokeMode: RESPONSE_STREAM` via `awslambda.streamifyResponse`.
67
+ - The request body is decoded and its real size checked against `maxBodyBytes` (default 1,000,000)
68
+ before a `Request` is constructed - the event's own length claims are never trusted; over the
69
+ limit answers a flat `413`.
70
+ - Request headers are assembled in exactly one place from the v2 `headers` map plus the canonical
71
+ `cookies` array; response `Set-Cookie` values travel in the result's `cookies` array, one entry
72
+ each, never comma-joined.
73
+ - Response `isBase64Encoded` is decided by a strict UTF-8 decode of the actual bytes, never by
74
+ content-type guessing.
75
+ - `event.requestContext.http.sourceIp` feeds core's client-IP seam (`c.clientIp`); the event and
76
+ context ride on `c.env` (`server<LambdaEnv>()`); `waitUntil` work settles before the container
77
+ freezes; uncaught errors collapse to the flat `internal_error` 500 with no event echo.
78
+
79
+ REST APIs (payload v1) and ALB events are out of scope.
80
+
81
+ ### Patch Changes
82
+
83
+ - 6392995: `handle` and `streamHandle` validate `maxBodyBytes` at wire-up: a `NaN`, fractional, or negative value
84
+ throws a `RangeError` instead of being installed as a cap. `NaN` compares false against every size, so
85
+ the misconfiguration read as "configured" while enforcing nothing.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nifrajs/aws-lambda",
3
- "version": "5.1.0",
3
+ "version": "5.3.0",
4
4
  "description": "AWS Lambda adapter for nifra - API Gateway HTTP API (payload v2) and Function URLs, buffered or streaming, with post-decode body limits and single-site header merging. Dependency-free.",
5
5
  "keywords": [
6
6
  "bun",
@@ -29,7 +29,8 @@
29
29
  },
30
30
  "files": [
31
31
  "dist",
32
- "src"
32
+ "src",
33
+ "CHANGELOG.md"
33
34
  ],
34
35
  "sideEffects": false,
35
36
  "scripts": {