Skip to content

chore: update dependencies#43

Merged
rubenhensen merged 2 commits into
mainfrom
chore/update-dependencies-issue-42
May 20, 2026
Merged

chore: update dependencies#43
rubenhensen merged 2 commits into
mainfrom
chore/update-dependencies-issue-42

Conversation

@dobby-coder
Copy link
Copy Markdown
Contributor

@dobby-coder dobby-coder Bot commented May 19, 2026

Closes #42

pg-sveltekit

Security advisories cleared by npm audit fix:

Minor/patch bumps:

  • @e4a/pg-js 1.6.2 → 1.8.0
  • @sveltejs/kit 2.59.1 → 2.60.1
  • @types/node 25.7.0 → 25.9.1
  • eslint 10.3.0 → 10.4.0
  • typescript-eslint 8.59.3 → 8.59.4

Major bump — vite 7.3.2 → 8.0.13 and @sveltejs/vite-plugin-svelte 6.2.4 → 7.1.2. Removed vite-plugin-top-level-await: it does require('rollup') at module load, and vite 8 replaces rollup with rolldown so the plugin no longer resolves. With build.target: 'esnext', vite 8 / rolldown passes top-level await through unchanged for modern browsers (Chrome 89+, Firefox 89+, Safari 15+), which is what vite-plugin-wasm's WASM init relies on. Side effect: concurrent TLA imports become sequential after bundling (rolldown semantics) — init may be marginally slower but still correct.

overrides.cookie: ^0.7.2 stays — @sveltejs/kit@2.60.1 still pins cookie ^0.6.0.

pg-manual

Patch bumps:

  • @e4a/pg-wasm 0.6.0 → 0.6.1
  • web-streams-polyfill 4.2.0 → 4.3.0

Major bump — @privacybydesign/yivi-{client,core,css,popup} 0.2.1 → 1.x. v1 ships proper ESM with named exports, so examples/utils.js switches from import * as YiviCore to import { YiviCore } (same for YiviClient / YiviPopup). The yivi.use(...) plugin contract is unchanged; yivi-css stays a side-effect import.

Verification

  • pg-sveltekit: npm install && npm run build && npm run check → clean (0 errors / 0 warnings on vite 8.0.13). Browser encrypt/decrypt round-trip not yet smoke-tested under the new TLA path — recommended before merge.
  • pg-manual: npm install && npm run build → clean, no export … not found warnings.

Closes #42

pg-sveltekit:
- npm audit fix clears devalue GHSA-77vg-94rm-hx3p (high) and the four
  svelte SSR/DOM/ReDoS advisories (moderate) by lifting devalue and
  svelte past the patched versions.
- Minor/patch: @e4a/pg-js 1.6.2 -> 1.8.0, @sveltejs/kit 2.59.1 -> 2.60.1,
  @types/node 25.7.0 -> 25.9.1, eslint 10.3.0 -> 10.4.0, svelte declared
  range -> ^5.55.8, typescript-eslint 8.59.3 -> 8.59.4.
- cookie override stays: @sveltejs/kit 2.60.1 still pins cookie ^0.6.0.

pg-manual:
- Patch: @e4a/pg-wasm 0.6.0 -> 0.6.1, web-streams-polyfill 4.2.0 -> 4.3.0.
- Major: @privacybydesign/yivi-{client,core,css,popup} 0.2 -> 1.x.
  v1 ships proper ESM with named exports, so examples/utils.js switches
  to `import { YiviCore } from ...` (etc). yivi.use(...) contract is
  unchanged; yivi-css stays a side-effect import.

vite 7 -> 8 / vite-plugin-svelte 6 -> 7 held back: vite-plugin-top-level-await
still `require('rollup')` at load and vite 8 dropped bundled rollup.
@dobby-coder dobby-coder Bot requested a review from rubenhensen May 19, 2026 22:16
@dobby-coder
Copy link
Copy Markdown
Contributor Author

dobby-coder Bot commented May 19, 2026

no CI workflow in this repo; please review manually

Drops vite-plugin-top-level-await: it required `rollup` at module load
and vite 8 swaps rollup for rolldown, so the plugin is unloadable there.
With `build.target: 'esnext'`, vite 8 / rolldown passes top-level await
through unchanged for modern browsers (Chrome 89+, Firefox 89+, Safari 15+),
which the wasm plugin's init relies on. Concurrent TLA imports become
sequential after bundling (rolldown semantics), so init may be marginally
slower but still correct.

- vite 7.3.2 -> 8.0.13
- @sveltejs/vite-plugin-svelte 6.2.4 -> 7.1.2
- remove vite-plugin-top-level-await
@rubenhensen
Copy link
Copy Markdown
Contributor

/dobby review this pr

@dobby-coder
Copy link
Copy Markdown
Contributor Author

dobby-coder Bot commented May 20, 2026

Dobby has heard the request and Dobby is on it! Dobby will read this pull request carefully and post a review with a clear verdict.

Copy link
Copy Markdown
Contributor Author

@dobby-coder dobby-coder Bot left a comment

Choose a reason for hiding this comment

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

Verdict: ready to merge (Dobby cannot self-approve as the PR author — flagging here so a human can land it).

Local verification on the PR branch:

pg-sveltekit

  • npm install — 0 vulnerabilities, no peer-dep ERESOLVE.
  • npm run build — clean, 621 ms (rolldown via vite 8).
  • npm run check — 294 files, 0 errors, 0 warnings (the previously-expected svelte runes warning is gone).
  • npm audit — 0 vulnerabilities. The devalue/svelte advisories listed in the PR body are cleared.
  • Vite 8 + vite-plugin-svelte 7 chain is fine after dropping vite-plugin-top-level-await. build.target: 'esnext' is correctly retained — needed now to keep rolldown from down-transforming TLA, which vite-plugin-wasm's WASM init relies on.
  • overrides.cookie: ^0.7.2 correctly kept; @sveltejs/kit@2.60.1 still pins cookie ^0.6.0.

pg-manual

  • npm install — 0 vulnerabilities.
  • npm run build — webpack 5.106.2 compiled successfully in 269 ms, no export … was not found warnings.
  • yivi 0.2 → 1.x migration in examples/utils.js is correct: named imports give a callable constructor under the v1 ESM shape; yivi.use(YiviClient) / yivi.use(YiviPopup) plugin contract is unchanged.
  • file.js already uses the WritableStream as PolyfilledWritableStream form, so the web-streams-polyfill 4.2 → 4.3 patch bump is benign.

Caveat from the PR body still stands: a browser encrypt/decrypt round-trip hasn't been smoke-tested under the new TLA path. Static analysis and build output look right; a quick npm run dev round-trip before merging would close the loop. Not blocking.

@rubenhensen rubenhensen merged commit 075eeb1 into main May 20, 2026
2 checks passed
@rubenhensen rubenhensen deleted the chore/update-dependencies-issue-42 branch May 20, 2026 08:53
@dobby-coder
Copy link
Copy Markdown
Contributor Author

dobby-coder Bot commented May 20, 2026

This agent sees the approval from @rubenhensen — and the PR is already merged! Dobby is so happy: the dependency sweep is landed, issue #42 auto-closed, and no tracking issue needed updating. Dobby thanks the kind master for the review!

This was referenced May 20, 2026
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.

chore: update dependencies

1 participant