chore: convert versions and versions secret to createCommand#7437
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-7437You 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-7437Or you can use npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-wrangler-7437 dev path/to/script.jsAdditional artifacts:npx https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-create-cloudflare-7437 --no-auto-updatenpm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-kv-asset-handler-7437npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-miniflare-7437npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-pages-shared-7437npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-vitest-pool-workers-7437npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-workers-editor-shared-7437npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-workers-shared-7437npm install https://prerelease-registry.devprod.cloudflare.dev/workers-sdk/runs/12160970528/npm-package-cloudflare-workflows-shared-7437Note 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
There was a problem hiding this comment.
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.
I think this is now GA: https://blog.cloudflare.com/builder-day-2024-announcements/#gradual-deployments
There was a problem hiding this comment.
Best to leave for a separate PR, I think.
| requiresArg: true, | ||
| }, | ||
| }, | ||
| handler: async function versionsUploadHandler(args, { config }) { |
There was a problem hiding this comment.
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
| }, | ||
| }, | ||
| handler: async function versionsSecretListHandler(args) { | ||
| const config = readConfig(args.config, args, false, true); |
penalosa
left a comment
There was a problem hiding this comment.
Deferring beta re-classification for now
edf60ee to
bc3f051
Compare
Fixes #000.
Converts
wrangler versionsandwrangler versions secretto use theCommandRegistry.