UNPKG

16.4 kBMarkdownView Raw
1# 5.8.2 - 2021-05-19
2
3- [348](https://github.com/chromaui/chromatic-cli/pull/348) Restore original behavior to use npm_execpath
4
5# 5.8.1 - 2021-05-18
6
7- [345](https://github.com/chromaui/chromatic-cli/pull/345) Restore implying of `--preserve-missing` when using `--only`
8- [344](https://github.com/chromaui/chromatic-cli/pull/344) Fix determining viewLayer when using transitive dependency
9- [337](https://github.com/chromaui/chromatic-cli/pull/337) Fix chromatic script that can be added to package.json
10- [331](https://github.com/chromaui/chromatic-cli/pull/331) Log `clientVersion` on fatal error
11
12# 5.8.0 - 2021-04-29
13
14- [319](https://github.com/chromaui/chromatic-cli/pull/319) Retrieve viewLayer and version from dependencies and support @web/dev-server-storybook
15- [313](https://github.com/chromaui/chromatic-cli/pull/313) Use original baseline for rebuilds (new build for the same commit)
16- [304](https://github.com/chromaui/chromatic-cli/pull/304) Support only testing components affected by recent git changes
17- [305](https://github.com/chromaui/chromatic-cli/pull/305) Fix `npx chromatic` timing out on build-storybook
18
19# 5.7.1 - 2021-02-02
20
21- Better logging when Storybook validation fails
22
23# 5.7.0 - 2021-03-11
24
25- [283](https://github.com/chromaui/chromatic-cli/pull/283) Explicitly allow multiple project-tokens (last will be used)
26- [301](https://github.com/chromaui/chromatic-cli/pull/301) Strip `origin/*` prefix from branch name
27- [297](https://github.com/chromaui/chromatic-cli/pull/297) Add @storybook/vue3 support
28- [296](https://github.com/chromaui/chromatic-cli/pull/296) Support Yarn 2 execpath
29- [295](https://github.com/chromaui/chromatic-cli/pull/295) Gracefully handle `git config` command in Netlify
30- [284](https://github.com/chromaui/chromatic-cli/pull/284) Fix `storybookUrl` in GitHub Action
31- [287](https://github.com/chromaui/chromatic-cli/pull/287) Update CLI to use new `test` terminology and statuses
32- [298](https://github.com/chromaui/chromatic-cli/pull/298) Document GitHub action outputs
33- [306](https://github.com/chromaui/chromatic-cli/pull/306) Fix tunnel builds
34
35# 5.6.3 - 2021-02-17
36
37- [282](https://github.com/chromaui/chromatic-cli/pull/282) Revert meow upgrade (will upgrade again in next major release)
38
39# 5.6.2 - 2021-02-10
40
41- [269](https://github.com/chromaui/chromatic-cli/pull/269) Record CI service name on build
42- [278](https://github.com/chromaui/chromatic-cli/pull/278) Fix 10-minute timeout in gh action
43
44# 5.6.1 - 2021-01-22
45
46- Update `@chromaui/localtunnel` dependency to patch Axios security vulnerability
47
48# 5.6.0 - 2021-01-12
49
50- [233](https://github.com/chromaui/chromatic-cli/pull/233) Add `--branch-name` flag to override branch name
51- [193](https://github.com/chromaui/chromatic-cli/pull/193) Record the repository slug to support builds from forks
52- [237](https://github.com/chromaui/chromatic-cli/pull/237) Avoid passing `--silent` when invoking npm through Node.js script
53- [231](https://github.com/chromaui/chromatic-cli/pull/231) Fix overriding Storybook version through environment variable
54
55# 5.5.0 - 2020-12-20
56
57- [212](https://github.com/chromaui/chromatic-cli/pull/212) Add support for monorepo using a new `path` argument
58- [218](https://github.com/chromaui/chromatic-cli/pull/218) isChromatic should always be a boolean
59- Dependency upgrades
60
61# 5.4.0 - 2020-11-16
62
63- Throw error when running from shallow clone.
64- Improve error messages for when build-storybook fails.
65- Add support for `pull_request_target` and `pull_request_review` events to GitHub Action.
66
67# 5.3.0 - 2020-10-29
68
69- Retrieve branch name using more modern git commands, if available.
70- Auto-detect buildScriptName from available scripts.
71- Improve various log messages.
72
73# 5.2.0 - 2020-09-14
74
75- Keep track of baselines when doing squash or rebase merges.
76
77# 5.1.0 - 2020-08-03
78
79- If the build directory we defined is empty, try to detect the actual build output directory from the Storybook build log and warn about it.
80- Show a user-friendly error message if we still don't find any Storybook files to publish.
81- We now read package.json using `pkgUp`, so theoretically you can run `chromatic` from a subdirectory.
82- Added the `--output-dir (-o)` flag to use instead of a temp dir.
83- Added `buildScript` to the error json output so we won't have to ask for it in support every time.
84- Added a global promise rejection handler, in case we accidently forget to catch them.
85- Added a user-friendly error message when build-storybook fails.
86- Fixed the `--debug` flag so it actually prints something.
87- Fixed the `--only` flag.
88- Fixed issue with `node-loggly-bulk` when using Yarn 2.
89
90# 5.0.0 - 2020-06-19
91
92- Completely overhauled the CLI, with improved UX and better error handling
93- Removed JSDOM and its shims to avoid a whole category of issues with broken builds
94- Added a version upgrade check that warns when a new major update is available
95- Added --junit-report to generating build reports for integration with other tools
96- Changed --only to accept a simple glob
97- Moved documentation to the Chromatic website
98
99# 4.0.3 - 2020-05-18
100
101- Replace child_process.execSync with execa
102- ADD mock for execCommand in JSDOM
103
104# 4.0.2 - 2020-04-26
105
106- REMOVE node_env development https://github.com/chromaui/chromatic-cli/pull/81
107- ADD ability to create a patch build for pull requests
108- ADD extra parameters to upload https://github.com/chromaui/chromatic-cli/pull/107
109- IMPROVE readability of error message from build-storybook https://github.com/chromaui/chromatic-cli/pull/112
110- IMPROVE user experience during onboarding
111- RENAME appCode to projectToken https://github.com/chromaui/chromatic-cli/pull/109
112- REMOVE adding a environment variable when adding script, use cli flag instead https://github.com/chromaui/chromatic-cli/pull/105
113
114# 3.5.2 - 2020-02-18
115
116- FIX version of JSDOM to 16.1 as 16.2 includes a conflicting custom element support https://github.com/chromaui/chromatic-cli/issues/95
117
118# 3.5.1 - 2020-02-06
119
120- FIX setting the `fromCI` flag from our github action https://github.com/chromaui/action/issues/14
121
122# 3.5.0 - 2020-01-28
123
124- CHANGE so the CLI stop on storybook runtime errors https://github.com/chromaui/chromatic-cli/issues/75
125- ADD a flag (`--allow-console-errors`) to continue on storybook runtime errors https://github.com/chromaui/chromatic-cli/issues/75
126- ADD early warning system for if the storybook output folder is empty https://github.com/chromaui/chromatic-cli/issues/78
127- IMPROVE readability of the error when build-storybook fails https://github.com/chromaui/chromatic-cli/issues/73
128- IMPROVE readability of the error when storybook runtime throws an error https://github.com/chromaui/chromatic-cli/issues/73
129- FIX `Intl.PluralRules.supportedLocalesOf is not a function` error https://github.com/chromaui/chromatic-cli/issues/76
130
131# 3.4.0 - 2019-12-25
132
133- FIX pubish script
134
135# 3.3.0 - 2019-12-25
136
137- IMPROVE logging when git fails
138- FIX script for windows
139- ADD `--exit-once-uploaded` flag
140- FIX escape chararacters in error messages
141
142# 3.2.0 failed upload to npm
143
144# 3.1.0 - 2019-11-04
145
146- ADD jsdom shim for SVG elements
147- ADD jsdom shim for fetch
148- Bugfix jsdom shim for Intl
149
150# 3.0.3 - 2019-10-15
151
152- ADD compatibility with github action
153- ADD test with github action
154- ADD compatibility with github env vars for tracing git branch
155- Bugfix running on windows by using cross-spawn
156
157# 3.0.2 - 2019-10-09
158
159- ADD licence file
160- Bugfix compatibility with CHROMA_APP_CODE
161- Bugfix report list of addons
162
163# 3.0.1 - 2019-10-08
164
165- ADD chroma bin
166
167# 3.0.0 - 2019-10-03
168
169- Bugfix indentation of messages in terminal
170- REMOVE the need for the clientside addon
171- unify the 2 related packages into a single repository
172
173# 2.2.2 - 2019-08-25
174
175- Bugfix for compatibility with localtunnel`
176
177# 2.2.0 - 2019-08-23
178
179- Add support for docs-mode (Storybook 5.2 feature).
180
181- Add support for a new parameter: `pauseAnimationsAtEnd`. Read about it here: https://www.chromatic.com/docs/animations
182
183- Retry requests to uploading storybooks in case of network problems.
184
185# 2.1.1 - 2019-08-06
186
187- Upgrade `axios` dependency for security update
188
189# 2.1.0 - 2019-07-17
190
191- Add a `--skip` flag to indicate a commit is not going to be built (and still tag the PR as passing).
192- Allow `chromatic` story parameters to be functions of `({ id, kind name })` -- in particular e.g. `chromatic: { viewport: () => [/*something dynamic based on story info */]}`
193- A fix for issues involving story listings differing between browsers.
194
195# 2.0.0 - 2019-07-17
196
197- We now default to building and uploading your storybook, rather than starting and tunneling it. This has many benefits including increased reliability and better support for Live View. You'll need to ensure you have a `build-storybook` script defined in `package.json` (as added by the Storybook CLI). To get the old behaviour, pass `-s` to the `chromatic test` command.
198
199- We now support HTTPS storybooks (using the `--ssl` flag and friends).
200
201- We polyfill `window.Intl` in our JSDOM environment.
202
203- We polyfill `window.customElements` in our JSDOM environment.
204
205# 1.4.0 - 2019-06-20
206
207- Retry requests to the API server if one fails rather than bailing out on builds.
208
209# 1.3.3 - 2019-04-19
210
211- Fixed issue with uploaded builds and Storybook 5 URLs.
212
213# 1.3.2 - 2019-04-02
214
215- Added a new `diffThreshold` Storybook parameter you can use to control the anti-aliasing threshold we use for diffing if you find that certain images are tripping our diff.
216
217- Fix an issue with handling rebased branches in unusual CI systems.
218
219# 1.3.1 - 2019-03-21
220
221- Add a dedicated endpoint for `isChromatic` so you don't need to load our full package to use it (which is useful if you want to use it inside your app, which we generally don't advise).
222
223# 1.3.0 - 2019-02-28
224
225- Change the default behaviour around starting the storybook; if we find something running on the port, we assume it's your storybook, instead of requiring you to pass `-S/--do-not-start`.
226
227- Add a new flag `--preserve-missing` which means any stories that are missing from the last build will be assumed to be unchanged. Use this if you are doing tricky things around dynamically building your Storybook based on code changes.
228
229# 1.2.6 - 2019-02-05
230
231- Fix an issue with Angular/zone.js failing to patch our `MutationObserver` mock
232
233# 1.2.5 - 2019-01-30
234
235- Fix an issue with using `isChromatic()` inside Jest (storyshots).
236
237- Some rendering timing fixes to better support Storybook version 5
238
239# 1.2.4 - 2019-01-18
240
241- Added an export `isChromatic()` to determine if code is running under test.
242
243- Added JSDOM mocks for `CreateObjectUrl` and `MutationObserver`
244
245- Added a parameter `{ chromatic: { disable: true } }` to skip a story in chromatic
246
247- Added a parameter `{ chromatic: { noScroll: true } }` to avoid scrolling screenshots in (non-chrome) browsers.
248
249# 1.2.3 - 2018-12-28
250
251- Allow overwriting the polyfills we create in JSDOM mode. (This is a bugfix for some libraries that bundle their own polyfills).
252
253# 1.2.2 - 2018-12-10
254
255- Allow controlling package initialization timing via `import configure from 'storybook-chromatic/configure'; configure()`
256
257- Add a flag `--ignore-last-build-on-branch=X` to not use the last build on a branch no matter what (which helps with rebasing, see: http://chromatic.com/docs/branching-and-baselines#rebasing).
258
259# 1.2.1 - 2018-12-04
260
261- Update logging dependency from `loggly` to `node-loggly-bulk` due to security vulnerabilities.
262 NOTE: this package was only used by our CLI tool and so there is no need for concern, but this new version should avoid tripping security tools.
263
264# 1.2.0 - 2018-10-29
265
266- Pass `chromatic` parameters from Storybook@4, supporting:
267
268 - Viewports: http://chromatic.com/docs/viewports
269 - Delay: http://chromatic.com/docs/delay
270
271- Better logging from the package to allow us to debug build problems.
272
273- Fix regression for node v6
274
275- Fix for supporting stories that use Canvas APIs in JSDOM
276
277# 1.1.0 - 2018-10-15
278
279- Fix to work on Windows CI
280
281- Added a `--storybook-build-dir` parameter that allows you to upload a pre-built storybook.
282
283# 1.0.2 - 2018-08-23
284
285- Fix a bug with Live View and Storybook@3.4
286
287# 1.0.1 - 2018-07-26
288
289- We now set the `CHROMATIC_APP_CODE` variable for you, with explicit instructions to remove it (and set via CI) in less secure applications.
290
291- Some small bugfixes to support unusual usages.
292
293# 1.0.0 - 2018-07-02
294
295- Renamed the package from `react-chromatic` to `storybook-chromatic`, to indicate support for all view layers that Storybook supports!
296
297- Tweaked to focus soley on Storybook -- simply `import 'storybook-chromatic';` (no `/storybook-addon` required). Run tests with `chromatic test --app-code` (no `--storybook-addon` required).
298
299- Changed some URL parameters for the test command:
300
301 - `--port` renamed `--storybook-port`
302 - `--url` renamed `--storybook-url`
303 - `--app-path` removed (it's always `/iframe.html`, as per Storybook).
304 - `--exec` added to run arbitrary commands as an alternative to `--script-name`
305 - `--no-interactive` added to disable interactive mode (and we do so automatically when on CI)
306
307- We no longer require you to have npm installed if you are using yarn.
308
309- Small bug fixes for missing git repositories, various failure modes.
310
311- We now track your Storybook version and view layer so we know when to ship/change features.
312
313# As `react-chromatic`
314
315# 0.8.4 - 2018-06-07
316
317- Fix an issue for stories that use `navigator.mimeTypes`
318
319# 0.8.3 - 2018-04-26
320
321- Fix a bug where sometimes the package did not detect the checked out branch.
322
323# 0.8.2 - 2018-04-18
324
325- Better support for rebasing branches - we now always treat the last build on this branch as a baseline, even if strictly it is not a git ancestor of the current commit. This helps deal with the situation where you rebase a branch off master, and still want to use the previously approved snapshots.
326
327- Improved support for CI systems, especially _Netlify_ and _Travis PR builds_. Travis PR builds are a special case, read more about how to handle them in Chromatic here: https://www.chromatic.com/docs/ci#travis
328
329# 0.8.1 - 2018-03-28
330
331- Fix a small bug in the git algorithm for old Chromatic projects.
332
333# 0.8.0 - 2018-03-28
334
335- Reworked the git baseline detection algorithm to use a different technique that should be more reliable across many different modes of usage.
336
337- Gather stories from Storybook 3.4 without requiring direct installation.
338
339- Added `--auto-accept-changes` to avoid approvals on certain branches
340
341- Added `--only` flag to run a single story
342
343# 0.7.11 - 2018-03-15
344
345- Handle the case where the last few Chromatic builds were run against commits which are no longer in the repository (due to rebasing or squashing). This could cause the tool to crash or fail to find a baseline for a build.
346
347- Add a `--url` argument to allow running tests against arbitrary running apps.
348
349# 0.7.10 - 2018-02-22
350
351- Small API change for querying build change counts.
352
353# 0.7.9 - 2018-01-23
354
355- Our test script now warns you if your Storybook logs any errors. This can sometimes help reveal subtle problems that are caused by the script evaluating your Storybook in JSDOM. If you have legitimate things logged to `console.error` this may cause noise---you should probably get rid of them.
356
357# 0.7.8 - 2018-01-18
358
359- We no longer write your app code to your `package.json` by default; instead we prefer you pass it via the `CHROMATIC_APP_CODE` environment variable. (You can still optionally use `--app-code=xyz` if you are comfortable with the security of your `package.json`).
360
361- We now show the final part of your Story's kind as the component name in the Chromatic UI. So "Webapp/UserList" will appear in Chromatic as "UserList".
362
363# 0.7.7 - 2017-12-21
364
365- This version sends us a little more information about the environment the package runs in -- is it CI? which package version?
366
367# 0.7.6 - 2017-12-19
368
369- Fix an issue where we did not pass the context to stories in the right format.
370
371# 0.7.5 - 2017-12-19
372
373- We detect a running process on your app's port and don't try and start the app if so. Pass `--do-not-start` if you've already started the app.
374
375# 0.7.3 - 2017-12-09
376
377- We now upload your application bundle to our tunnel server directly from the package.
378 This means that on slower uplinks, we no need to set arbitrary timeouts in our server process; instead we simply will not start your Chromatic build until we've verified the bundle has uploaded successfully.