diff --git a/.changeset/seven-queens-try.md b/.changeset/seven-queens-try.md new file mode 100644 index 00000000000..653659c646b --- /dev/null +++ b/.changeset/seven-queens-try.md @@ -0,0 +1,7 @@ +--- +"@remix-run/cloudflare": major +"@remix-run/cloudflare-pages": major +"@remix-run/cloudflare-workers": major +--- + +drop `@cloudflare/workers-types` v2 & v3 support diff --git a/packages/remix-cloudflare-pages/package.json b/packages/remix-cloudflare-pages/package.json index b838c0edcd4..816f81521cf 100644 --- a/packages/remix-cloudflare-pages/package.json +++ b/packages/remix-cloudflare-pages/package.json @@ -18,11 +18,11 @@ "@remix-run/cloudflare": "1.14.3" }, "devDependencies": { - "@cloudflare/workers-types": "^3.4.0", + "@cloudflare/workers-types": "^4.20230307.0", "@types/mime": "^2.0.3" }, "peerDependencies": { - "@cloudflare/workers-types": "^3.0.0" + "@cloudflare/workers-types": "^4.0.0" }, "engines": { "node": ">=14" diff --git a/packages/remix-cloudflare-workers/package.json b/packages/remix-cloudflare-workers/package.json index b57390dea73..df17e1f5d43 100644 --- a/packages/remix-cloudflare-workers/package.json +++ b/packages/remix-cloudflare-workers/package.json @@ -19,10 +19,10 @@ "@remix-run/cloudflare": "1.14.3" }, "devDependencies": { - "@cloudflare/workers-types": "^3.4.0" + "@cloudflare/workers-types": "^4.20230307.0" }, "peerDependencies": { - "@cloudflare/workers-types": "^2.0.0 || ^3.0.0" + "@cloudflare/workers-types": "^4.0.0" }, "engines": { "node": ">=14" diff --git a/packages/remix-cloudflare/package.json b/packages/remix-cloudflare/package.json index bfcc5576897..4e779e48a31 100644 --- a/packages/remix-cloudflare/package.json +++ b/packages/remix-cloudflare/package.json @@ -18,10 +18,10 @@ "@remix-run/server-runtime": "1.14.3" }, "devDependencies": { - "@cloudflare/workers-types": "^3.4.0" + "@cloudflare/workers-types": "^4.20230307.0" }, "peerDependencies": { - "@cloudflare/workers-types": "^2.0.0 || ^3.0.0" + "@cloudflare/workers-types": "^4.0.0" }, "engines": { "node": ">=14" diff --git a/templates/cloudflare-pages/package.json b/templates/cloudflare-pages/package.json index 1c531d567d1..6deaebe9d5c 100644 --- a/templates/cloudflare-pages/package.json +++ b/templates/cloudflare-pages/package.json @@ -20,7 +20,7 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@cloudflare/workers-types": "^3.18.0", + "@cloudflare/workers-types": "^4.20230307.0", "@remix-run/dev": "*", "@remix-run/eslint-config": "*", "@types/react": "^18.0.25", diff --git a/templates/cloudflare-workers/package.json b/templates/cloudflare-workers/package.json index 23d3ce87fd4..a0b96bbd54a 100644 --- a/templates/cloudflare-workers/package.json +++ b/templates/cloudflare-workers/package.json @@ -20,7 +20,7 @@ "react-dom": "^18.2.0" }, "devDependencies": { - "@cloudflare/workers-types": "^3.18.0", + "@cloudflare/workers-types": "^4.20230307.0", "@remix-run/dev": "*", "@remix-run/eslint-config": "*", "@types/react": "^18.0.25", diff --git a/yarn.lock b/yarn.lock index e8dd4fdd0bd..08fcf6909dd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1570,10 +1570,10 @@ dependencies: mime "^2.5.2" -"@cloudflare/workers-types@^3.4.0": - version "3.4.0" - resolved "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-3.4.0.tgz" - integrity sha512-i/3czUrt6YqbOWl44OtIqd0cSZvEVXp/1oD/DZylC4PHZL3q/BhbamdEVeVhc/HPk4iD/7MZ2HGaIMO4Z4b12A== +"@cloudflare/workers-types@^4.20230307.0": + version "4.20230307.0" + resolved "https://registry.npmjs.org/@cloudflare/workers-types/-/workers-types-4.20230307.0.tgz#58a20fe167a5c48e20edba8e1fbfe4231bcfa223" + integrity sha512-Go968aDDcqONHQcUdgIiPRkPdT4QTzD0ecHJsI1u7ZiHPMOoZn+Dy7hYsdUJ5ldX9wTZDrICBM1rDKTRaDUitg== "@colors/colors@1.5.0": version "1.5.0"