@getstrata/bootstrap 2.2.53 → 2.2.55

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
@@ -1,5 +1,14 @@
1
1
  # @getstrata/bootstrap changelog
2
2
 
3
+ ## 2.2.55
4
+
5
+ - Align the core requirement with 2.2.55. Existing startup aggregation, provider drain/flush/close policy and server APIs are unchanged; native asset and mixed HTTP/WebSocket limitations remain.
6
+
7
+ ## 2.2.54
8
+
9
+ - Preserve own native route parameter keys such as __proto__ as data properties instead of losing them through an inherited setter. Keep the ordinary object prototype, string coercion, Bun-owned decoding and native request identity.
10
+ - Align the core requirement with 2.2.54. No new route API or native asset admission/delivery or mixed HTTP/WebSocket behavior is introduced.
11
+
3
12
  ## 2.2.53
4
13
 
5
14
  - Preserve Bun-native decoded route parameters without decoding them a second time. Literal percent identifiers remain valid, and encoded-looking identifiers retain the key Bun supplies before binding and authorization.
@@ -378,14 +378,10 @@ function createHttpKernel(dependencies) {
378
378
 
379
379
  // ../../src/bootstrap/web/routing.ts
380
380
  function routeParams(request) {
381
- const normalized = {};
382
381
  const raw = request.params;
383
- if (raw && typeof raw === "object") {
384
- for (const [key, value] of Object.entries(raw)) {
385
- normalized[key] = String(value);
386
- }
387
- }
388
- return normalized;
382
+ if (!raw || typeof raw !== "object")
383
+ return {};
384
+ return Object.fromEntries(Object.entries(raw).map(([key, value]) => [key, String(value)]));
389
385
  }
390
386
  function toRouteRequest(request) {
391
387
  const params = routeParams(request);
package/dist/index.js CHANGED
@@ -2052,14 +2052,10 @@ async function parseFormBody(request) {
2052
2052
  import { requestPrefersJson } from "@getstrata/core/http/contentNegotiation";
2053
2053
  import { withErrorHandling as withErrorHandling2 } from "@getstrata/core/http/response";
2054
2054
  function routeParams(request) {
2055
- const normalized = {};
2056
2055
  const raw = request.params;
2057
- if (raw && typeof raw === "object") {
2058
- for (const [key, value] of Object.entries(raw)) {
2059
- normalized[key] = String(value);
2060
- }
2061
- }
2062
- return normalized;
2056
+ if (!raw || typeof raw !== "object")
2057
+ return {};
2058
+ return Object.fromEntries(Object.entries(raw).map(([key, value]) => [key, String(value)]));
2063
2059
  }
2064
2060
  function toRouteRequest(request) {
2065
2061
  const params = routeParams(request);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getstrata/bootstrap",
3
- "version": "2.2.53",
3
+ "version": "2.2.55",
4
4
  "description": "Strata application bootstrap: HttpKernel, DI, web session helpers",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -190,7 +190,7 @@
190
190
  "access": "public"
191
191
  },
192
192
  "peerDependencies": {
193
- "@getstrata/core": "^2.2.53",
193
+ "@getstrata/core": "^2.2.55",
194
194
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
195
195
  },
196
196
  "engines": {