UNPKG

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