Releases: bem/bem-react
Releases · bem/bem-react
Release v4.5.0
@bem-react/[email protected]
Features:
- the star matcher support for any value of prop in modifier, ex
withBemMod('Block', { url: '*' })
. Any url will be matched. Related issue #374.
Full changes in CHANGELOG file.
Release v2.2.3
BREAKING CHANGES:
- change
&
to|
operator for building result interface afterwithMods
. See #298 for details. - change base type for static
mod
method toany
fromobject
. See #296 for details.
Full changes https://github.com/bem/bem-react-core/blob/master/packages/react/CHANGELOG.md#223-2018-08-08
v2.1.1
Release v2.0.0
The list of changes
- Full type annotations support. TypeScript and Flow;
- Source code in TypeScript;
- JS classes syntax for Blocks, Elements, and Modifiers;
- Standard inheritance without extra libraries;
- Standard lifecycle hooks names;
withMods
HOC for modifiers;- Simple CSS classes mixes;
- Smaller library size
2.4kB
;
Take a look new docs section
v1.0.0
v1.0.0 RC Update
v1.0.0 RC Update
Breaking changes
- add named export for Bem component #191
v1.0.0 RC Update
Bug fixes
- fix default main to React preset
v1.0.0 RC Update
Bug fixes
- Remove
process.env
calls from UMD 8b3e3f0
v1.0.0 RC
Features
- Implement
replace
mode #21 - CSS-classes inheritance #158. If you have block
A
withA_m1_v1
mod, then inherit blockB
from blockA
and setB_m1_v1
mod you get CSS-classes:A A_m1_v1 B B_m1_v1
. - Minify code base from
17.7kB
to4.1kB
#148 #183 Proof link - Reacts 16 Errors Boundaries support #164
- Support nested mixes #16
- Support Preact API #145
- Support bem-config in client js by env variables #133
- Sandbox https://jsfiddle.net/awinogradov/ek5esy89/3/
- Run tests with React 15 and React 16 for every PR #167
Breaking changes
- Presets for React and Preact usage. Look at this code
- Wrap
addMix
with function for consistency #155 - Wrap
addBemClassName
with function for consistency #126 - Pass props and state as arguments for all declaration methods #123
- Get rid of attrs prop and proxy all props to
<Bem/>
#125