Skip to content

Latest commit

 

History

History
136 lines (83 loc) · 4.69 KB

CHANGELOG.md

File metadata and controls

136 lines (83 loc) · 4.69 KB

ChangeLog

v3.2.2

16-February-2016

Move set channel to happen before anything runs because addons might init expecting the channel to exist. PR75

v3.2.1

21-January-2016

Provide mock Storybook Channel to Storybook addons. PR72

v3.2.0

30-December-2016

Add support to filter stories by story name using a regexp. PR70

v3.1.1

27-December-2016

Pass storybook context to render function of stories. PR69

v3.1.0

24-December-2016

Add support for require.context. PR67

v3.0.0

22-December-2016

This is a brand new version of StoryShots where it allows you to use StoryShots inside Jest. Earlier we have also bundled a CLI tool which uses some of the internal modules used by Jest.

But it seems like we are building an our own Jest with that. That's why we decided to go with this approach.

If you still like to use our CLI version, use this version. (It's working but we no longer maintain it.)

v2.1.0

8-November-2016

Default loaders support markdown file PR56

v2.0.2

7-November-2016

  • NODE_ENV is set to "development" by default PR50
  • require.context regexp test includes the begining ./ of filenames PR55

v2.0.1

20-October-2016

Prepare channel before reading storybook as some addons use it before running stories. PR41

v2.0.0

11-October-2016

  • Update jest-snapshot to version 16.0.0. PR39
  • Use a directory and extension different from regular jest snapshots for storyshots. PR40

Migrating from 1.x.x

From version 2.0.0 by default storyshot files will be stored in a directory named __storyshots__ (instead of __snapshots__) inside storybook config directory. Further storyshot files will use extension .shot instead of .snap.

These changes are important because they allow storyshots to be used with jest in the same project. See issue#34 for more info.

This mean that once storyshots is updated to 2.0.0 it wont check your existing snapshots. It will create new snapshots in the new location and you can delete old ones.

To update safely, follow these steps.

  1. Run your 1.x.x version of storyshots and make sure all stories pass.
  2. Update storyshots. npm install @kadira/storyshots@^2.0.0 --save-dev
  3. Delete __snapshots__ directory and contents from your storybook config directory. Also remove it from your version control system.
  4. Run updated storyshots and add the newly added __storyshots__ directory to your version control system.

Done!

v1.1.5

9-October-2016

Fix issue where require.context did not work with regexps for full path. PR37

v1.1.4

6-October-2016

Add support for require.context inside storybook config module. The regression introduced in v1.1.2 is addressed. PR33

v1.1.3

30-September-2016

v1.1.2 introduce a regression. So this revert that version.

v1.1.2

30-September-2016

Add support for require.context inside storybook config module. PR30

v1.1.1

28-September-2016

  • Watch mode Summary shows the stats for the last run only. PR27
  • If some tests fail exit with status code 1. PR28

v1.1.0

27-September-2016

Add --exclude flag to avoid running stories matching a given regexp. PR24 PR25

v1.0.5

25-September-2016

  • Fix missing dependencies. PR21
  • Context should contain only the story name. PR20

v1.0.4

Invalid Version. Same as v1.0.3

v1.0.3

23-September-2016

Fix a typo in the console Summary message.

v1.0.1

22-September-2016

Fix: Allow module loaders to return something. PR14

v1.0.1

22-September-2016

Fix a typo.

v1.0.0

22-September-2016

Initial Release.