The dependency tree carried three esbuild copies, two of them in the
range GHSA-67mh-4wv8-2f99 and GHSA-g7r4-m6w7-qqqr name: 0.18.20 behind
the deprecated @esbuild-kit packages that drizzle-kit still pulls in, and
0.27.7 at the top level. A resolutions entry collapses all three to
0.28.2, which is outside both advisories.
Every workflow that touches bindings/javascript installs with yarn, so
package-lock.json was a second lockfile that nothing consumed and that
nothing kept honest -- it had drifted to esbuild 0.27.7 and to a
playwright version the resolutions block pins away from. Worse, npm
rewrites an existing yarn.lock into Yarn 1 format whenever it runs, so
the release script's `npm install` was silently downgrading the lockfile
that CI actually reads, and only the `yarn install` that followed put it
back. Remove the file, ignore it so it does not reappear, and drop the
npm install from the release script.
Tests: yarn install --immutable; yarn workspace @tursodatabase/database-common
build && test; yarn workspace @tursodatabase/database-wasm bundle (vite,
which is what consumes esbuild); yarn npm audit --all --recursive reports
no advisories, only deprecation notices.
The browser binding test jobs run inside the Microsoft Playwright
container, whose preinstalled browser binaries must match the
`playwright` npm package version resolved at install time. The caret
ranges in the wasm packages drifted to the newly released 1.62.0 while
the container is pinned at v1.61.0-jammy, so browserType.launch failed
to find the chromium executable and both browser test jobs failed.
Microsoft has not published a v1.62.0 container image yet (all
v1.62.0 tags 404 on mcr.microsoft.com), so the image cannot be bumped
to match the package. Instead, add a yarn resolution pinning playwright
to 1.61.0 to match the existing image. The resolution should be dropped
once the v1.62.0 image is published.
Fixes the "Test DB bindings on browser" and "Test sync bindings on
browser" failures in the Build & publish @tursodatabase/database
workflow.