Skip to content

Make AlertsProvider opt-in and add React Compiler#236

Merged
laurent86 merged 1 commit intomasterfrom
feat/react-19-migration
Mar 20, 2026
Merged

Make AlertsProvider opt-in and add React Compiler#236
laurent86 merged 1 commit intomasterfrom
feat/react-19-migration

Conversation

@laurent86
Copy link
Contributor

  • DrylusProvider: AlertsProvider is now lazy-loaded and only included when enableAlerts={true} is passed. This removes AlertsProvider and its dependency subtree from the bundle for consumers that don't use alerts.

  • Add babel-plugin-react-compiler to the build pipeline. The compiler auto-memoizes component internals (136 memo points across 68 files), reducing re-renders when props partially change — beyond what the 25 manual React.memo wraps provide.

PR Template

You can delete this markup if it doesn't apply to this PR

How to choose a release version?

From semver
Given a version number MAJOR.MINOR.PATCH:

Version Changes
MAJOR incompatible API changes
MINOR add functionality (backwards-compatible)
PATCH bug fixes (backwards-compatible)

If this PR is not for a major version change / does not introduce breaking changes, you can discard this template.
You can remove any unapplicable section if it doesn't apply to your introduced changes.

Breaking changes 💥

  • First change
  • Second change
  • ...

Migration guide from [previous version] 📋

Enums

In this version, all deprecated enums from [previous version] have been removed. The following table shows the equivalent new field for all removed fields:

Removed New
OldEnum NewEnum (optional)

When upgrading to [new version], simply import and use the new enums instead of the old ones (the props of the components is still named the same).

Deprecated Enums

The following emums have been deprecated, and will be removed in the next major version.

Deprecated New
OldEnum NewEnum (optional)

Props

In this version, all deprecated props from [previous version] have been removed. The following table shows the equivalent new field for all removed fields:

Prop Component Replacement
oldProp Icon newProp (optional)

The following props have been deprecated, and will be removed in the next major version.

Prop Component Replacement
oldProp Icon newProp (optional)

- DrylusProvider: AlertsProvider is now lazy-loaded and only included
  when enableAlerts={true} is passed. This removes AlertsProvider and
  its dependency subtree from the bundle for consumers that don't use
  alerts.

- Add babel-plugin-react-compiler to the build pipeline. The compiler
  auto-memoizes component internals (136 memo points across 68 files),
  reducing re-renders when props partially change — beyond what the
  25 manual React.memo wraps provide.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@laurent86 laurent86 merged commit 4b0a76c into master Mar 20, 2026
2 checks passed
@laurent86 laurent86 deleted the feat/react-19-migration branch March 20, 2026 15:23
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This pull request does not contain a valid label. Please add one of the following labels: ['major', 'minor', 'patch', 'skip-release']

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.

2 participants