Skip to content

Commit 78c1649

Browse files
authored
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
1 parent 3f685e4 commit 78c1649

File tree

24 files changed

+24
-26
lines changed

24 files changed

+24
-26
lines changed

.changeset/healthy-bags-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"create-cloudflare": minor
3+
---
4+
5+
chore: remove nodejs_compat flag from basic C3 templates

.changeset/polite-goats-behave.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@cloudflare/vitest-pool-workers": minor
3+
---
4+
5+
chore: add nodejs_compat by default in Vitest Pool Workers
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
name = "basics-integration-auxiliary"
22
main = "src/index.ts"
33
compatibility_date = "2024-01-01"
4-
compatibility_flags = ["nodejs_compat"]
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
name = "basics-unit-integration-self"
22
main = "src/index.ts"
33
compatibility_date = "2024-01-01"
4-
compatibility_flags = ["nodejs_compat"]

fixtures/vitest-pool-workers-examples/d1/wrangler.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name = "d1"
22
main = "src/index.ts"
33
compatibility_date = "2024-01-01"
4-
compatibility_flags = ["nodejs_compat"]
54

65
[[env.production.d1_databases]]
76
binding = "DATABASE"

fixtures/vitest-pool-workers-examples/durable-objects/wrangler.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name = "durable-objects"
22
main = "src/index.ts"
33
compatibility_date = "2024-01-01"
4-
compatibility_flags = ["nodejs_compat"]
54

65
[durable_objects]
76
bindings = [
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
name = "external-package-resolution"
22
main = "src/index.ts"
33
compatibility_date = "2024-04-05"
4-
compatibility_flags = ["nodejs_compat"]

fixtures/vitest-pool-workers-examples/hyperdrive/wrangler.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name = "hyperdrive"
22
main = "src/index.ts"
33
compatibility_date = "2024-01-01"
4-
compatibility_flags = ["nodejs_compat"]
54

65
[[hyperdrive]]
76
binding = "ECHO_SERVER_HYPERDRIVE"
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
name = "internal-module-resolution"
22
compatibility_date = "2024-04-05"
3-
compatibility_flags = ["nodejs_compat"]

fixtures/vitest-pool-workers-examples/kv-r2-caches/wrangler.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name = "kv-r2-caches"
22
main = "src/index.ts"
33
compatibility_date = "2024-01-01"
4-
compatibility_flags = ["nodejs_compat"]
54

65
kv_namespaces = [
76
{ binding = "KV_NAMESPACE", id = "00000000000000000000000000000000" }

0 commit comments

Comments
 (0)