Skip to content

feat: module replacements v3 - #2068

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

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

Conversation

@gameroman

@gameromangameroman commented Mar 13, 2026

Copy link
Copy Markdown
Member

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

vercelBot commented Mar 13, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
docs.npmx.devReadyReadyPreview, CommentApr 21, 2026 2:30pm
npmx.devReadyReadyPreview, CommentApr 21, 2026 2:30pm
1 Skipped Deployment
ProjectDeploymentActionsUpdated (UTC)
npmx-lunariaIgnoredIgnoredApr 21, 2026 2:30pm

Request Review

@codecov

codecovBot commented Mar 13, 2026

Copy link
Copy Markdown

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 linesPatch %Lines
app/components/Compare/ReplacementSuggestion.vue83.33%2 Missing and 1 partial ⚠️
app/components/Package/Replacement.vue83.33%2 Missing and 1 partial ⚠️
app/composables/useModuleReplacement.ts0.00%2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@ghostdevv

Copy link
Copy Markdown
Member

Are we deferring this till 0.9?

@43081j

Copy link
Copy Markdown
Contributor

yes.

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

@gameroman

Copy link
Copy Markdown
MemberAuthor

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

@serhalp

Copy link
Copy Markdown
Member

does this close #1976?

@gameroman

gameroman commented Apr 10, 2026

Copy link
Copy Markdown
MemberAuthor

does this close #1976?

No, will be a separate PR for that

@github-actions

github-actionsBot commented Apr 12, 2026

Copy link
Copy Markdown

📊 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.7363 kB

Total size change: 363 kB

Comment threadapp/composables/useCompareReplacements.ts
@43081j

43081j commented Apr 16, 2026

Copy link
Copy Markdown
Contributor

@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 freeto 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

@gameroman@serhalp@43081j@joaopedrodcf@ghostdevv