Skip to content

Modernize build setup and harden DarkModeSwitch for React 16–19#49

Merged
JoseRFelix merged 5 commits intomasterfrom
chore/pnpm-ci-react-compat-darkmode-switch
Feb 20, 2026
Merged

Modernize build setup and harden DarkModeSwitch for React 16–19#49
JoseRFelix merged 5 commits intomasterfrom
chore/pnpm-ci-react-compat-darkmode-switch

Conversation

@JoseRFelix
Copy link
Copy Markdown
Owner

Summary

  • Migrates the repo from Yarn to pnpm (pnpm-lock.yaml, workspace config, updated scripts, Husky pre-commit hook, and CI workflow updates).
  • Upgrades CI/tooling to current versions (GitHub Actions v4, Node 20, pnpm install/lint/test/build pipeline) and adds a React compatibility matrix job for 16/17/18/19.
  • Updates package/dependency setup (including @react-spring/web, newer React/TypeScript/dev tooling, and removal of legacy Yarn lockfiles).
  • Refactors DarkModeSwitch internals to avoid mutating default animation config, improve prop typing, and render through a semantic button with switch accessibility attributes.
  • Refreshes example app setup for modern React/Parcel (createRoot, module script, updated deps) and expands tests to cover animation merge behavior, accessibility output, and unique mask ids.

Moves the repo and CI from Yarn to pnpm with updated tooling and lockfiles, and adds a React 16–19 compatibility matrix. Refactors DarkModeSwitch for safer animation config handling, better accessibility semantics, and stronger tests, while modernizing the example app setup.
@JoseRFelix JoseRFelix merged commit 8f29037 into master Feb 20, 2026
1 of 10 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