v1.0.0 RC
Pre-release
Pre-release
awinogradov
released this
14 Dec 15:16
·
696 commits
to master
since this release
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