@cloudflare/pages-shared 0.10.0 → 0.11.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.
@@ -293,8 +293,6 @@ export async function generateHandler<
293
293
  );
294
294
  } else if ((assetEntry = await findAssetEntryForPath(`${pathname}.html`))) {
295
295
  return serveAsset(assetEntry);
296
- } else if (hasFileExtension(pathname)) {
297
- return notFound();
298
296
  }
299
297
 
300
298
  if ((assetEntry = await findAssetEntryForPath(`${pathname}/index.html`))) {
@@ -626,10 +624,6 @@ function isCacheable(request: Request) {
626
624
  return !request.headers.has("authorization") && !request.headers.has("range");
627
625
  }
628
626
 
629
- function hasFileExtension(path: string) {
630
- return /\/.+\.[a-z0-9]+$/i.test(path);
631
- }
632
-
633
627
  // Parses a request URL hostname to determine if the request
634
628
  // is from a project served in "preview" mode.
635
629
  function isPreview(url: URL): boolean {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/pages-shared",
3
- "version": "0.10.0",
3
+ "version": "0.11.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/cloudflare/workers-sdk.git",
@@ -13,7 +13,7 @@
13
13
  "metadata-generator/**/*"
14
14
  ],
15
15
  "dependencies": {
16
- "miniflare": "3.20231002.1"
16
+ "miniflare": "3.20231030.0"
17
17
  },
18
18
  "devDependencies": {
19
19
  "@cloudflare/workers-types": "^4.20230511.0",