Bem React Versions Save

A set of tools for developing user interfaces using the BEM methodology in React

[email protected]

5 years ago

@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.

[email protected]

5 years ago

BREAKING CHANGES:

  • change & to | operator for building result interface after withMods. See #298 for details.
  • change base type for static mod method to any from object. 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

5 years ago

v2.0.0

5 years ago

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

6 years ago

v1.0.0-rc.5

6 years ago

Features

  • add typings #147
  • run specs on distribution version in CI #194

v1.0.0-rc.4

6 years ago

Breaking changes

v1.0.0-rc.3

6 years ago

Bug fixes

  • fix default main to React preset

v1.0.0-rc.2

6 years ago

v1.0.0-rc.1

6 years ago

Features

  • Implement replace mode #21
  • CSS-classes inheritance #158. If you have block A with A_m1_v1 mod, then inherit block B from block A and set B_m1_v1 mod you get CSS-classes: A A_m1_v1 B B_m1_v1.
  • Minify code base from 17.7kB to 4.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

Bug fixes

  • aria-attributes rendering check #129
  • Right order of __base calls in case of mixins #142
  • elemMods works as usual #156
  • Allowing single mixes #154
  • Add default export to compiled classes #153
  • Fix context in getChildContext resolving #165