-
Notifications
You must be signed in to change notification settings - Fork 759
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
chore: convert versions and versions secret to createCommand #7437
Conversation
|
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/12160970528/npm-package-wrangler-7437 You can reference the automatically updated head of this PR with: npm install --save-dev https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/prs/7437/npm-package-wrangler-7437 Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-wrangler-7437 dev path/to/script.js Additional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-create-cloudflare-7437 --no-auto-update npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-kv-asset-handler-7437 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-miniflare-7437 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-pages-shared-7437 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-vitest-pool-workers-7437 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-workers-editor-shared-7437 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-workers-shared-7437 npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-workflows-shared-7437 Note that these links will no longer work once the GitHub Actions artifact expires.
Please ensure constraints are pinned, and |
983d255
to
3f7f90f
Compare
4ed136d
to
be54053
Compare
|
||
const args = options.parse(input) as VersionsDeployArgs; | ||
const result = parseVersionSpecs(args); | ||
const result = parseVersionSpecs({}); |
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.
These are now pure unit tests, rather than testing any yargs functionality. So the ordering tests have been removed (not the concern of this function), and there is no need to build and parse the yargs object.
be54053
to
f679597
Compare
metadata: { | ||
description: "View the details of a specific version of your Worker", | ||
owner: "Workers: Authoring and Testing", | ||
status: "open-beta", |
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 think this is now GA: https://blog.cloudflare.com/builder-day-2024-announcements/#gradual-deployments
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.
Best to leave for a separate PR, I think.
requiresArg: true, | ||
}, | ||
}, | ||
handler: async function versionsUploadHandler(args, { config }) { |
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 don't think we can use this config as-is—this command used const configPath = args.config || (args.script && findWranglerConfig(path.dirname(args.script)));
to locate the config, logic which isn't in defineCommand
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.
Updated here: c447e87
}, | ||
}, | ||
handler: async function versionsSecretListHandler(args) { | ||
const config = readConfig(args.config, args, false, true); |
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.
Do we need this?
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.
Updated here: 25c9e04
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.
Deferring beta re-classification for now
edf60ee
to
bc3f051
Compare
* chore: convert versions and versions secret to createCommand remove comment * use correct config for upload handler * use built-in config for list command * chore: fix lint errors * don't print config warnings for deploy * warnings are on upload, not deploy * chore: update shapshot snapshot update
Fixes #000.
Converts
wrangler versions
andwrangler versions secret
to use theCommandRegistry
.