Skip to content

Releases: frontendr/bemmed

1.6.2

19 Jul 09:22

Choose a tag to compare

What's Changed

  • Fixed an issue that was breaking exports in ESM builds #161

Full Changelog: 1.6.1...1.6.2

1.6.0

09 Mar 22:48

Choose a tag to compare

1.6.0

  • BREAKING CHANGE: The propTypes property is no longer available on the BEM object. You can import it directly from bemmed/proptypes in order to keep the bundle size as small as possible.

1.5.0

09 Mar 22:11

Choose a tag to compare

Release 1.5.0

  • Refactored the codebase into Typescript.
  • Types are now much more accurate as they are auto-generated now by Typescript.
  • Cleaned up development packages.
  • Added a .s getter for cleaner and easier .toString() calls on BEM and BEMList instances.

1.4.0

09 Mar 22:09

Choose a tag to compare

Release 1.4.0

  • Changed build method to use rollup.js
  • Bemmed is now distributed in CommonJS, ES, and UMD formats.
  • Typings are now in the types subfolder and are properly referenced in package.json

1.3.0

01 Apr 09:34

Choose a tag to compare

Release 1.3.0

  • Make the behaviour of BEMList.concat() the same as BEM.concat(). Both remove any duplicate arguments.
  • Updates on the documentation.

1.2.1

12 Mar 13:53

Choose a tag to compare

Release 1.2.1

  • A fix for possible 'leakage' of modifiers when using .elements().
  • devDependency updates
  • Prettier 2 code style
  • Less comments in build

1.2.0

01 Apr 09:48

Choose a tag to compare

Release 1.2.0

Refactored BEM.propType into a BEM.propTypes object with multiple propTypes functions.

The propTypes all have a isRequired property to ensure the prop has a value.

  • BEM.propTypes.bem: New propType to check for BEM instances.
  • BEM.propTypes.className: PropType to check if a prop is a valid className (including BEM objects). This was the original BEM.propType which is still present but deprecated.
  • BEM.propTypes.element: PropType to check if a prop can be used as a value for BEM.element().
  • BEM.propTypes.modifier: PropType to check if a prop can be used as a value for BEM.modifier().

Deprecations

  • BEM.propType is deprecated in favor of BEM.propTypes.className.
  • The BEMTypes export is also deprecated. It wasn't documented so doubt anyone uses it anyway.