Skip to content

Releases: stampit-org/stampit

Do not use `Array.prototype.includes()` in code

30 Apr 15:30

Choose a tag to compare

The Array.prototype.includes() was not polifilled/traspiled. But stampit was using it. Thus, failing to work in some cases under node v4 and IE environments.

Composers fixes

25 Jan 13:18

Choose a tag to compare

The new Composers feature fixes.

  1. The composers array was not deduplicated. Now it is.
  2. In case of stamp.compose() syntax the stamp was never passed to composers. Fixed too.

Republish a malformed package

18 Dec 12:08

Choose a tag to compare

The v3.1.0 tarball was uploaded to NPM registry somewhat wrongly. This v3.1.1 just fixes the issue.

New feature - composers

18 Dec 12:06

Choose a tag to compare

"Composers" is an experimental proposal to the Stamp Specification.

Composers are sort-of-a hooks where you can alter composition with your own logic. See this article.

Simplest example:

const Tracked = stampit()
  .composers(({composables, stamp}) => { // declaring a composer
    console.log(`Composed a stamp "${stamp}" from the following:
      "${composable.join()}"`);
  });

The list of composers is stored in the stamp.compose.configuration.composers array. This means that stamps are still specification compatible.

Fix npm distro size

01 Nov 08:03

Choose a tag to compare

Previous release accidentally published few unnecessary development files.

Performance fix

30 Oct 07:31

Choose a tag to compare

Object instance property access performance was 100 times lower than for plain objects. Fixed.
Also, improved IDE support with some additional JSDoc.

Remove .babelrc and package.json-babel

19 Oct 08:09

Choose a tag to compare

By removing .babelrc file, and the babel property in the package.json we improve compatibility with react-native and other packages which traverse the node_modules for babel stuff.

Instead, we are using buble for transpilation. It's faster, and generates a tiny bit smaller bundle file (1.52KB vs 1.56KB).

v3.0.3

14 Oct 00:48

Choose a tag to compare

Remove "browser" property from package.json as not needed and wrongly used

Incorrect `export {compose}`

02 Oct 00:06

Choose a tag to compare

Stampit was exporting the original pure compose function. Although, by design it should have exported the infected compose (aka stampit).

NPM tarball size decrease

25 Sep 12:28

Choose a tag to compare

Reduced the NPM distributed tarball from 60KB to 43KB.