Update dependency @linaria/webpack-loader to v4.5.4 #59
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.
This PR contains the following updates:
4.1.15
->4.5.4
Release Notes
callstack/linaria (@linaria/webpack-loader)
v4.5.4
Compare Source
Patch Changes
10bcd24
]v4.5.3
Compare Source
Patch Changes
7955724
: Nothing has changed. Just moved some utils and types from babel to utils package.e59bf80
: Shaker mistakenly counts references in types as valuable and keeps referenced variables alive.7955724
]b191f54
]e59bf80
]520ba8d
]ae3727f
]dca076e
]v4.5.2
Compare Source
Patch Changes
85e74df
]1bf5c5b
]v4.5.1
Compare Source
Patch Changes
ceca161
: Enable optimisation from #1276 for complex expressions such asstyled(Component as unknow)
orstyled(connect(Component))
.1325830
: Variables in props-based interpolation functions are no longer required for the evaluation stage.Here's an example:
In versions prior to and including 4.5.0, the evaluator would attempt to import
getColor
fromvery-big-library
, despite it having no relevance to style generation. However, in versions greater than 4.5.0,very-big-library
will be ignored.Updated dependencies [
ceca161
]Updated dependencies [
1325830
]v4.5.0
Compare Source
Minor Changes
16c057d
: Breaking Change: Performance Optimization forstyled
When a component is wrapped in
styled
, Linaria needs to determine if that component is already a styled component. To accomplish this, the wrapped component is included in the list of variables for evaluation, along with the interpolated values used in styles. The issue arises when a wrapped component, even if it is not styled, brings along a substantial dependency tree. This situation is particularly evident when usingstyled
to style components from third-party UI libraries.To address this problem, Linaria will now examine the import location of the component and check if there is an annotation in the
package.json
file of the package containing the components. This annotation indicates whether the package includes other Linaria components. If there is no such annotation, Linaria will refrain from evaluating the component.Please note that this Breaking Change solely affects developers of component libraries. In order for users to style components from your library, you must include the
linaria.components
property in the library'spackage.json
file. This property should have a mask that covers all imported files with components. Here's an example of how to specify it:Patch Changes
00b43a6
: Cannot find module 'xxx' with esbuild 0.17 and linaria 4.2af5bb92
: The end of support for Node.js 14. Migration to pnpm 8.890b4ac
]418e40a
]05ad266
]16c057d
]af5bb92
]v4.1.17
Compare Source
Patch Changes
821a681
]54ab61b
]v4.1.16
Compare Source
Patch Changes
1c3f309
]dbe250b
]3402908
]a62e7ba
]Configuration
📅 Schedule: Branch creation - "monthly" in timezone Asia/Tokyo, Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.