Skip to content

Commit

Permalink
Revert "Revert "startDevWorker - Milestone 1 (#4497)" (#4531)" (#4535)
Browse files Browse the repository at this point in the history
This reverts commit 310281a.
  • Loading branch information
mrbbot authored Nov 30, 2023
1 parent 97727de commit 29df8e1
Show file tree
Hide file tree
Showing 43 changed files with 3,696 additions and 983 deletions.
12 changes: 12 additions & 0 deletions .changeset/serious-toys-repeat.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
"wrangler": minor
---

Reintroduces some internal refactorings of wrangler dev servers (including `wrangler dev`, `wrangler dev --remote`, and `unstable_dev()`).

These changes were released in 3.13.0 and reverted in 3.13.1 -- we believe the changes are now more stable and ready for release again.

There are no changes required for developers to opt-in. Improvements include:

- fewer 'address in use' errors upon reloads
- upon config/source file changes, requests are buffered to guarantee the response is from the new version of the Worker
1 change: 1 addition & 0 deletions fixtures/dev-env/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist
25 changes: 25 additions & 0 deletions fixtures/dev-env/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"name": "dev-env",
"version": "1.0.1",
"private": true,
"description": "",
"license": "ISC",
"author": "",
"main": "src/index.js",
"scripts": {
"test": "npx vitest run",
"test:ci": "npx vitest run",
"test:watch": "npx vitest",
"type:tests": "tsc -p ./tests/tsconfig.json"
},
"devDependencies": {
"@types/ws": "^8.5.7",
"@cloudflare/workers-tsconfig": "workspace:^",
"get-port": "^7.0.0",
"miniflare": "3.20231025.1",
"undici": "^5.23.0",
"wrangler": "workspace:*",
"ws": "^8.14.2"
},
"dependencies": {}
}
Loading

0 comments on commit 29df8e1

Please sign in to comment.