Skip to content

refactor: soft warning for compatibility date #3292

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

Merged
merged 3 commits into from
Apr 7, 2025
Merged

Conversation

pi0
Copy link
Member

@pi0 pi0 commented Apr 7, 2025

Prompt for compatibility date can be bothersome in some cases.

This PR replaces the current (force) prompt to update with a simple warning about guiding users for adding the compatibility date + new docs (#3292)

Additionally, compatibilityDate: "latest" is a possible value in latest compatx (0.2) for cases like examples or playgrounds where this date does not matter (intentionally not widely documented ;however, auto-complete exists)

Also, silenting warning for test environments.

image

@pi0 pi0 requested review from atinux and danielroe April 7, 2025 16:26
Copy link

cloudflare-workers-and-pages bot commented Apr 7, 2025

Deploying nitrojs with  Cloudflare Pages  Cloudflare Pages

Latest commit: d19fd02
Status: ✅  Deploy successful!
Preview URL: https://10e073b6.nitrojs.pages.dev
Branch Preview URL: https://refactor-cli-date-prompt.nitrojs.pages.dev

View logs

@pi0 pi0 merged commit 5e72762 into v2 Apr 7, 2025
5 checks passed
@pi0 pi0 deleted the refactor/cli-date-prompt branch April 7, 2025 17:31
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