Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Workerd for local development #1184

Merged
merged 44 commits into from
Sep 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
4670ed0
Apply multiple log replacers instead of only the first match
frandiox Aug 2, 2023
93f7a5a
Basic workerd integration
frandiox Aug 2, 2023
bc79360
Cleanup logs
frandiox Aug 2, 2023
d120a1d
Add Oxygen headers to request
frandiox Aug 2, 2023
b15b016
Setup basic inspector connection
frandiox Aug 3, 2023
02c53a2
Full parity with MiniOxygen logging
frandiox Aug 3, 2023
a4cd5d0
Fix MiniOxygen entry worker
frandiox Aug 3, 2023
58848fd
Fix log replacer
frandiox Aug 3, 2023
ca93965
Only serve known assets
frandiox Aug 3, 2023
2a5e009
Find nearest free port
frandiox Mar 7, 2023
fbf1acd
Find port for inspector
frandiox Aug 3, 2023
44b9700
Use waitUntil for logger. Minor refactor
frandiox Aug 4, 2023
68bc4cf
Merge branch '2023-07' into fd-mini-oxygen-workerd
frandiox Aug 15, 2023
18f6b88
Merge branch '2023-07' into fd-mini-oxygen-workerd
frandiox Aug 17, 2023
2b5b755
Restore integrity in package-lock for turbo and ast-grep
frandiox Aug 17, 2023
7d9bacb
Update miniflare
frandiox Aug 28, 2023
7c06e94
Do not show undefined cause in errors
frandiox Aug 28, 2023
21e6c8e
Move workerd logic
frandiox Aug 28, 2023
e0d6b3b
Restore MiniOxygen v1
frandiox Aug 28, 2023
c466115
Merge branch 'main' into fd-mini-oxygen-workerd
frandiox Aug 28, 2023
844bf61
Restore logs for MiniOxygen
frandiox Aug 28, 2023
94a4bcb
Fix port after merge
frandiox Aug 28, 2023
40a5d6d
Move mini-oxygen v2 logic
frandiox Aug 28, 2023
28e4835
Unify API
frandiox Aug 28, 2023
11fcd70
Toggle between node and worker with a CLI flag
frandiox Aug 28, 2023
d4e643b
Use Oxygen headers in Node
frandiox Aug 28, 2023
24d22aa
Fix package-lock for turbo and ast-grep
frandiox Aug 28, 2023
a00d1f5
Fix package-lock for typescript
frandiox Aug 28, 2023
1d00754
Use mime lookup from cli-kit
frandiox Aug 28, 2023
8b6e88f
Extract oxygen headers logic
frandiox Aug 28, 2023
dd20432
Merge branch 'main' into fd-mini-oxygen-workerd
frandiox Aug 29, 2023
2cfda8b
Merge branch 'main' into fd-mini-oxygen-workerd
frandiox Sep 6, 2023
8b68552
Merge branch 'main' into fd-mini-oxygen-workerd
frandiox Sep 15, 2023
fb23734
Add notice about debug-network support
frandiox Sep 15, 2023
509855e
Rename native-unstable flag to worker-unstable
frandiox Sep 15, 2023
a82c09e
Filter out non-actionable warnings and errors
frandiox Sep 15, 2023
922ece1
Stream files
frandiox Sep 19, 2023
9d4b483
Load remote env vars in preview command
frandiox Sep 19, 2023
ab40e00
Avoid cloning requests
frandiox Sep 19, 2023
e5120cc
Use sets to find asset matches
frandiox Sep 19, 2023
2d6d64f
Update Miniflare version
frandiox Sep 19, 2023
5fffcdb
Changesets
frandiox Sep 19, 2023
288a977
Hide the unsupported debug-network line for worker runtime
frandiox Sep 19, 2023
828a5c1
Update Miniflare version to drop subdependencies
frandiox Sep 20, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/nervous-weeks-tap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli-hydrogen': patch
---

Adjust behavior of `h2 preview` command around environment variables to be more consistent with `h2 dev` command.
5 changes: 5 additions & 0 deletions .changeset/silver-bikes-reply.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/hydrogen': patch
---

The `error.cause` property throw from the Storefront client is now stringified.
5 changes: 5 additions & 0 deletions .changeset/warm-terms-try.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/cli-hydrogen': minor
---

Add `--worker-unstable` flag to `h2 dev` and `h2 preview` commands. This flag enables the use of the new experimental worker runtime for local development, which is closer to Oxygen production than the current Node.js sandbox. Please report any issues you encounter with this flag.
Loading
Loading