Skip to content

Releases: esamattis/react-bemed

v1.0.5

Choose a tag to compare

@esamattis esamattis released this 24 May 09:51
  • Fix crash when bunding with remix e83fcf6

v1.0.4...v1.0.5

v1.0.4

Choose a tag to compare

@esamattis esamattis released this 04 Jan 12:36
  • Assert babel plugin nodes ff0d33c
  • Relax react peer dep requirements 0ee1c00

All changes

v1.0.3...v1.0.4

v1.0.3

Choose a tag to compare

@esamattis esamattis released this 23 Mar 09:41

v1.0.2...v1.0.3

v1.0.2

Choose a tag to compare

@esamattis esamattis released this 15 Dec 09:03
  • Allow custom stylis options 0be2551
  • precompiler: fix variables with the prefixer 9740443
  • Remove media query variable hack 1373ac6

v1.0.1...v1.0.2

v1.0.1

Choose a tag to compare

@esamattis esamattis released this 14 Dec 17:38
  • Add jscodeshift transform cb1beed
  • Cache CSS precompilation and lazily initialize stylis 74f6bef

v1.0.0...v1.0.1

v1.0.0

Choose a tag to compare

@esamattis esamattis released this 04 Dec 11:49

1.0 🎉

With one breaking change: The bemed() function is no longer a higher-order function just takes the name as an option like other options.

Migration:

const Button = bemed({ as: "button" })("Button");

to

const Button = bemed({ name: "Button", as: "button" });

The name property is also now an optional which can be automatically generated from the variable name using the Babel plugin.

Here's a jscodeshift transform that can automate this https://github.com/esamattis/react-bemed/blob/master/jscodeshift/v1.0-upgrade.ts

Other changes

  • Enum mods can be provided with a default with defaultMods
  • Allow arrays of class names in mods
  • Enable precompilation by default 3e429dd
  • Assert duplicate names in production builds 59ad3b9
  • Add generateName() babel plugin option dc1041e
  • Document Tailwind usage ee11911
  • Generate class name from the css string if no name was provided a1aedf9

All changes v0.7.5...v1.0.0

v0.7.6

Choose a tag to compare

@esamattis esamattis released this 04 Dec 15:54
  • Cache CSS precompilation and lazily initialize stylis 8fe2ae6
  • Fix sourcemaps 37464c1
  • Workaround media query variables ec22362

v0.7.5...v0.7.6

v0.7.5

Choose a tag to compare

@esamattis esamattis released this 27 Nov 15:05
  • Fix live reload
  • Smarter live update detection
  • Make the class string optional since the babel plugin can automatically fill it.

Example:

const Foo = bemed({
  css: css`color: red`,
})();

is now ok and will compile to

const Foo = bemed({
  css: css`color: red`,
})("filename--Foo");

All changes v0.7.4...v0.7.5

v0.7.4

Choose a tag to compare

@esamattis esamattis released this 29 Nov 12:45
  • Export BEMComponentProperties 17fb030

v0.7.3...v0.7.4

v0.7.3

Choose a tag to compare

@esamattis esamattis released this 22 Sep 18:48

v0.7.2...v0.7.3