Skip to content

feat: module replacements v3#2068

Merged
43081j merged 115 commits intonpmx-dev:mainfrom
gameroman:module-replacements-v3
Apr 21, 2026
Merged

feat: module replacements v3#2068
43081j merged 115 commits intonpmx-dev:mainfrom
gameroman:module-replacements-v3

Conversation

@gameroman
Copy link
Copy Markdown
Contributor

@gameroman gameroman commented Mar 13, 2026

Module replacements v3

Description

  • Update module-replacements to v3

  • Update Compare/ReplacementSuggestion.vue, Package/Replacement.vue, npm/useReplacementDependencies.ts, useCompareReplacements.ts, useModuleReplacement.ts, package/[[org]]/[name].vue, replacements/[...pkg].get.ts accordingly

  • Remove "MDN" from locales

  • Update existing tests: a11y.spec.ts, composables/use-replacement-dependencies.spec.ts, composables/use-compare-replacements.spec.ts

  • Add new test fixture npm-registry/packuments/strip-ansi.json

  • Add new tests: e2e/compare-replacements.spec.ts, e2e/package-replacements.spec.ts

Screenshots

Simple

image

image

Native

image

Documented

image

Removal

image

Compare page

image

@vercel
Copy link
Copy Markdown

vercel Bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs.npmx.dev Ready Ready Preview, Comment Apr 21, 2026 2:30pm
npmx.dev Ready Ready Preview, Comment Apr 21, 2026 2:30pm
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
npmx-lunaria Ignored Ignored Apr 21, 2026 2:30pm

Request Review

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 84.00000% with 8 lines in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
app/components/Compare/ReplacementSuggestion.vue 83.33% 2 Missing and 1 partial ⚠️
app/components/Package/Replacement.vue 83.33% 2 Missing and 1 partial ⚠️
app/composables/useModuleReplacement.ts 0.00% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ghostdevv
Copy link
Copy Markdown
Contributor

Are we deferring this till 0.9?

@43081j
Copy link
Copy Markdown
Contributor

43081j commented Apr 8, 2026

yes.

it relies on me publishing module-replacements@3 too, which I haven't done yet.

@gameroman
Copy link
Copy Markdown
Contributor Author

I'll also start on working adding replacements v3 to https://github.com/npmx-dev/vscode-npmx 👍

@serhalp
Copy link
Copy Markdown
Member

serhalp commented Apr 10, 2026

does this close #1976?

@gameroman
Copy link
Copy Markdown
Contributor Author

gameroman commented Apr 10, 2026

does this close #1976?

No, will be a separate PR for that

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 12, 2026

📊 Dependency Size Changes

Warning

This PR adds 363 kB of new dependencies, which exceeds the threshold of 200 kB.

📦 Package 📏 Size
module-replacements@3.0.0-beta.7 363 kB

Total size change: 363 kB

Comment thread app/composables/useCompareReplacements.ts
@43081j
Copy link
Copy Markdown
Contributor

43081j commented Apr 16, 2026

@gameroman i've published beta.6 of module-replacements, can you try it out here?

the types very slightly changed (url became optional for documented replacements)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Released

Development

Successfully merging this pull request may close these issues.

5 participants