@getstrata/bootstrap 2.2.52 → 2.2.53

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,10 @@
1
1
  # @getstrata/bootstrap changelog
2
2
 
3
+ ## 2.2.53
4
+
5
+ - 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.
6
+ - Align the core requirement with 2.2.53. Native asset admission/delivery and mixed HTTP/WebSocket reporting limitations remain unchanged.
7
+
3
8
  ## 2.2.52
4
9
 
5
10
  - Share response policy and observation middleware for explicitly public application documents without adding auth/tenant requirements.
@@ -5,7 +5,7 @@ import type { HttpKernel } from "../httpKernel.ts";
5
5
  /** Read Bun native `:param` values from a route handler request. */
6
6
  export declare function routeParams(request: Request): Record<string, string>;
7
7
  /**
8
- * Attach decoded route params to Bun's native Request for RouteRequest handlers.
8
+ * Copy Bun's already decoded route params onto its native Request for RouteRequest handlers.
9
9
  * Mutates the request in place so instanceof Request and Bun internals stay valid.
10
10
  */
11
11
  export declare function toRouteRequest<TParams extends Record<string, string>>(request: Request): RouteRequest<TParams>;
@@ -382,7 +382,7 @@ function routeParams(request) {
382
382
  const raw = request.params;
383
383
  if (raw && typeof raw === "object") {
384
384
  for (const [key, value] of Object.entries(raw)) {
385
- normalized[key] = decodeURIComponent(String(value));
385
+ normalized[key] = String(value);
386
386
  }
387
387
  }
388
388
  return normalized;
package/dist/index.js CHANGED
@@ -2056,7 +2056,7 @@ function routeParams(request) {
2056
2056
  const raw = request.params;
2057
2057
  if (raw && typeof raw === "object") {
2058
2058
  for (const [key, value] of Object.entries(raw)) {
2059
- normalized[key] = decodeURIComponent(String(value));
2059
+ normalized[key] = String(value);
2060
2060
  }
2061
2061
  }
2062
2062
  return normalized;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getstrata/bootstrap",
3
- "version": "2.2.52",
3
+ "version": "2.2.53",
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.52",
193
+ "@getstrata/core": "^2.2.53",
194
194
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
195
195
  },
196
196
  "engines": {