Skip to content

Bump hey-api to 0.99 and override js-yaml - #335

Merged
henryjump merged 1 commit into
v17/mainfrom
chore/security-alerts
Nov 2, 2026
Merged

henryjump merged 1 commit into
v17/mainfrom
chore/security-alerts

Conversation

@henryjump

Copy link
Copy Markdown
Contributor

Part of Jumoo/jumoo-context#135.

What changes

The backoffice client's dev dependencies only. No .NET or Umbraco package changes.

  • @hey-api/openapi-ts goes from ^0.85.0 to ^0.99.0. This removes handlebars and lodash from the graph, and defu moves to 6.1.7 through hey-api's new c12.
  • hey-api 0.99's @hey-api/json-schema-ref-parser@1.4.4 pins js-yaml to exactly 4.2.0, which is still vulnerable. An override lifts it to 4.3.2, the same as LinkedPages and PowerToys.
  • @umbraco-cms/backoffice 17.2.1 lists @hey-api/openapi-ts@^0.85.0 as a peer, so npm ci fails on 0.99 with ERESOLVE. A second override ("@hey-api/openapi-ts": "$@hey-api/openapi-ts") resolves that peer to the root version. @umbraco-cms/backoffice stays at 17.2.1.
  • TypeScript stays at 5.9.3.

src/api isn't regenerated, because generating it needs a running site. The generated code doesn't import hey-api at runtime. I ran scripts/generate-openapi.js's createClient options against a small test spec on 0.99, and it still emits the MigrationsService class.

Alerts this should clear

handlebars (#28 to #36, #88 to #90), js-yaml (#70, #73, #79, #87), defu (#39), lodash (#43, #44) and hey-api's own #69. Alerts can take a few hours to close after merge.

Left alone

These come in only through @umbraco-cms/backoffice, so they are dismissed rather than bumped:

  • markdown-it and linkify-it: @umbraco-cms/backoffice > @tiptap/pm > prosemirror-markdown > markdown-it (> linkify-it)
  • prosemirror-view: @umbraco-cms/backoffice > @tiptap/pm
  • ws: @umbraco-cms/backoffice > @microsoft/signalr
  • dompurify: @umbraco-cms/backoffice (and > monaco-editor)

Testing

  • npm ci from a clean node_modules: exit 0
  • npm run build (tsc and vite): exit 0
  • dotnet build src/uSync.Migrations.slnx -c Release: exit 0, 0 errors
  • npm audit now lists only packages inherited from the backoffice.

🤖 Generated with Claude Code

hey-api 0.99 drops handlebars and lodash from the client build graph and
moves defu to 6.1.7. Its schema parser pins js-yaml to 4.2.0, so an
override lifts it to 4.3.2. A second override lets the backoffice's
^0.85 peer resolve to 0.99 without moving @umbraco-cms/backoffice.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@henryjump
henryjump merged commit e558b8e into v17/main Nov 2, 2026
4 checks passed
@henryjump
henryjump deleted the chore/security-alerts branch November 2, 2026 10:38
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.

1 participant