Use dynamic date for nodejs_compat compatibility_date examples#27887
Closed
MattieTK wants to merge 2 commits intoproductionfrom
Closed
Use dynamic date for nodejs_compat compatibility_date examples#27887MattieTK wants to merge 2 commits intoproductionfrom
MattieTK wants to merge 2 commits intoproductionfrom
Conversation
Contributor
|
This PR requires additional review attention because it affects the following areas: PartialsThis PR updates partial files, which are pieces of content used across multiple files in our Render component.
|
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
|
👏 |
Member
Author
|
I've got a bunch more matches to go over here so feel free to merge this but this PR will either increase in size or have followups |
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
compatibility_dateexamples to use$todayinstead of hardcoded datesThe
WranglerConfigcomponent automatically replaces$todaywith the current date at build time, ensuring readers always see the latest recommended date.Context
We have noticed users creating projects with outdated compatibility dates, which we suspect is due to AI tools reading and reproducing the hardcoded dates from our documentation. Using dynamic dates should help ensure AI-assisted code generation uses current dates.