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

Print the bindings a worker has access to during dev and publish #1079

Merged
merged 10 commits into from
May 19, 2022

Conversation

caass
Copy link
Contributor

@caass caass commented May 19, 2022

It can be helpful for a user to know exactly what resources a worker will have access to and where they can access them, so we now log the bindings available to a worker during wrangler dev and wrangler publish.

Will rendering the <Dev /> component interfere with the logged output during wrangler dev?

Closes #509

@changeset-bot
Copy link

changeset-bot bot commented May 19, 2022

🦋 Changeset detected

Latest commit: 2793005

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
wrangler Patch

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

It can be helpful for a user to know exactly what resources a worker will have access to and where they can access them, so we now log the bindings available to a worker during `wrangler dev` and `wrangler publish`.
@caass caass force-pushed the print-bindings branch from 34e2241 to 626b415 Compare May 19, 2022 20:15
@github-actions
Copy link
Contributor

github-actions bot commented May 19, 2022

A wrangler prerelease is available for testing. You can install this latest build in your project with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/runs/2354644631/npm-package-wrangler-1079

You can reference the automatically updated head of this PR with:

npm install --save-dev https://prerelease-registry.developers.workers.dev/prs/1079/npm-package-wrangler-1079

Or you can use npx with this latest build directly:

npx https://prerelease-registry.developers.workers.dev/runs/2354644631/npm-package-wrangler-1079 dev path/to/script.js

@caass caass force-pushed the print-bindings branch from 228216f to 0ef3eb7 Compare May 19, 2022 20:17
Copy link
Contributor

@petebacondarwin petebacondarwin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it!

Cass Fridkin and others added 2 commits May 19, 2022 15:12
Co-authored-by: Pete Bacon Darwin <[email protected]>
@caass caass merged commit fb0dec4 into main May 19, 2022
@caass caass deleted the print-bindings branch May 19, 2022 21:19
@github-actions github-actions bot mentioned this pull request May 19, 2022
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.

We should print out what bindings are being used in dev and publish, and what effect that will have.
2 participants