@getstrata/bootstrap 2.2.50 → 2.2.51

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.51
4
+
5
+ - Resolve encoded static paths consistently across guarded server fallback, web routes and SPA assets, including HEAD and request-hook checks.
6
+ - Align core requirements with 2.2.51; retain native asset admission, Bun delivery and mixed HTTP/WebSocket abort-reporting limitations.
7
+
3
8
  ## 2.2.50
4
9
 
5
10
  - Report an unsuccessful graceful drain when an admitted HTTP-only response aborts during shutdown, after waiting for outstanding application work. Preserve pre-shutdown disconnect handling and normal WebSocket shutdown.
@@ -3,7 +3,7 @@
3
3
  import { join } from "path";
4
4
  import { jsonResponse } from "@getstrata/core/http/response";
5
5
  import { isSpaEnabled, isViewsEnabled, readSpaPrefix } from "@getstrata/core/runtime/frontendMode";
6
- import { assertPathUnderRoot } from "@getstrata/core/security/safePath";
6
+ import { assertUrlPathUnderRoot } from "@getstrata/core/security/safePath";
7
7
  var SPA_DIST_DIRECTORY = join(process.cwd(), "frontend/dist");
8
8
  function relativeSpaPath(pathname, prefix) {
9
9
  if (pathname === prefix || pathname === `${prefix}/`) {
@@ -24,7 +24,7 @@ function createSpaDocumentHandler(prefix, distDirectory) {
24
24
  const relativePath = relativeSpaPath(pathname, prefix);
25
25
  if (relativePath.length > 0) {
26
26
  try {
27
- const assetFile = Bun.file(assertPathUnderRoot(distDirectory, relativePath));
27
+ const assetFile = Bun.file(assertUrlPathUnderRoot(distDirectory, relativePath));
28
28
  if (await assetFile.exists()) {
29
29
  return new Response(assetFile);
30
30
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getstrata/bootstrap",
3
- "version": "2.2.50",
3
+ "version": "2.2.51",
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.50",
193
+ "@getstrata/core": "^2.2.51",
194
194
  "typescript": "^5.9.0 || ^6.0.0 || ^7.0.0"
195
195
  },
196
196
  "engines": {