From 3df5024a5191590306de0a6b8cfe5141b2862b74 Mon Sep 17 00:00:00 2001 From: syumai Date: Wed, 13 Nov 2024 01:07:06 +0900 Subject: [PATCH] update wrangler.toml of _example --- _examples/basic-auth-proxy/wrangler.toml | 6 ++---- _examples/cache/wrangler.toml | 3 ++- _examples/cron/wrangler.toml | 3 ++- _examples/d1-blog-server/wrangler.toml | 3 ++- _examples/durable-object-counter/wrangler.toml | 6 ++---- _examples/env/wrangler.toml | 6 ++---- _examples/fetch-event/wrangler.toml | 3 ++- _examples/fetch/wrangler.toml | 3 ++- _examples/hello/wrangler.toml | 6 ++---- _examples/incoming/wrangler.toml | 6 ++---- _examples/kv-counter/wrangler.toml | 6 ++---- _examples/multiple-handlers/wrangler.toml | 3 ++- _examples/mysql-blog-server/wrangler.toml | 3 ++- _examples/pages-functions/wrangler.toml | 3 ++- _examples/queues/wrangler.toml | 6 ++---- _examples/r2-image-server/wrangler.toml | 6 ++---- _examples/r2-image-viewer/wrangler.toml | 6 ++---- _examples/service-bindings/wrangler.toml | 3 ++- _examples/simple-json-server/wrangler.toml | 6 ++---- _examples/sockets/wrangler.toml | 3 ++- _examples/stream-large-file/wrangler.toml | 3 ++- 21 files changed, 42 insertions(+), 51 deletions(-) diff --git a/_examples/basic-auth-proxy/wrangler.toml b/_examples/basic-auth-proxy/wrangler.toml index 004d296..b1e7f64 100644 --- a/_examples/basic-auth-proxy/wrangler.toml +++ b/_examples/basic-auth-proxy/wrangler.toml @@ -1,9 +1,7 @@ name = "basic-auth-proxy" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/cache/wrangler.toml b/_examples/cache/wrangler.toml index 2f35fb9..77fc535 100644 --- a/_examples/cache/wrangler.toml +++ b/_examples/cache/wrangler.toml @@ -1,6 +1,7 @@ name = "cache" main = "./build/worker.mjs" -compatibility_date = "2023-02-24" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/cron/wrangler.toml b/_examples/cron/wrangler.toml index e09dddd..ee26fb4 100644 --- a/_examples/cron/wrangler.toml +++ b/_examples/cron/wrangler.toml @@ -1,6 +1,7 @@ name = "scheduled" main = "./build/worker.mjs" -compatibility_date = "2023-02-24" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] workers_dev = false [triggers] diff --git a/_examples/d1-blog-server/wrangler.toml b/_examples/d1-blog-server/wrangler.toml index e3cda00..21e6a5c 100644 --- a/_examples/d1-blog-server/wrangler.toml +++ b/_examples/d1-blog-server/wrangler.toml @@ -1,6 +1,7 @@ name = "d1-blog-server" main = "./build/worker.mjs" -compatibility_date = "2024-04-15" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/durable-object-counter/wrangler.toml b/_examples/durable-object-counter/wrangler.toml index 9116eee..9b13c00 100644 --- a/_examples/durable-object-counter/wrangler.toml +++ b/_examples/durable-object-counter/wrangler.toml @@ -1,9 +1,7 @@ name = "durable-object-counter" main = "./worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/env/wrangler.toml b/_examples/env/wrangler.toml index e7f2c09..13788a0 100644 --- a/_examples/env/wrangler.toml +++ b/_examples/env/wrangler.toml @@ -1,9 +1,7 @@ name = "env" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/fetch-event/wrangler.toml b/_examples/fetch-event/wrangler.toml index 0d0e6da..98cd81a 100644 --- a/_examples/fetch-event/wrangler.toml +++ b/_examples/fetch-event/wrangler.toml @@ -1,6 +1,7 @@ name = "fetch-event" main = "./build/worker.mjs" -compatibility_date = "2023-02-24" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] routes = [ { pattern = "example.com/*", zone_name = "example.com" } diff --git a/_examples/fetch/wrangler.toml b/_examples/fetch/wrangler.toml index 265fd49..3727137 100644 --- a/_examples/fetch/wrangler.toml +++ b/_examples/fetch/wrangler.toml @@ -1,6 +1,7 @@ name = "fetch" main = "./build/worker.mjs" -compatibility_date = "2023-02-24" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/hello/wrangler.toml b/_examples/hello/wrangler.toml index 60d2b45..032f8d8 100644 --- a/_examples/hello/wrangler.toml +++ b/_examples/hello/wrangler.toml @@ -1,9 +1,7 @@ name = "hello" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/incoming/wrangler.toml b/_examples/incoming/wrangler.toml index 5c85632..dfe798e 100644 --- a/_examples/incoming/wrangler.toml +++ b/_examples/incoming/wrangler.toml @@ -1,9 +1,7 @@ name = "incoming" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/kv-counter/wrangler.toml b/_examples/kv-counter/wrangler.toml index 23b29ad..b844ea9 100644 --- a/_examples/kv-counter/wrangler.toml +++ b/_examples/kv-counter/wrangler.toml @@ -1,9 +1,7 @@ name = "kv-counter" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [[kv_namespaces]] binding = "COUNTER" diff --git a/_examples/multiple-handlers/wrangler.toml b/_examples/multiple-handlers/wrangler.toml index c0dc4c1..4ffc7ca 100644 --- a/_examples/multiple-handlers/wrangler.toml +++ b/_examples/multiple-handlers/wrangler.toml @@ -1,6 +1,7 @@ name = "multiple-handlers" main = "./build/worker.mjs" -compatibility_date = "2023-02-24" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] workers_dev = false [triggers] diff --git a/_examples/mysql-blog-server/wrangler.toml b/_examples/mysql-blog-server/wrangler.toml index 50d09de..5798d44 100644 --- a/_examples/mysql-blog-server/wrangler.toml +++ b/_examples/mysql-blog-server/wrangler.toml @@ -1,6 +1,7 @@ name = "mysql-blog-server" main = "./build/worker.mjs" -compatibility_date = "2024-01-03" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/pages-functions/wrangler.toml b/_examples/pages-functions/wrangler.toml index 29ea062..08b0421 100644 --- a/_examples/pages-functions/wrangler.toml +++ b/_examples/pages-functions/wrangler.toml @@ -1,2 +1,3 @@ name = "pages-functions" -compatibility_date = "2023-04-30" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] diff --git a/_examples/queues/wrangler.toml b/_examples/queues/wrangler.toml index 0965832..29ce740 100644 --- a/_examples/queues/wrangler.toml +++ b/_examples/queues/wrangler.toml @@ -1,9 +1,7 @@ name = "queues-producer" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [[queues.producers]] queue = "my-queue" diff --git a/_examples/r2-image-server/wrangler.toml b/_examples/r2-image-server/wrangler.toml index b17a6b2..f4ff0fa 100644 --- a/_examples/r2-image-server/wrangler.toml +++ b/_examples/r2-image-server/wrangler.toml @@ -1,9 +1,7 @@ name = "r2-image-server" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/r2-image-viewer/wrangler.toml b/_examples/r2-image-viewer/wrangler.toml index 762982f..7e44607 100644 --- a/_examples/r2-image-viewer/wrangler.toml +++ b/_examples/r2-image-viewer/wrangler.toml @@ -1,9 +1,7 @@ name = "r2-image-viewer-tinygo" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/service-bindings/wrangler.toml b/_examples/service-bindings/wrangler.toml index 598f8f7..7ba9014 100644 --- a/_examples/service-bindings/wrangler.toml +++ b/_examples/service-bindings/wrangler.toml @@ -1,6 +1,7 @@ name = "service-bindings" main = "./build/worker.mjs" -compatibility_date = "2023-02-24" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] services = [ { binding = "hello", service = "hello" } ] diff --git a/_examples/simple-json-server/wrangler.toml b/_examples/simple-json-server/wrangler.toml index 2a651a9..314ab49 100644 --- a/_examples/simple-json-server/wrangler.toml +++ b/_examples/simple-json-server/wrangler.toml @@ -1,9 +1,7 @@ name = "simple-json-server" main = "./build/worker.mjs" -compatibility_date = "2022-05-13" -compatibility_flags = [ - "streams_enable_constructors" -] +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/sockets/wrangler.toml b/_examples/sockets/wrangler.toml index 3ff7386..af4a0b2 100644 --- a/_examples/sockets/wrangler.toml +++ b/_examples/sockets/wrangler.toml @@ -1,6 +1,7 @@ name = "sockets" main = "./build/worker.mjs" -compatibility_date = "2024-01-03" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build" diff --git a/_examples/stream-large-file/wrangler.toml b/_examples/stream-large-file/wrangler.toml index db4d764..27c6349 100644 --- a/_examples/stream-large-file/wrangler.toml +++ b/_examples/stream-large-file/wrangler.toml @@ -1,6 +1,7 @@ name = "stream-large-file" main = "./build/worker.mjs" -compatibility_date = "2023-12-01" +compatibility_date = "2024-11-12" +compatibility_flags = ["nodejs_compat"] [build] command = "make build"