Skip to content

chore: resolve all lockfile packages from the official npm registry#643

Open
mesutoezdil wants to merge 5 commits into
Project-HAMi:masterfrom
mesutoezdil:chore/normalize-npm-registry
Open

chore: resolve all lockfile packages from the official npm registry#643
mesutoezdil wants to merge 5 commits into
Project-HAMi:masterfrom
mesutoezdil:chore/normalize-npm-registry

Conversation

@mesutoezdil

@mesutoezdil mesutoezdil commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Note

Stacked on #556 -> #630 -> #641; until those merge, their changes appear in this diff too. The change specific to this PR is the registry URL rewrite in package-lock.json (last commit).

What

Rewrites 502 resolved URLs in package-lock.json from registry.npmmirror.com (a third party mirror) to the official registry.npmjs.org.

Why

With mirror URLs in the lockfile, every npm ci on CI, Netlify and contributor machines downloads tarballs from a third party host. That adds an unnecessary party to the supply chain and a single foreign point of failure for all builds. The integrity hashes stayed unchanged, so this swaps only the download source, not any package content.

Noticed while reviewing #632, where fresh lockfile entries kept inheriting the mirror URLs.

Testing

  • rm -rf node_modules && npm ci succeeds, meaning every package downloaded from the official registry matches the existing sha512 integrity hash
  • npm run build:fast passes
  • Zero npmmirror references remain in the lockfile

Part of #628

Summary by CodeRabbit

  • Chores
    • Updated the project’s underlying packages and version constraints to support improved maintenance, compatibility, and stability.
    • Removed unused supporting integrations and development tooling.
    • No changes were made to the application’s user-facing features or functionality.

Refreshed against latest master to cover advisories published
through Jul 21. Resolves 20 of 47 npm audit findings including
both critical ones. Remaining findings need breaking upgrades
in the Docusaurus toolchain.

Signed-off-by: mesutoezdil <[email protected]>
Copilot AI review requested due to automatic review settings July 22, 2026 13:40
@hami-robot
hami-robot Bot requested review from archlitchi and rootsongjc July 22, 2026 13:40
@hami-robot

hami-robot Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: mesutoezdil
Once this PR has been reviewed and has the lgtm label, please assign wawa0210 for approval. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@netlify

netlify Bot commented Jul 22, 2026

Copy link
Copy Markdown

Deploy Preview for project-hami ready!

Name Link
🔨 Latest commit 2fa58aa
🔍 Latest deploy log https://app.netlify.com/projects/project-hami/deploys/6a63990bf4199700085d9bde
😎 Deploy Preview https://deploy-preview-643--project-hami.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@hami-robot hami-robot Bot added the size/XXL label Jul 22, 2026
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@mesutoezdil, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 59 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b1324241-a633-4975-928e-fe3620697ac1

📥 Commits

Reviewing files that changed from the base of the PR and between a0a8dc7 and 2fa58aa.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json
📝 Walkthrough

Walkthrough

package.json removes three packages and adds version overrides for five transitive dependencies while retaining the listed React and tooling packages.

Changes

Dependency manifest

Layer / File(s) Summary
Package dependency and resolution updates
package.json
Removes asciinema-player, react-github-btn, and gh-pages, while pinning js-yaml, markdown-it, serialize-javascript, uuid, and run-con through overrides.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: copilot, rootsongjc

Poem

I nibbled old packages away,
And pinned five friends in place today.
The manifest now looks neat and bright,
Dependencies tucked in just right.
— A happy rabbit 🐇

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the registry-rewrite and lockfile dependency cleanup described in the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Copilot AI 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.

Pull request overview

This PR updates the npm dependency lockfile to eliminate third‑party mirror tarball URLs, ensuring installs fetch packages from the official npm registry and reducing supply-chain/availability risk.

Changes:

  • Rewrites package-lock.json resolved tarball URLs to https://registry.npmjs.org/... (no remaining npmmirror references found).
  • Removes unused dependencies (asciinema-player, react-github-btn, gh-pages) from package.json.
  • Adds npm overrides pins in package.json for specific transitive packages (e.g., js-yaml, markdown-it, serialize-javascript, uuid, run-con).

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
package-lock.json Normalizes all resolved tarball URLs to the official registry.npmjs.org host.
package.json Drops unused deps and adds overrides to pin vulnerable / compatibility-sensitive transitive versions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🧹 Nitpick comments (1)
package.json (1)

67-72: 🗄️ Data Integrity & Integration | 🔵 Trivial | ⚡ Quick win

Scope the overrides that only affect markdownlint-cli.
markdown-it and run-con only appear under markdownlint-cli, so they can be nested there instead of applying globally. js-yaml, serialize-javascript, and uuid are shared by multiple consumers, so keeping those root-level is still reasonable.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@package.json` around lines 67 - 72, Update the package.json overrides so
markdown-it and run-con are nested under the markdownlint-cli-specific override
scope rather than applied globally; keep js-yaml, serialize-javascript, and uuid
at the root level.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Nitpick comments:
In `@package.json`:
- Around line 67-72: Update the package.json overrides so markdown-it and
run-con are nested under the markdownlint-cli-specific override scope rather
than applied globally; keep js-yaml, serialize-javascript, and uuid at the root
level.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 3c63c95b-2cf6-4485-97e1-28037956e1c0

📥 Commits

Reviewing files that changed from the base of the PR and between 66c47cf and a0a8dc7.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • package.json

Copilot AI review requested due to automatic review settings July 22, 2026 13:54
@mesutoezdil
mesutoezdil force-pushed the chore/normalize-npm-registry branch from a0a8dc7 to 7351f4d Compare July 22, 2026 13:54

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

Add npm overrides scoped to the parents that need them, pinned to
exact versions: js-yaml, markdown-it and run-con under
markdownlint-cli, serialize-javascript under copy-webpack-plugin
and css-minimizer-webpack-plugin, and uuid under sockjs. Scoping
keeps unrelated subtrees on their own versions. markdownlint-cli
stays at 0.48.0 and run-con at 1.3.2 because their newer releases
pull deps requiring Node 22 while CI runs Node 20. npm audit now
reports 0 vulnerabilities.

Signed-off-by: mesutoezdil <[email protected]>
asciinema-player and react-github-btn are not imported anywhere in
the site code. gh-pages is unused since deployment moved to Netlify.
Fewer dependencies means a smaller vulnerability surface.

Signed-off-by: mesutoezdil <[email protected]>
502 entries pointed at registry.npmmirror.com, a third party
mirror, so every install fetched tarballs from it. Rewritten to
registry.npmjs.org and verified with a clean npm ci, which checks
every integrity hash against the official tarballs.

Signed-off-by: mesutoezdil <[email protected]>
@mesutoezdil
mesutoezdil force-pushed the chore/normalize-npm-registry branch from 7351f4d to 4f42432 Compare July 22, 2026 14:00
Copilot AI review requested due to automatic review settings July 22, 2026 14:00

Copilot AI 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.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

Comment thread package.json
@mesutoezdil
mesutoezdil requested a review from windsonsea July 23, 2026 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants