Skip to content

chore: replace update-notifier with nano-update-notifier (fix #12333) - #12345

Open
REAPER2705 wants to merge 1 commit into
facebook:mainfrom
REAPER2705:chore/replace-update-notifier-with-nano-update-notifier
Open

chore: replace update-notifier with nano-update-notifier (fix #12333)#12345
REAPER2705 wants to merge 1 commit into
facebook:mainfrom
REAPER2705:chore/replace-update-notifier-with-nano-update-notifier

Conversation

@REAPER2705

Copy link
Copy Markdown

Description

Resolves #12333

Replaces update-notifier with nano-update-notifier to reduce the dependency tree by 63 packages.

Changes

  • Replaced update-notifier (6.0.2) with nano-update-notifier (1.2.0)
  • Removed @types/update-notifier from devDependencies
  • Updated import statement and JSDoc type reference in beforeCli.mjs

Why This Works

  • API Compatible: Identical update object structure between both packages
  • Zero Dependencies: nano-update-notifier has zero dependencies vs 63 from update-notifier
  • Same Functionality: Update checking and notification system works identically
  • Verified: Issue author tested the swap end-to-end

Files Changed

  1. packages/docusaurus/package.json - Dependency swap
  2. packages/docusaurus/bin/beforeCli.mjs - Import & JSDoc update
  3. pnpm-lock.yaml - Auto-updated by pnpm

@meta-cla

meta-cla Bot commented Aug 7, 2026

Copy link
Copy Markdown

Hi @REAPER2705!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addednano-update-notifier@​1.3.0721009992100

View full report

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.

Replace update-notifier with a zero-dependency equivalent (63 fewer packages in every Docusaurus site)

1 participant