Update dependencies to React 19 and styled-components 6 - #40
Closed
andrerei-nqda wants to merge 3 commits into
Closed
andrerei-nqda wants to merge 3 commits into
andrerei-nqda wants to merge 3 commits into
Conversation
Bump React and styled-components peers to also accept React 19 and styled-components 6, move to ESLint flat config with the untile v3 configs, Vitest 5, Husky 9 and Node 24 in CI. Switch to the automatic JSX runtime and fix the esm output path in the build script.
The exports map was written by hand and listed only import and require, so TypeScript resolved no declarations for consumers on bundler or node16 resolution. It is now generated by the build from the same entry list, with a types condition first, which keeps it from drifting as entries are added.
Version 6 of the commitlint action refuses a configFile ending in .js and fails the build before it lints anything. The config is CommonJS, so it is renamed to .cjs, which is what js-configs already uses and what the action accepts.
andrerei-nqda
force-pushed
the
enhancement/upgrade-dependencies
branch
from
September 21, 2026 12:19
a30bc07 to
57ec0b4
Compare
Author
|
Closing: this is no longer part of the BRP upgrade. The web application now keeps its own copy of the source, so nothing is waiting on a release of this package. The branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Makes the library usable from applications on React 19 and styled-components 6. Required by the BRP web application upgrade.
What changed
react ^18 || ^19andstyled-components ^5.3 || ^6. Both majors stay supported, so existing consumers are unaffected.exportsmap is now generated by the build rather than hand-maintained, and carries atypescondition so TypeScript resolves the declarations under bothbundlerandnode16resolution.Release
The widened peers are a breaking change, so this should go out as 3.0.0. The version in
package.jsonis still 2.0.0; the bump happens when the release is cut.This is no longer a blocker for the BRP upgrade. Releasing a package that every other consumer installs put unrelated projects in the path of that upgrade, so the BRP web application now keeps a copy of this source in its own repository and no longer installs the package. The work here still stands on its own and is worth merging and releasing for the other consumers; there is just no deadline attached to it any more. Whoever picks it up should check the BRP copy for fixes made since.
Verified
26 tests pass, build and type declarations check out, and the library is consumed end to end by the BRP web application running React 19 and styled-components 6.