Skip to content

Hand the npm latest dist-tag to v2 - #118

Merged
dcruzb merged 3 commits into
mainfrom
develop
Sep 16, 2026
Merged

dcruzb merged 3 commits into
mainfrom
develop

Conversation

@dcruzb

@dcruzb dcruzb commented Sep 16, 2026

Copy link
Copy Markdown
Member

Brings develop up to main ahead of the 2.0.0 release.

Why this has to land before the v2 tag

43a2179 sets LATEST_MAJOR to 2 in v1's deploy.yml. The publish workflow runs from the tag on main, so while main still says 1, the next 1.x release would move the npm latest dist-tag back from v2 to v1. With this merged, 1.x publishes under v1-latest instead.

Also included

  • cc6aa39 — the release job now creates the GitHub release from the CHANGELOG section plus GitHub's generated notes, so it no longer depends on someone drafting it by hand.
  • fbb9ed0 — the 13 code smells SonarCloud reported on new code, and rollup's module-level directive warnings silenced. The build printed 381 warnings, 360 of them MUI 'use client' noise; it now prints 21, which is what let the real ones be read at all.

Nothing here is published by merging. The v1 line stays at 1.5.0 on npm until someone tags a 1.x release; these changes ride along with whatever that turns out to be.

Releases through 1.5.0 were written by hand, always with the same two
parts: the CHANGELOG section for the version, then the pull requests
GitHub generates. This reproduces that shape from the tag, so the
release stops depending on someone remembering to draft it.

A version with no matching CHANGELOG section still gets a release, with
the generated half only and a warning in the log.
Thirteen of the fourteen code smells reported on new code:

- Component props marked read-only in SideMenu, IconRenderer, Page and
  PageWithAuth.
- Dropped a fragment wrapping a single child in SystemsPopup.
- Re-exported toast with export...from instead of importing it only to
  export it again.
- Replaced an anchor with no href in Footer with a span. It was never
  navigable, and an anchor without href is skipped by keyboard
  navigation while still reading as a link to assistive technology.
- Collapsed two conditionals that only restated their own operands.
- Moved Dialog's text out of a children prop and between the tags in the
  UserPopup story.

Also silenced rollup's module-level directive warnings, which MUI emits
once per file: the build printed 381 warnings, 360 of them these, and
real ones were unreadable among them. The build now reports 21.
v2 becomes the version new consumers get. With LATEST_MAJOR still at 1
here, the next 1.x fix would move latest back from 2.x to 1.x, so this
has to reach main before any further v1 release. From now on 1.x
publishes under v1-latest.

Nothing is published by this change; it only takes effect on the next
release tag.
@sonarqubecloud

Copy link
Copy Markdown

@dcruzb
dcruzb merged commit e16e775 into main Sep 16, 2026
7 checks 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