-
Notifications
You must be signed in to change notification settings - Fork 772
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove node_compat flag from C3 templates that use Vitest Pool Workers (
#7388) * chore: add nodejs_compat programmatically for Vitest Pool Workers, update @cloudflare/vitest-pool-workers-examples chore: remove nodejs_compat from C3 templates chore: add changeset chore: use nodejs_compat_v2 chore: use nodejs_compat chore: add node_compat if not v1 and not v2 chore: remove v2 globals merge array pushes * chore: add changesets
- Loading branch information
1 parent
7d720be
commit 885e307
Showing
24 changed files
with
24 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-cloudflare": minor | ||
--- | ||
|
||
chore: remove nodejs_compat flag from basic C3 templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@cloudflare/vitest-pool-workers": minor | ||
--- | ||
|
||
chore: add nodejs_compat by default in Vitest Pool Workers |
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/basics-integration-auxiliary/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
name = "basics-integration-auxiliary" | ||
main = "src/index.ts" | ||
compatibility_date = "2024-01-01" | ||
compatibility_flags = ["nodejs_compat"] |
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/basics-unit-integration-self/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
name = "basics-unit-integration-self" | ||
main = "src/index.ts" | ||
compatibility_date = "2024-01-01" | ||
compatibility_flags = ["nodejs_compat"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/durable-objects/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/external-package-resolution/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
name = "external-package-resolution" | ||
main = "src/index.ts" | ||
compatibility_date = "2024-04-05" | ||
compatibility_flags = ["nodejs_compat"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/internal-module-resolution/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
name = "internal-module-resolution" | ||
compatibility_date = "2024-04-05" | ||
compatibility_flags = ["nodejs_compat"] |
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/kv-r2-caches/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/multiple-workers/api-service/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/multiple-workers/auth-service/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name = "auth-service" | ||
main = "src/index.ts" | ||
compatibility_date = "2024-01-01" | ||
compatibility_flags = ["nodejs_compat"] | ||
|
||
# `AUTH_PUBLIC_KEY` would be a secret created with `wrangler secret put`, and | ||
# stored in `.dev.vars` during development |
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/multiple-workers/database-service/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/pages-with-config/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
#:schema node_modules/wrangler/config-schema.json | ||
name = "pages-with-config" | ||
compatibility_date = "2024-09-19" | ||
compatibility_flags = ["nodejs_compat"] | ||
pages_build_output_dir = "public" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/request-mocking/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
name = "request-mocking" | ||
main = "src/index.ts" | ||
compatibility_date = "2024-01-01" | ||
compatibility_flags = ["nodejs_compat"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/web-assembly/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
name = "web-assembly" | ||
main = "src/index.ts" | ||
compatibility_date = "2024-01-01" | ||
compatibility_flags = ["nodejs_compat"] |
1 change: 0 additions & 1 deletion
1
fixtures/vitest-pool-workers-examples/workers-assets-only/wrangler.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters