Skip to content

Commit

Permalink
Update MiniOxygen to latest workerd version (#2567)
Browse files Browse the repository at this point in the history
* Update package-lock after release

* Update miniflare and workerd versions

* Fix sourcemap tests

* Changesets
  • Loading branch information
frandiox authored Sep 27, 2024
1 parent 7d1930e commit 04b4c7c
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 43 deletions.
5 changes: 5 additions & 0 deletions .changeset/spicy-rats-press.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/mini-oxygen': patch
---

Update internal version of the worker runtime.
81 changes: 40 additions & 41 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion packages/mini-oxygen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
"body-parser": "1.20.2",
"connect": "^3.7.0",
"get-port": "^7.0.0",
"miniflare": "3.20240304.2",
"miniflare": "^3.20240925.0",
"mrmime": "1.0.1",
"source-map": "^0.7.4",
"source-map-support": "^0.5.21",
Expand Down
4 changes: 3 additions & 1 deletion packages/mini-oxygen/src/worker/e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ describe('MiniOxygen Worker Runtime', () => {
const response = await fetch('/');

expect(response.status).toEqual(500);
await expect(response.text()).resolves.toEqual('Error: test');
await expect(response.text()).resolves.toSatisfy((result) =>
(result as string).startsWith('Error: test'),
);

// console.error from workerd is asynchronous
await vi.waitFor(
Expand Down

0 comments on commit 04b4c7c

Please sign in to comment.