Repository navigation
Conversation
🦋 Changeset detectedLatest commit: 9a88d3f The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 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 |
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
@cloudflare/autoconfig
@cloudflare/build-output-utils
@cloudflare/codemods
@cloudflare/config
@cloudflare/containers-shared
create-cloudflare
@cloudflare/deploy-helpers
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-functions
@cloudflare/pages-shared
@cloudflare/runtime-types
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-plugin
@cloudflare/workers-auth
@cloudflare/workers-editor-shared
@cloudflare/workers-utils
wrangler
commit: |
dario-piotrowicz
left a comment
There was a problem hiding this comment.
Generally looks good to me, but there are a few small things that I'd love to see for the maintainability/clearness of the code, could you have a look @carldaws? 🙏
And thanks a lot for the PR! 🙏
|
@dario-piotrowicz thank you for your suggestions, I have applied them all :) |
|
@dario-piotrowicz thanks for the review! I've finished the renames now, the suggestions only covered the lines you commented on, so the build broke in between. Quick question on the ...logger spread: ProgressLogger is only info and log, and both are already set. Were you thinking of widening the return type to Logger? If so, error and loggerLevel are on the class prototype, so the spread wouldn't copy them, right? Happy to go either way. |
|
Thanks @carldaws 🙏 Yes, sorry the Besides that there's now a merge conflict here 😢, but other than that I think this PR is good to go 😄 |
Co-authored-by: Dario Piotrowicz <[email protected]>
1588167 to
9a88d3f
Compare
|
Codeowners approval required for this PR:
Show detailed file reviewers
|
|
@dario-piotrowicz the spread is gone and the conflict is resolved 😄 could you rerun the failing CI step? I think it's a flake as I can't reproduce it |
Fixes #16028.
wrangler preview --jsonprints the preview and deployment as JSON, but for a Worker with static assets the asset upload's progress ("🌀 Building list of assets...", "✨ Read 1 file from the assets directory", …) is written to stdout first, so piping the output intojqorJSON.parsefails.syncAssetsnow takes an options object with ajsonflag. In--jsonmode its progress is logged at debug level instead, so it stays available withWRANGLER_LOG=debug. Other callers are unchanged;deploypasses its dispatch namespace in the new options object.The existing
--jsontests didn't catch this becausemockConsoleMethods()capturesconsole.infoseparately fromconsole.log, while in Node both write to stdout. The new test asserts that nothing is logged at info level alongside the JSON.