Skip to content

fix: let antdv-next match every minor up to the next major - #1

Merged
0xJacky merged 2 commits into
mainfrom
fix/antdv-next-shared-range
Nov 12, 2026
Merged

0xJacky merged 2 commits into
mainfrom
fix/antdv-next-shared-range

Conversation

@0xJacky

@0xJacky 0xJacky commented Nov 12, 2026

Copy link
Copy Markdown
Member

Problem

The shared range for antdv-next was pinned to major.minor. The DNS-01 plugin 1.0.0 was built against antdv-next 1.5.4 and declares ~1.5; NGINX UI 3.0.0/3.0.1 ship antdv-next 1.7 and 3.0.2 ships 1.8. The host's loader (app/src/plugin/loader.ts) skips a bundle whose range does not match, so the plugin's challenge form, with its CNAME and propagation switches, never loaded on any 3.0 release (0xJacky/nginx-ui#2113). Every routine minor upgrade of antdv-next on the host would do the same to every plugin.

Fix

antdv-next gets the same range as vue, vue-router and pinia: >=<built version> <<next major>. README example updated.

Tests

  • Updated shared-range tests fail on main (Expected ">=1.5.4 <2", Received "~1.5") and pass here; bun test 24 pass, typecheck and build clean.
  • The host's own matcher (app/src/plugin/semver.ts) accepts >=1.5.4 <2 for 1.5.4, 1.7.1 and 1.8.1 and rejects 1.5.3 and 2.0.0.

The DNS-01 plugin needs a rebuild with the released SDK to pick this up.

🤖 Generated with Claude Code

0xJacky and others added 2 commits November 12, 2026 20:10
The shared range for antdv-next was pinned to major.minor, so a bundle
built against antdv-next 1.5 declared ~1.5. NGINX UI 3.0 ships 1.7 and
3.0.2 ships 1.8, and the host's loader refused such bundles as
incompatible: the official DNS-01 plugin's challenge form never loaded on
any 3.0 release (0xJacky/nginx-ui#2113). Every routine minor upgrade of
the host would do the same to every plugin.

antdv-next now gets the same range as vue, vue-router and pinia:
>=<built version> <<next major>.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A library installed as a prerelease, such as antdv-next 1.9.0-beta.1,
produced >=1.9.0-beta.1 <2. The host's range matcher does not accept a
prerelease in a range, so the bundle was refused; the old ~1.9 range
matched. The lower bound is now major.minor.patch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xJacky
0xJacky merged commit 94da658 into main Nov 12, 2026
1 check passed
@0xJacky
0xJacky deleted the fix/antdv-next-shared-range branch November 12, 2026 12:19
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.

1 participant