Skip to content

Commit 2586816

Browse files
Version Packages (#8137)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent a45c58b commit 2586816

File tree

8 files changed

+42
-29
lines changed

8 files changed

+42
-29
lines changed

.changeset/unlucky-actors-swim.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/wild-days-jog.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/vite-plugin-cloudflare/CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
# @cloudflare/vite-plugin
22

3+
## 0.1.1
4+
5+
### Patch Changes
6+
7+
- [#8118](https://github.com/cloudflare/workers-sdk/pull/8118) [`ca3cbc4`](https://github.com/cloudflare/workers-sdk/commit/ca3cbc42ad60c04148ea6c4cd3d2cc06c94b3814) Thanks [@petebacondarwin](https://github.com/petebacondarwin)! - fix Node.js compat module resolution
8+
9+
In v0.0.8 we landed support for Vite 6.1 and also switched to using the new Cloudflare owned unenv preset.
10+
Unfortunately, the changes made in that update caused a regression in Node.js support.
11+
This became apparent only when the plugin was being used with certain package managers and outside of the workers-sdk monorepo.
12+
13+
The unenv polyfills that get compiled into the Worker are transitive dependencies of this plugin, not direct dependencies of the user's application were the plugin is being used.
14+
This is on purpose to avoid the user having to install these dependencies themselves.
15+
16+
Unfortunately, the changes in 0.0.8 did not correctly resolve the polyfills from `@cloudflare/unenv-preset` and `unenv` when the dependencies were not also installed directly into the user's application.
17+
18+
The approach was incorrectly relying upon setting the `importer` in calls to Vite's `resolve(id, importer)` method to base the resolution in the context of the vite plugin package rather than the user's application.
19+
This doesn't work because the `importer` is only relevant when the `id` is relative, and not a bare module specifier in the case of the unenv polyfills.
20+
21+
This change fixes how these id are resolved in the plugin by manually resolving the path at the appropriate point, while still leveraging Vite's resolution pipeline to handle aliasing, and dependency optimization.
22+
23+
This change now introduces e2e tests that checks that isolated installations of the plugin works with npm, pnpm and yarn.
24+
25+
- Updated dependencies [[`28b1dc7`](https://github.com/cloudflare/workers-sdk/commit/28b1dc7c6f213de336d58ce93308575de8f42f06)]:
26+
27+
- @cloudflare/unenv-preset@1.1.2
28+
329
## 0.1.0
430

531
### Minor Changes

packages/vite-plugin-cloudflare/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudflare/vite-plugin",
3-
"version": "0.1.0",
3+
"version": "0.1.1",
44
"description": "Cloudflare plugin for Vite",
55
"keywords": [
66
"cloudflare",

packages/vitest-pool-workers/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @cloudflare/vitest-pool-workers
22

3+
## 0.6.16
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [[`28b1dc7`](https://github.com/cloudflare/workers-sdk/commit/28b1dc7c6f213de336d58ce93308575de8f42f06)]:
8+
9+
310
## 0.6.15
411

512
### Patch Changes

packages/vitest-pool-workers/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cloudflare/vitest-pool-workers",
3-
"version": "0.6.15",
3+
"version": "0.6.16",
44
"description": "Workers Vitest integration for writing Vitest unit and integration tests that run inside the Workers runtime",
55
"keywords": [
66
"cloudflare",

packages/wrangler/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# wrangler
22

3+
## 3.109.1
4+
5+
### Patch Changes
6+
7+
- [#8021](https://github.com/cloudflare/workers-sdk/pull/8021) [`28b1dc7`](https://github.com/cloudflare/workers-sdk/commit/28b1dc7c6f213de336d58ce93308575de8f42f06) Thanks [@0xD34DC0DE](https://github.com/0xD34DC0DE)! - fix: prevent \_\_cf_cjs name collision in the hybrid Nodejs compat plugin
8+
39
## 3.109.0
410

511
### Minor Changes

packages/wrangler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wrangler",
3-
"version": "3.109.0",
3+
"version": "3.109.1",
44
"description": "Command-line interface for all things Cloudflare Workers",
55
"keywords": [
66
"wrangler",

0 commit comments

Comments
 (0)