Skip to content

fix(deps): bump nanoid and js-yaml in lockfile - #529

Merged
uniqueg merged 1 commit into
devfrom
fix/security-advisories
Nov 1, 2026
Merged

uniqueg merged 1 commit into
devfrom
fix/security-advisories

Conversation

@uniqueg

@uniqueg uniqueg commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Refreshes package-lock.json within the existing semver ranges to fix two high-severity advisories in transitive dependencies:

Lockfile only (npm update nanoid js-yaml); no package.json, component source or docs changes. Neither package is a dependency of the published @elixir-cloud/* packages: they run at docs build time (Next.js/postcss, gray-matter/vfile-matter front matter) and in dev tooling (ESLint, test runner).

Closes #526

Verification

  • npm ci, then npm update nanoid js-yaml: only those 17 lockfile entries change (version, resolved, integrity, funding)
  • npm run lint: passed
  • npm run build: all packages built; ecc-docs built with turbo run build --filter=ecc-docs (the first full run failed only because the sandbox blocked Google Fonts)
  • CI: all checks passed (Lint, Test (Node 22), Test (Node 24), Read the Docs build, CodeQL, Codecov, CI passed)
  • Review: adversarial-reviewer and quality-reviewer found nothing to change

Declined review findings

None.

Open questions

None.

🤖 Generated with Claude Code

Summary by Sourcery

Update vulnerable transitive dependencies to secure patched releases.

Bug Fixes:

  • Update transitive nanoid and js-yaml dependencies in the lockfile to remediate high-severity security advisories.

Chores:

  • Refresh package-lock.json within the existing dependency version ranges without changing package manifests or source code.

Refresh the locked transitive versions within the existing ranges:

- nanoid 3.3.11 -> 3.3.20 (GHSA-xwg4-73v4-xw9w, patched in 3.3.12)
- js-yaml 3.14.1 -> 3.15.2 and 4.1.0 -> 4.3.2 (GHSA-2883-xcg3-v3hh,
  patched in 3.15.2 and 4.3.2)

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@sourcery-ai

sourcery-ai Bot commented Nov 1, 2026 •

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Updates the lockfile-only transitive dependency resolutions for nanoid and js-yaml to patched versions addressing high-severity advisories, with no application or manifest changes; repository linting, builds, tests, and CI checks pass.

File-Level Changes

Change Details Files
Refresh vulnerable transitive dependency resolutions in the npm lockfile while preserving existing package manifests and semver constraints.
  • Upgrade nanoid from 3.3.11 to 3.3.20.
  • Upgrade js-yaml 3.x from 3.14.1 to 3.15.2 and js-yaml 4.x from 4.1.0 to 4.3.2 across 15 copies.
  • Update corresponding resolved URLs, integrity hashes, and funding metadata.
  • Leave package source, package.json files, and published package dependencies unchanged.
package-lock.json
Validate that the dependency-only update does not regress repository tooling or package builds.
  • Run npm ci followed by the targeted dependency update and confirm only the expected lockfile entries changed.
  • Pass lint, package builds, tests across Node 22 and 24, documentation build, CodeQL, and Codecov checks.

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@codecov

codecov Bot commented Nov 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.93%. Comparing base (6b15bb0) to head (9946f7c).

Additional details and impacted files
@@           Coverage Diff           @@
##              dev     #529   +/-   ##
=======================================
  Coverage   69.93%   69.93%           
=======================================
  Files          23       23           
  Lines        5216     5216           
  Branches      132      132           
=======================================
  Hits         3648     3648           
  Misses       1566     1566           
  Partials        2        2           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@uniqueg
uniqueg marked this pull request as ready for review November 1, 2026 03:22
@uniqueg
uniqueg requested a review from anuragxxd as a code owner November 1, 2026 03:23

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Hey - I've reviewed your changes and they look great!

Fixed security issues:


Sourcery is free for open source - if you like our reviews please consider sharing them ✨

@uniqueg
uniqueg merged commit 893e176 into dev Nov 1, 2026
27 of 31 checks passed
@uniqueg
uniqueg deleted the fix/security-advisories branch November 1, 2026 03:29
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.

fix(deps): nanoid and js-yaml advisories

1 participant