Skip to content

Commit

Permalink
Relax the Wrangler peer dependency for the Vite plugin (#7833)
Browse files Browse the repository at this point in the history
We only need the Wrangler peer dependency to be at least 3.101.0,
which is when we added support for the redirected config.

By using the peer dependency range version in the playgrounds, we ensure that
we are testing against what will be used in practice. It will also ensure that this
dependency gets bumped when needed, since the playgrounds might start to fail otherwise.
  • Loading branch information
petebacondarwin authored Jan 20, 2025
1 parent a783c2d commit e2f5756
Show file tree
Hide file tree
Showing 18 changed files with 115 additions and 46 deletions.
2 changes: 1 addition & 1 deletion packages/vite-plugin-cloudflare/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
},
"peerDependencies": {
"vite": "catalog:vite-plugin",
"wrangler": "workspace:^"
"wrangler": "catalog:vite-plugin"
},
"publishConfig": {
"access": "public"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@
"slash-create": "6.2.1",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@
"pg-cloudflare": "^1.1.1",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@
"@vitejs/plugin-react": "^4.3.4",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@
"@vitejs/plugin-react": "^4.3.4",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@cloudflare/workers-types": "^4.20241230.0",
"typescript": "catalog:vite-plugin",
"vite": "catalog:vite-plugin",
"wrangler": "workspace:*"
"wrangler": "catalog:vite-plugin"
}
}
Loading

0 comments on commit e2f5756

Please sign in to comment.