Skip to content

feat: only offer a Less alpha that ships the browser bundle - #33

Merged
matthew-dean merged 1 commit into
masterfrom
feat/alpha-min-version
Sep 3, 2026
Merged

matthew-dean merged 1 commit into
masterfrom
feat/alpha-min-version

Conversation

@matthew-dean

Copy link
Copy Markdown
Member

The experimental alpha entry loads dist/less-browser-dev.js from jsDelivr. Alphas published before 5.0.0-alpha.3 do not include that file, so selecting them only produced a load failure.

This gates the entry on the first alpha that ships the bundle. The existing option gates compare the numeric release core only (an alpha counts as its release line), so a small prerelease-aware atLeast is added for this one check: 5.0.0-alpha.2 is excluded, 5.0.0-alpha.3, later alphas and the 5.0.0 release are included.

Same idea as the Less benchmark runner's per-file minimum versions: only offer what the selected version can actually run.

The alpha entry in the version switcher loads dist/less-browser-dev.js
from the CDN. Alphas published before 5.0.0-alpha.3 do not include that
file, so offering them only produced a load failure. Like the Less
benchmark runner's per-file minimum versions, gate the entry on the first
alpha that actually ships the bundle, using a prerelease-aware compare.
@matthew-dean
matthew-dean merged commit 9ae5ba3 into master Sep 3, 2026
1 check passed
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