-
Notifications
You must be signed in to change notification settings - Fork 680
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
Remove constellation commands #4545
Remove constellation commands #4545
Conversation
🦋 Changeset detectedLatest commit: c40ea53 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
A wrangler prerelease is available for testing. You can install this latest build in your project with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10093248010/npm-package-wrangler-4545 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/4545/npm-package-wrangler-4545 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10093248010/npm-package-wrangler-4545 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10093248010/npm-package-create-cloudflare-4545 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10093248010/npm-package-cloudflare-kv-asset-handler-4545 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10093248010/npm-package-miniflare-4545 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10093248010/npm-package-cloudflare-pages-shared-4545 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/10093248010/npm-package-cloudflare-vitest-pool-workers-4545 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
f98775e
to
0fdba44
Compare
Hey! 👋 To confirm, do the |
constellation never left beta and was superseded by Workers AI. We checked the current usage and it's residual, I think we can safely deprecate the old command with the suggested warning. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #4545 /- ##
==========================================
- Coverage 75.16% 74.95% -0.21%
==========================================
Files 242 232 -10
Lines 13014 12766 -248
Branches 3346 3317 -29
==========================================
- Hits 9782 9569 -213
Misses 3232 3197 -35
|
.changeset/five-berries-rest.md
Outdated
"wrangler": minor | ||
--- | ||
|
||
Remove constellation commands |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're probably going to want to make this changeset more verbose, as it'll be displayed here: https://developers.cloudflare.com/changelog/?product=wrangler
Like maybe:
Remove wrangler constellation
commands in favour of wrangler ai
commands.
3ffb50c
to
8614d5c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check with the team but I think we should land this outside a major bump.
.changeset/five-berries-rest.md
Outdated
@@ -0,0 1,5 @@ | |||
--- | |||
"wrangler": major |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"wrangler": major | |
"wrangler": minor |
.changeset/five-berries-rest.md
Outdated
"wrangler": major | ||
--- | ||
|
||
Remove constellation commands and binding, please migrate to Workers AI, learn more here https://developers.cloudflare.com/workers-ai/. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove constellation commands and binding, please migrate to Workers AI, learn more here https://developers.cloudflare.com/workers-ai/. | |
Remove experimental/beta constellation commands and binding, please migrate to Workers AI, learn more here https://developers.cloudflare.com/workers-ai/. | |
This is not deemed a major version bump for Wrangler since these commands were never generally available. |
Sadly this needs a significant and non-trivial rebase 😢 |
I will do the rebase next week and ping you back 😁 |
Removal of any commands should always be a semver-major in my opinion. Beta/alpha designation aside, this is just good practice, and semver hygiene. The commands are already deprecated, so what harm are they doing remaining there until the next major? As a user, I'd be concerned about what other deprecated things might end up removed in a minor release that I still use. In addition, there's zero problems in my opinion releasing a semver major just for this, if the removal has to happen. Not every major version needs to be accompanied with a giant blog post, and multi-year migration guide that some folks will just never get to. Normalising majors that do simple things like bumping the minimum node version, or removing deprecated commands is not a bad thing, and very common in the JS ecosystem. The vast majority of folks will be able to upgrade immediately with no impacting changes, and that's only a good thing. |
Thanks for your point of view @Cherry. I appreciate when you challenge our decisions.
Any user that still tries to run those commands will be given a clear message to use Workers AI. |
Thanks @petebacondarwin. I disagree with the assessment, but I appreciate the insight. I think it would probably be a good idea to more specifically define wrangler's approach to semver, experimental changes, and alpha/beta products in https://github.com/cloudflare/workers-sdk/blob/main/CONTRIBUTING.md#types-of-changes or similar. It's not really clear how this works or how semver is followed, with some commands/features introduced behind clear |
d8e2002
to
fa7720a
Compare
fa7720a
to
c40ea53
Compare
Hey @petebacondarwin rebase done |
Fixes AI-384
What this PR solves / how to test:
Removes all constellation commands and references to constellation, to test this, just call
wrangler constellation
and you should see a deprecated messageAuthor has addressed the following:
Note for PR author:
We want to celebrate and highlight awesome PR review! If you think this PR received a particularly high-caliber review, please assign it the label
highlight pr review
so future reviewers can take inspiration and learn from it.