Commit a37ec6c
authored
Upgrade MiniOxygen to Miniflare v4 (#2997)
## PR Summary: Upgrade to Miniflare v4
### Why
This PR upgrades the Hydrogen CLI from Miniflare v3 to v4, addressing compatibility issues and improving the development experience. The upgrade was necessary to stay current with Cloudflare's latest tooling and resolve potential security vulnerabilities in older dependencies.
### What Changed
**Core Updates:**
- Upgraded Miniflare from v3 to v4 across the codebase
- Updated related Cloudflare dependencies to maintain compatibility
- Refactored the development server implementation to work with Miniflare v4's new API
**Test Improvements:**
- Fixed flaky test timing issues by replacing fixed delays with proper async polling
- Corrected test cleanup patterns to prevent temporary directory accumulation
- Improved test reliability and execution speed
**Key Benefits:**
- Better compatibility with modern Cloudflare Workers features
- Improved development server stability
- Faster test execution (removed unnecessary 10-second delays)
- Cleaner test isolation with proper resource cleanup
This is a maintenance update that ensures Hydrogen stays compatible with the latest Cloudflare ecosystem while improving developer experience through more reliable tests.1 parent 1755eb6 commit a37ec6c
34 files changed
Lines changed: 578 additions & 10652 deletions
File tree
- .changeset
- examples
- b2b
- custom-cart-method
- legacy-customer-account-flow
- metaobjects
- multipass
- subscriptions
- packages
- cli/src
- commands/hydrogen
- lib
- onboarding
- hydrogen-react/src
- hydrogen/src
- cart
- dev
- vite
- mini-oxygen
- src
- common
- node
- templates/skeleton
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
| 144 | + | |
| 145 | + | |
0 commit comments