Skip to content

Not so breaking release

Compare
Choose a tag to compare
@koresar koresar released this 09 Nov 12:00
· 68 commits to master since this release

To migrate to stampit v4 most likely you won't need to do any changes to your codebase.

Please note that NPM registry do not have stampit v4.0.0, instead use v4.0.2. Sorry about that.

BRAKING CHANGES:

  • Removed the previously deprecated refs. Please, use props instead.
    (Please note, if you are migrating from stampit v2 to v4 you would need to rename props -> deepProps, and then refs -> props. Sorry for the inconvenience. But it looks like the last rename in stampit's life.)
  • Removed stampit/* utility functions.
    Please use @stamp/is/stamp instead of stampit/isStamp, @stamp/is/composable instead of stampit/isComposable, and @stamp/compose instead of stampit/compose.
  • The composers are now stored in Stamp.compose.composers metadata instead of Stamp.compose.deepConfiguration.composers.
    Should you care? Probably not. Good thing is - this makes stampit fully compatible with @stamp/* modules ecosystem.

Other notable changes:

  • Stampit is fully compatible with @stamp/* modules ecosystem now.
  • The .min.js bundle is now twice smaller (2.7KB), the gzipped size is 40% smaller - 1.3KB.
  • We run tests in browsers now too.
  • Fixed few bugs - #317 #304 #68
  • Stampit was rewritten in ES5 which allowed the three items above.
  • Updated all the documentations we have in this repo.