Skip to content

Commit 5e1a46f

Browse files
authored
Merge branch 'main' into teresalves/add-bulk-gets-for-kv
2 parents 3cfb2d0 + 82f35b8 commit 5e1a46f

File tree

43 files changed

+611
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+611
-91
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
chore: update dependencies of "create-cloudflare" package
6+
7+
The following dependency versions have been updated:
8+
9+
| Dependency | From | To |
10+
| ---------- | ------ | ------ |
11+
| create-vue | 3.14.2 | 3.15.1 |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
chore: update dependencies of "create-cloudflare" package
6+
7+
The following dependency versions have been updated:
8+
9+
| Dependency | From | To |
10+
| ------------ | ------ | ------ |
11+
| create-astro | 4.11.0 | 4.11.1 |

.changeset/cute-plants-wash.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"miniflare": patch
3+
"wrangler": patch
4+
---
5+
6+
fix bug where assets in directories starting with . would crash the dev server

.changeset/deep-symbols-heal.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
"@cloudflare/vite-plugin": patch
3+
---
4+
5+
Experimental: add support for Workers Assets metafiles (\_headers and \_redirects) in `vite dev`.
6+
7+
**Experimental feature**: This feature is being made available behind an experimental option (`headersAndRedirectsDevModeSupport`) in the cloudflare plugin configuration. It could change or be removed at any time.
8+
9+
```ts
10+
cloudflare({
11+
// ...
12+
experimental: { headersAndRedirectsDevModeSupport: true },
13+
}),
14+
```
15+
16+
Currently, in this experimental mode, requests that would result in an HTML response or a 404 response will take into account the \_headers and \_redirects settings.
17+
18+
Known limitation: requests for existing static assets will be served directly by Vite without considering the \_headers or \_redirects settings.
19+
20+
Production deployments or using `vite preview` already accurately supports the `_headers` and `_footers` features. The recommendation is to use `vite preview` for local testing of these settings.

.changeset/fluffy-icons-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
Improves minor HTML semantics of the default index.html included in various templates with Workers Assets

.changeset/tangy-streets-attack.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wrangler": patch
3+
---
4+
5+
wrangler cloudchamber create explicitly sets IPv6 predefined

.changeset/vast-rockets-swim.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": patch
3+
---
4+
5+
fix: provide type for `env` in c3 when vitest is included in template
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hi from .dot/index.html
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
hi from .dotfile.html

fixtures/workers-with-assets/tests/index.test.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,4 +247,22 @@ describe("[Workers + Assets] dynamic site", () => {
247247
// let response = await fetch(`http://${ip}:${port}/_worker.js`);
248248
// expect(await response.text()).not.toContain("bang");
249249
});
250+
251+
it("should work with files which start with .", async ({ expect }) => {
252+
let response = await fetch(`http://${ip}:${port}/.dot`);
253+
let text = await response.text();
254+
expect(response.status).toBe(200);
255+
expect(text).toMatchInlineSnapshot(`
256+
"hi from .dot/index.html
257+
"
258+
`);
259+
260+
response = await fetch(`http://${ip}:${port}/.dotfile.html`);
261+
text = await response.text();
262+
expect(response.status).toBe(200);
263+
expect(text).toMatchInlineSnapshot(`
264+
"hi from .dotfile.html
265+
"
266+
`);
267+
});
250268
});

0 commit comments

Comments
 (0)