Skip to content

Commit

Permalink
chore: update unenv dependency version
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Oct 8, 2024
1 parent 6e3a50f commit 70dc72b
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .changeset/heavy-ties-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"wrangler": major
---

chore: update unenv dependency version

Pull two fixes from unenv:

- [feat(node/net): implement Server mock](https://github.com/unjs/unenv/pull/316)
- [feat(node, cloudflare): fill in api surface for node:perf_hooks](https://github.com/unjs/unenv/pull/257)
2 changes: 1 addition & 1 deletion packages/wrangler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"resolve.exports": "^2.0.2",
"selfsigned": "^2.0.1",
"source-map": "^0.6.1",
"unenv": "npm:[email protected]20240919-125358-9a64854",
"unenv": "npm:[email protected]20241007-204748-a58d516",
"workerd": "1.20240925.0",
"xxhash-wasm": "^1.0.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/wrangler/src/__tests__/deploy.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9019,7 +9019,7 @@ addEventListener('fetch', event => {});`
).split("This error came from the")[0]
)
).resolves.toMatchInlineSnapshot(`
"X [ERROR] Unexpected external import of \\"node:stream\\" and \\"node:timers/promises\\". Imports are not valid in a Service Worker format Worker.
"X [ERROR] Unexpected external import of \\"node:stream\\", \\"node:timers/promises\\", and \\"perf_hooks\\". Imports are not valid in a Service Worker format Worker.
Did you mean to create a Module Worker?
If so, try adding \`export default { ... }\` in your entry-point.
See https://developers.cloudflare.com/workers/reference/migrate-to-module-workers/. [plugin unenv-cloudflare]
Expand Down
16 changes: 11 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 70dc72b

Please sign in to comment.