Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add compatibility date support #2511

Merged
merged 6 commits into from
Jun 12, 2024
Merged

feat: add compatibility date support #2511

merged 6 commits into from
Jun 12, 2024

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Jun 11, 2024

Compatibility dates allow Nitro presets to update their behavior in non-semver-major releases of Nitro (and higher order toolings as well).

This PR adds support for compatibilityDate option in nitro config which will be required and with a warning, we ask users to set it.

See compatx and this RFC for more context.

When no compatibility date is specified, we assume latest stable release v2.9.6 as safe fallback and show guide to update:


Auto update wizard:

With Nitro CLI: (nitro dev only)

image

No prompt (nuxt CLI, nitro build, user canceled, etc)

image

--

Note: Framework authors can inspire from this utility to implement auto update flow.

@pi0 pi0 changed the title feat: add compatibility date support [wi] feat: add compatibility date support Jun 12, 2024
@pi0 pi0 marked this pull request as ready for review June 12, 2024 12:58
@pi0 pi0 merged commit fa7fa54 into main Jun 12, 2024
5 checks passed
@pi0 pi0 deleted the feat/compat-date branch June 12, 2024 13:52
pi0 added a commit that referenced this pull request Jun 13, 2024
@pi0 pi0 mentioned this pull request Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant