Skip to content

fix(deps): upgrade vite-plugin-pwa to fix serialize-javascript vulnerability#31

Merged
olivierbagot merged 2 commits into
mainfrom
fix/upgrade-vite-plugin-pwa-serialize-javascript
May 5, 2026
Merged

fix(deps): upgrade vite-plugin-pwa to fix serialize-javascript vulnerability#31
olivierbagot merged 2 commits into
mainfrom
fix/upgrade-vite-plugin-pwa-serialize-javascript

Conversation

@olivierbagot
Copy link
Copy Markdown
Member

@olivierbagot olivierbagot commented May 5, 2026

Summary

  • Upgrades vite-plugin-pwa from 1.2.01.3.0
  • This pulls in @rollup/plugin-terser 1.0.0 (was 0.4.4) and serialize-javascript 7.0.5 (was 6.0.2)
  • Resolves Dependabot alert 19: CVE in serialize-javascript 6.x
  • Also correctly moves vite-plugin-pwa from dependencies to devDependencies (it is a build-time tool)

Test plan

  • npm run build passes
  • npm run test — 1222/1222 tests pass (84 files)
  • npm run test:coverage — coverage unchanged
  • npm audit — 0 vulnerabilities

…ability

Upgrades vite-plugin-pwa from 1.2.0 to 1.3.0, which pulls in
@rollup/plugin-terser 1.0.0 and serialize-javascript 7.0.5,
resolving the CVE in serialize-javascript 6.x (Dependabot alert #19).

Also moves vite-plugin-pwa to devDependencies (build-time only).
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Code Coverage

Package Line Rate Branch Rate Complexity Health
src 92% 67% 0
src.components.badges 100% 100% 0
src.components.dashboard.cards 100% 98% 0
src.components.dashboard.layout 100% 100% 0
src.components.layout 100% 56% 0
src.components.sessions 100% 92% 0
src.components.shared 90% 91% 0
src.components.stations.detail 99% 90% 0
src.components.stations.filter 90% 87% 0
src.components.stations.list 97% 75% 0
src.components.stations.map 93% 90% 0
src.components.stations.shared 100% 96% 0
src.composables 99% 95% 0
src.composables.errors 100% 100% 0
src.directives 97% 92% 0
src.i18n 28% 100% 0
src.pages 96% 80% 0
src.router 92% 100% 0
src.services 100% 100% 0
src.store 96% 94% 0
src.store.badges 91% 91% 0
src.store.evse 87% 96% 0
src.store.sessions 90% 96% 0
src.store.utils 100% 100% 0
src.utils.odata 92% 94% 0
Summary 94% (4908 / 5221) 90% (1101 / 1218) 0

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 5, 2026

Code Coverage

Package Line Rate Branch Rate Complexity Health
srv 96% 98% 0
srv.utils 98% 96% 0
Summary 97% (289 / 297) 97% (148 / 153) 0

@olivierbagot olivierbagot merged commit e47d5df into main May 5, 2026
10 checks passed
@olivierbagot olivierbagot deleted the fix/upgrade-vite-plugin-pwa-serialize-javascript branch May 5, 2026 15:42
@olivierbagot olivierbagot added the dependencies Pull requests that update a dependency file label May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant