Repository navigation
Lock wrangler for playground deployments - #27838
Merged
zanieb merged 3 commits intoAug 19, 2026
Merged
Conversation
|
This was referenced Aug 18, 2026
zanieb
pushed a commit
that referenced
this pull request
Aug 18, 2026
The WebAssembly test and npm publication jobs select `node-version: 24`, so the Node.js and bundled `npm` versions can change between runs without a workflow change. Pin both selectors to `24.19.0`, keeping the existing Node major and publication permissions. The existing Renovate GitHub Actions manager continues to track these inputs. Related: #27838, #27839, and #27844 pin the playground runtimes; #27842 covers the `prek`-managed runtime. astral-sh/packse#326 makes the corresponding exact Node.js 24 pin for formatter CI. Co-authored-by: zaniebot <[email protected]>
zanieb
marked this pull request as ready for review
August 18, 2026 20:46
MichaReiser
approved these changes
Aug 19, 2026
MichaReiser
reviewed
Aug 19, 2026
| "npm": ">=11.10.0" | ||
| }, | ||
| "devDependencies": { | ||
| "wrangler": "4.118.0" |
Member
There was a problem hiding this comment.
What's the reason for creating a new package over adding the dev dependency to `api/package.json?
Member
There was a problem hiding this comment.
I think the intent is to reduce the number of dependencies we install in deployment contexts
Member
There was a problem hiding this comment.
but why should the deployment install dev dependencies?
zanieb
pushed a commit
that referenced
this pull request
Aug 19, 2026
Older `npm` releases silently ignore the seven-day dependency cooldown added in #27796. Require `npm` 11.10.0 or newer in the playground, playground API, and ty benchmark projects, and enable `engine-strict` so unsupported clients fail during `npm install` or `npm ci`. The lockfile changes only record that requirement; dependency versions and the existing cooldown are unchanged. Pin Node.js to `24.19.0` for the playground CI and publishing jobs, which provides a compatible bundled `npm`. The separate script-default changes are in #27837, and the locked playground deployment tool is in #27838. Related: #27855 pins the remaining WebAssembly test and publication runtimes. astral-sh/setup-uv#1026 and astral-sh/ruff-action#411 enforce the same legacy-aware `npm` version floor. astral-sh/uv#21193 applies it to uv's locked formatter toolchain. --------- Co-authored-by: zaniebot <[email protected]>
zanieb
pushed a commit
that referenced
this pull request
Aug 19, 2026
The playground workflows disable dependency lifecycle scripts, but ordinary local installs in the playground, its API, and the ty benchmark project still enable them. Set `ignore-scripts` in each project's `.npmrc` so the same default applies outside CI, while preserving the existing seven-day release-age policy. Because `ignore-scripts` also suppresses first-party pre/post hooks, the playground's `build`, `dev:build`, and `start` commands invoke their required WASM preparation explicitly. The datastore instructions now install from the API lockfile and invoke its local Wrangler instead of allowing `npx` to resolve a separate dependency tree. Related: astral-sh/ruff-vscode#1151 and astral-sh/ty-vscode#525 apply the same install-script default to the editor extensions. #27844 enforces the cooldown-supporting `npm` floor, #27842 hardens the native `prek` formatter environment, and #27838 locks the playground deployment toolchain. --------- Co-authored-by: zaniebot <[email protected]>
carljm
added a commit
that referenced
this pull request
Aug 19, 2026
…ype-form * origin/main: [ty] Fix dynamic-class diagnostic snapshot in string annotations (#27890) Lock `wrangler` for playground deployments (#27838) [ty] Dogfood standalone scripts with inline configuration (#27885) Annotate intentional release secret inheritance (#27887) [ty] Skip invalid subscript operands in string annotations (#27882) [ty] Handle dynamic classes in string annotations (#27883) Disable `npm` install scripts by default (#27837) Require wheels for Python tooling dependencies (#27861) Update dependency pytest to v9 (#27881)
zanieb
pushed a commit
that referenced
this pull request
Aug 20, 2026
The playground release jobs run `npm run check` and the builds on the runner that later receives `CF_API_TOKEN`. Move those commands into unprivileged jobs and pass named, digest-verified static artifacts to fresh `release-playground` jobs. The publishers reject symlinks, special files, and Pages server-code entrypoints before deployment. This isolates the playground build tools; it does not remove the publisher's Wrangler dependency. Locking that tooling is handled separately in #27838. Related: astral-sh/ruff-vscode#1152 and astral-sh/ty-vscode#526 reduce the dependency trees installed by the marketplace publishers. --------- Co-authored-by: zaniebot <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pinning
cloudflare/wrangler-actiondoes not pin thewrangler@4package it installs during deployment. Install Wrangler from a dedicated, committed lockfile with lifecycle scripts disabled, then invoke that local executable directly. Requirenpm>=11.10.0withengines.npmandengine-strictso older clients cannot silently ignore the seven-daymin-release-agepolicy, and pin Node.js to24.19.0at the install sites. Both playgrounds now use the reviewed dependency tree already recorded for the playground API, and Cloudflare credentials are passed only to the deployment command.Related: #27839 isolates the playground builds from deployment credentials, and #27844 enforces the corresponding
npmfloor in the existing package roots. astral-sh/ruff-vscode#1152 and astral-sh/ty-vscode#526 likewise give credentialed publishers their own locked toolchains.