Warn if compat date < most recent compat date supported by installed Wrangler #7640
+25
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We don't currently warn you at all if you're using an older compat date than what is supported by the version of Wrangler that you're running.
I think we should, because:
If you look at an issue like cloudflare/next-on-pages#908 — people get mixed up despite guidance. And the more that we're loud about — update your compatibility date — we make sure that this is one of the first things that people experiment when trying to get something to work. We're going to get higher signal bug reports if people report "yes I've tried this with the latest compat date" versus us asking people to do this and circle back.
Maybe this is a bit aggressive, showing this every time you run
wrangler dev
. I could see possibly:Finally — we should link to the relevant docs in the warning. One of the most consistent pieces of feedback I've heard talking to people is, "I wish you linked to that docs page you just sent me in the error message I got.".