New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

chromatic

Package Overview
Dependencies
Maintainers
9
Versions
1520
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromatic - npm Package Versions

1
152

6.8.0

Diff

Changelog

Source

6.8.0 - 2022-08-26

  • 630 Rename --only to --only-story-names but keep it as a deprecated alias
  • 629 Deprecate --preserve-missing and raise a warning if it's being used

Use TurboSnap instead of preserveMissing

In order to support advanced use cases where only a subset of stories would be included in a Storybook, the --preserve-missing flag could be used to prevent excluded stories from being marked as "removed" in Chromatic. This behavior could lead to problematic situations regarding infrastructure upgrades and cause truly removed stories to never be removed from Chromatic. That's why we are sunsetting the "preserve missing" behavior. As of v6.8.0, using this flag will raise a warning message in the CLI. In a future major version, the flag will be removed completely, and continuing to use it with an older CLI version will start to fail your build.

To upgrade, you should remove the --preserve-missing flag from your CI and/or package.json scripts. If you use our GitHub Action, you should remove the preserveMissing input (with: ...) from your workflow config file. Furthermore, you should make sure that your build-storybook script builds all stories, not just a subset. Check your stories configuration in .storybook/main.js so it doesn't omit any stories (e.g. based on an environment variable).

Most likely you were using preserveMissing to cut down on the number of snapshots taken by Chromatic. To achieve the same goal, you have three options:

  • Recommended: Use TurboSnap to automatically only snapshot stories for which related source files have changed.
  • Use --only-story-names to only snapshot stories matching a glob pattern by component/story name.
  • (Soon) Use --only-story-files to only snapshot stories matching a glob pattern by story filename.

In each of these cases, any stories that aren't captured are "inherited" from their baseline.

ghengeveld
published 6.7.4 •

Changelog

Source

6.7.4 - 2022-08-11

  • 624 Read Webpack stats file as stream to support very large projects
jonok
published 6.7.3 •

Changelog

Source

6.7.3 - 2022-08-01

  • 621 Add addon-interactions to list of supported addons
andrewortwein
published 6.7.2 •

Changelog

Source

6.7.2 - 2022-07-28

  • 615 Changed trim stats to stream and added test
thafryer
published 6.7.1 •

Changelog

Source

6.7.1 - 2022-07-22

  • 612 Add change count to buildPassed message if changes exist
andrewortwein
published 6.7.0 •

Changelog

Source

6.7.0 - 2022-06-30

  • 598 Enable bash mode for globs when matching branches with picomatch
ghengeveld
published 6.6.4 •

Changelog

Source

6.6.4 - 2022-06-27

  • 590 Better onboarding support
  • 596 Handle redirects when using --storybook-url
thafryer
published 6.6.4-next.0 •

thafryer
published 6.6.4-canary.0 •

ghengeveld
published 6.6.3 •

Changelog

Source

6.6.3 - 2022-06-18

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc