storybook-addon-vis 4.3.3 → 4.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1406 -0
- package/package.json +4 -3
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,1406 @@
|
|
|
1
|
+
# CHANGE LOG
|
|
2
|
+
|
|
3
|
+
## 4.3.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#947](https://github.com/repobuddy/visual-testing/pull/947) [`25d682c`](https://github.com/repobuddy/visual-testing/commit/25d682c8aa740a93b0e7a38a74d162b59d479b56) Thanks [@unional](https://github.com/unional)! - Include `CHANGELOG.md` in the published package.
|
|
8
|
+
- Updated dependencies [[`25d682c`](https://github.com/repobuddy/visual-testing/commit/25d682c8aa740a93b0e7a38a74d162b59d479b56)]:
|
|
9
|
+
- vitest-plugin-vis@5.2.1
|
|
10
|
+
|
|
11
|
+
## 4.3.3
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- [#920](https://github.com/repobuddy/visual-testing/pull/920) [`6c2e58e`](https://github.com/repobuddy/visual-testing/commit/6c2e58e33effd2b74b0156677f5520c6e633ba46) Thanks [@unional](https://github.com/unional)! - When an image snapshot mismatches, find the changed regions and write a review image.
|
|
16
|
+
|
|
17
|
+
The failure message now lists the changed regions (`Changed:`) and points to a review image (`Review:`).
|
|
18
|
+
The review image (`<name>.review.png`, next to the diff) places the baseline, result, and diff crops of each region side by side,
|
|
19
|
+
so a person or a coding agent can see what changed without opening the full images.
|
|
20
|
+
The regions are also written to `<name>.regions.json` next to the diff.
|
|
21
|
+
The review image is skipped, and the message says why, when the image size changed, there are more than 5 regions, or the regions cover more than half of the image.
|
|
22
|
+
|
|
23
|
+
Set `reviewImage: false` in `vis()` or `toMatchImageSnapshot()` to not write the review image.
|
|
24
|
+
|
|
25
|
+
The Storybook Vis panel does not list the review image as a diff.
|
|
26
|
+
|
|
27
|
+
- [#926](https://github.com/repobuddy/visual-testing/pull/926) [`013d9b6`](https://github.com/repobuddy/visual-testing/commit/013d9b619be2263bd44f0b4f10a9f9b6beaaa66b) Thanks [@unional](https://github.com/unional)! - Ship an `llms.txt` in each package so coding agents can find the entry points and documentation pages.
|
|
28
|
+
It points agents to the new "Reviewing Failures with Agents" page, which tells them to open the review image of a failed image snapshot first, and shows what each view costs in tokens.
|
|
29
|
+
|
|
30
|
+
Each package is also an agent plugin for Claude Code, Cursor, Codex and Copilot CLI.
|
|
31
|
+
It ships the `review-image-snapshot-failures` skill, which tells an agent to read the error message and the review image before it opens a full image.
|
|
32
|
+
|
|
33
|
+
- [#946](https://github.com/repobuddy/visual-testing/pull/946) [`65e4177`](https://github.com/repobuddy/visual-testing/commit/65e417723162b80d82a807194bd6336d3f575202) Thanks [@dub578](https://github.com/dub578)! - Decode images in `toImageData` with `createImageBitmap` and close the bitmap after reading the pixels.
|
|
34
|
+
|
|
35
|
+
`new Image()` + `drawImage` left a full-size decode in Chromium's image decode cache for every compared image,
|
|
36
|
+
so renderer memory grew with each image snapshot comparison.
|
|
37
|
+
- Updated dependencies [[`6c2e58e`](https://github.com/repobuddy/visual-testing/commit/6c2e58e33effd2b74b0156677f5520c6e633ba46), [`013d9b6`](https://github.com/repobuddy/visual-testing/commit/013d9b619be2263bd44f0b4f10a9f9b6beaaa66b), [`65e4177`](https://github.com/repobuddy/visual-testing/commit/65e417723162b80d82a807194bd6336d3f575202)]:
|
|
38
|
+
- vitest-plugin-vis@5.2.0
|
|
39
|
+
|
|
40
|
+
## 4.3.2
|
|
41
|
+
|
|
42
|
+
### Patch Changes
|
|
43
|
+
|
|
44
|
+
- [#904](https://github.com/repobuddy/visual-testing/pull/904) [`fd37087`](https://github.com/repobuddy/visual-testing/commit/fd37087fea1b43eb6114d05cfda1fc9535dd00d5) Thanks [@unional](https://github.com/unional)! - Update `type-plus` to 8.0.0.
|
|
45
|
+
- Updated dependencies [[`fd37087`](https://github.com/repobuddy/visual-testing/commit/fd37087fea1b43eb6114d05cfda1fc9535dd00d5)]:
|
|
46
|
+
- vitest-plugin-vis@5.1.8
|
|
47
|
+
|
|
48
|
+
## 4.3.1
|
|
49
|
+
|
|
50
|
+
### Patch Changes
|
|
51
|
+
|
|
52
|
+
- [#889](https://github.com/repobuddy/visual-testing/pull/889) [`b770cfe`](https://github.com/repobuddy/visual-testing/commit/b770cfe37da3161c393d6414cea202fe33114b34) Thanks [@unional](https://github.com/unional)! - Fix auto snapshots hanging until the test timeout when `subject` matches a hidden element.
|
|
53
|
+
|
|
54
|
+
The `subject` selector was resolved with `document.querySelector()`, which returns the first match even when it is hidden. In Storybook, a selector such as `button` matched hidden buttons that Storybook adds to the document, so the screenshot waited for that element to become visible until the timeout. Auto snapshots now use the first visible match.
|
|
55
|
+
|
|
56
|
+
If the selector matches only hidden elements, the snapshot now fails right away with a "not visible" error instead of waiting until the timeout. If it matches nothing, `document.body` is still used.
|
|
57
|
+
|
|
58
|
+
- [#890](https://github.com/repobuddy/visual-testing/pull/890) [`affac03`](https://github.com/repobuddy/visual-testing/commit/affac0311460f56d3d1c951b6d178445a73fd790) Thanks [@unional](https://github.com/unional)! - Trim leading and trailing whitespace from test and suite names when building the snapshot path ([#847](https://github.com/repobuddy/visual-testing/issues/847)).
|
|
59
|
+
|
|
60
|
+
Storybook appends two spaces to the `describe` title it generates for a CSF Next story that uses `story.test()`. Those spaces became two dashes in the snapshot folder name, so the snapshots landed under `<story>--/`.
|
|
61
|
+
|
|
62
|
+
Snapshots of `story.test()` stories now land under `<story>/`. Move or regenerate the existing baselines from `<story>--/` to `<story>/`. Snapshot paths of plain stories and regular tests do not change.
|
|
63
|
+
- Updated dependencies [[`b770cfe`](https://github.com/repobuddy/visual-testing/commit/b770cfe37da3161c393d6414cea202fe33114b34), [`affac03`](https://github.com/repobuddy/visual-testing/commit/affac0311460f56d3d1c951b6d178445a73fd790)]:
|
|
64
|
+
- vitest-plugin-vis@5.1.7
|
|
65
|
+
|
|
66
|
+
## 4.3.0
|
|
67
|
+
|
|
68
|
+
### Minor Changes
|
|
69
|
+
|
|
70
|
+
- [#887](https://github.com/repobuddy/visual-testing/pull/887) [`7bc7aee`](https://github.com/repobuddy/visual-testing/commit/7bc7aee0dc9ffc610f7b818898cd00f8031ece37) Thanks [@unional](https://github.com/unional)! - Export `cdp`, a proxy of `cdp()` from `vitest/browser` that is safe to import from stories.
|
|
71
|
+
|
|
72
|
+
Importing `vitest/browser` directly in a story throws in a plain Storybook preview and blanks the story. `cdp` loads it only during a Vitest browser run, like the existing `page` and `commands` proxies, and session calls made before the import settles wait for it. Calling `cdp()` outside a Vitest browser run throws.
|
|
73
|
+
|
|
74
|
+
CDP is available only with the Playwright provider on Chromium.
|
|
75
|
+
|
|
76
|
+
## 4.2.9
|
|
77
|
+
|
|
78
|
+
### Patch Changes
|
|
79
|
+
|
|
80
|
+
- [#885](https://github.com/repobuddy/visual-testing/pull/885) [`b674dfe`](https://github.com/repobuddy/visual-testing/commit/b674dfe38412b252f0b6a5a79cbcce4183b17a8f) Thanks [@unional](https://github.com/unional)! - Update `type-plus` to `8.0.0-beta.12`.
|
|
81
|
+
|
|
82
|
+
`type-plus` 8.0.0-beta.12 no longer exports the distributive `Pick` and `Omit` from its root.
|
|
83
|
+
The public types now use `ObjectPlus.Pick` and `ObjectPlus.Omit`, which behave the same.
|
|
84
|
+
- Updated dependencies [[`b674dfe`](https://github.com/repobuddy/visual-testing/commit/b674dfe38412b252f0b6a5a79cbcce4183b17a8f)]:
|
|
85
|
+
- vitest-plugin-vis@5.1.6
|
|
86
|
+
|
|
87
|
+
## 4.2.8
|
|
88
|
+
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- [#870](https://github.com/repobuddy/visual-testing/pull/870) [`5c2970c`](https://github.com/repobuddy/visual-testing/commit/5c2970c8f2069512dc136ca9e5edd25def39f7db) Thanks [@unional](https://github.com/unional)! - Pin `type-plus` to `8.0.0-beta.10`, exactly.
|
|
92
|
+
|
|
93
|
+
Both packages already declared `type-plus: ^8.0.0-beta.10` in the last published release
|
|
94
|
+
(`storybook-addon-vis@4.2.7`, `vitest-plugin-vis@5.1.4`), so this is a range tightening,
|
|
95
|
+
not a version move: `type-plus` 8's `typescript >= 5.6.0` peer already reaches consumers
|
|
96
|
+
today, and this change does not alter what a fresh install resolves — it only forecloses
|
|
97
|
+
later `8.0.0-beta.x` prereleases plus `8.0.0` and `8.1.0`.
|
|
98
|
+
|
|
99
|
+
The version is pinned rather than caret-ranged. `^8.0.0-beta.10` resolves to
|
|
100
|
+
`>=8.0.0-beta.10 <9.0.0-0`, which admits every later 8.0.0 prerelease as well as `8.0.0`
|
|
101
|
+
and `8.1.0` — and 8 is a prerelease line where breaking changes land between betas
|
|
102
|
+
(beta.10 to beta.11 changed `Equal`'s signature and removed `isType.f`). An exact version
|
|
103
|
+
makes each bump a reviewable PR instead of something a lockfile refresh can do silently.
|
|
104
|
+
Move back to a caret when 8.0.0 is stable.
|
|
105
|
+
|
|
106
|
+
`type-plus` types leak into each package's emitted declarations:
|
|
107
|
+
`storybook-addon-vis`'s `dist/exports/vitest-plugin.d.mts` imports `Omit` from
|
|
108
|
+
`type-plus`; `vitest-plugin-vis`'s `dist/shared/commands.types.d.mts` and
|
|
109
|
+
`dist/server/testing/stubSuite.d.mts` import `Pick` and `RecursivePartial`. None of
|
|
110
|
+
these symbols changed between 7 and 8, so no source change was needed.
|
|
111
|
+
- Updated dependencies [[`5c2970c`](https://github.com/repobuddy/visual-testing/commit/5c2970c8f2069512dc136ca9e5edd25def39f7db)]:
|
|
112
|
+
- vitest-plugin-vis@5.1.5
|
|
113
|
+
|
|
114
|
+
## 4.2.7
|
|
115
|
+
|
|
116
|
+
### Patch Changes
|
|
117
|
+
|
|
118
|
+
- [#861](https://github.com/repobuddy/visual-testing/pull/861) [`ee4464a`](https://github.com/repobuddy/visual-testing/commit/ee4464a4ef9e407d8e99c2abcf3387e0e1750b91) Thanks [@unional](https://github.com/unional)! - Depend on `type-plus` `^8.0.0-beta.10` — back on the 8.x line, as a range.
|
|
119
|
+
|
|
120
|
+
The previous release moved both packages to `^7.6.2`. That was the wrong fix.
|
|
121
|
+
These packages belong on the 8.x line; what was actually broken was that the
|
|
122
|
+
dependency was an *exact* pin (`8.0.0-beta.8`), so it could never resolve
|
|
123
|
+
forward and consumers were stuck on a build with a real CJS packaging defect:
|
|
124
|
+
`8.0.0-beta.8` declares `"type": "module"` but ships a `cjs/` build with no
|
|
125
|
+
`{"type":"commonjs"}` marker, so `require()` of these packages failed with
|
|
126
|
+
`ReferenceError: exports is not defined in ES module scope`.
|
|
127
|
+
|
|
128
|
+
`type-plus@8.0.0-beta.10` ships that `cjs/package.json` marker and fixes it. The
|
|
129
|
+
dependency is now the range `^8.0.0-beta.10` rather than a pin, so later 8.x
|
|
130
|
+
betas and stable 8.x flow in on their own instead of freezing at one build.
|
|
131
|
+
|
|
132
|
+
The root barrel of `8.0.0-beta.10` is byte-identical to `8.0.0-beta.8`'s, so
|
|
133
|
+
there is no API change between the two. The local `Merge` alias in
|
|
134
|
+
`vis_server_context.types.ts` stays as-is; it is version-independent.
|
|
135
|
+
- Updated dependencies [[`ee4464a`](https://github.com/repobuddy/visual-testing/commit/ee4464a4ef9e407d8e99c2abcf3387e0e1750b91)]:
|
|
136
|
+
- vitest-plugin-vis@5.1.4
|
|
137
|
+
|
|
138
|
+
## 4.2.6
|
|
139
|
+
|
|
140
|
+
### Patch Changes
|
|
141
|
+
|
|
142
|
+
- Updated dependencies [[`62026f5`](https://github.com/repobuddy/visual-testing/commit/62026f5bca4718b34d53495e2934f62645a20d66)]:
|
|
143
|
+
- vitest-plugin-vis@5.1.3
|
|
144
|
+
|
|
145
|
+
## 4.2.5
|
|
146
|
+
|
|
147
|
+
### Patch Changes
|
|
148
|
+
|
|
149
|
+
- [#849](https://github.com/repobuddy/visual-testing/pull/849) [`f450ead`](https://github.com/repobuddy/visual-testing/commit/f450eadb54ea9daf9ce62a227c782b39bf834573) Thanks [@unional](https://github.com/unional)! - Wait for the vitest browser modules before using them.
|
|
150
|
+
|
|
151
|
+
`commands` and `page` are backed by a dynamic import that nothing awaited, so a
|
|
152
|
+
hook reading `commands.setupVisSuite` before it settled got `undefined` and
|
|
153
|
+
failed with `commands.setupVisSuite is not a function` — inside a genuine vitest
|
|
154
|
+
browser run. Command reads now return a function that waits for the import, and
|
|
155
|
+
the addon's `beforeAll` awaits the module load before touching `page` or the
|
|
156
|
+
current test.
|
|
157
|
+
|
|
158
|
+
- [`6697a67`](https://github.com/repobuddy/visual-testing/commit/6697a67b874c3943098af77539285f0b92a159ec) Thanks [@unional](https://github.com/unional)! - Raise dependency floors to pull in security fixes.
|
|
159
|
+
|
|
160
|
+
`glob`, `rimraf`, `pathe`, `dedent`, `is-ci`, and `pixelmatch` move up within
|
|
161
|
+
their existing major, which resolves the advisories reaching the runtime
|
|
162
|
+
dependency tree through `brace-expansion` and `tmp`. No API change.
|
|
163
|
+
|
|
164
|
+
- [#858](https://github.com/repobuddy/visual-testing/pull/858) [`6f65e20`](https://github.com/repobuddy/visual-testing/commit/6f65e206ab222bbf24f7acdf5e9f4df560d5d442) Thanks [@unional](https://github.com/unional)! - Depend on the stable `type-plus` line instead of an 8.x prerelease.
|
|
165
|
+
|
|
166
|
+
Both packages carried `"type-plus": "8.0.0-beta.8"` as an exact pin in their
|
|
167
|
+
runtime `dependencies`. `type-plus@latest` is deliberately `7.6.2`; the 8.x line
|
|
168
|
+
is an unfinished major parked in prerelease. The exact pin forced every consumer
|
|
169
|
+
to install that prerelease, and consumers that also depend on something else
|
|
170
|
+
pinning a different 8.x beta resolved two copies of `type-plus`. The pin now
|
|
171
|
+
reads `^7.6.2`.
|
|
172
|
+
|
|
173
|
+
The only type this needed that 7.x does not export from its root is `Merge`, so
|
|
174
|
+
`Merge` is now declared locally in `vis_server_context.types.ts`. Emitted output
|
|
175
|
+
is otherwise byte-for-byte identical to the build under `8.0.0-beta.8`: the sole
|
|
176
|
+
difference in `dist` is that one alias moving from an import into the file. No
|
|
177
|
+
API change.
|
|
178
|
+
- Updated dependencies [[`5364614`](https://github.com/repobuddy/visual-testing/commit/5364614b07e8301250922c190b621300e86ba4fd), [`6697a67`](https://github.com/repobuddy/visual-testing/commit/6697a67b874c3943098af77539285f0b92a159ec), [`6f65e20`](https://github.com/repobuddy/visual-testing/commit/6f65e206ab222bbf24f7acdf5e9f4df560d5d442)]:
|
|
179
|
+
- vitest-plugin-vis@5.1.2
|
|
180
|
+
|
|
181
|
+
## 4.2.4
|
|
182
|
+
|
|
183
|
+
### Patch Changes
|
|
184
|
+
|
|
185
|
+
- [#836](https://github.com/repobuddy/visual-testing/pull/836) [`e135d00`](https://github.com/repobuddy/visual-testing/commit/e135d0086a4e20008edb88f65946f1ab8cc47500) Thanks [@unional](https://github.com/unional)! - Gate the auto-snapshot hooks on the Vitest browser global instead of a general test-environment check.
|
|
186
|
+
|
|
187
|
+
`beforeAll` and `beforeEach` guarded on `isRunningInTest()` from `@repobuddy/test`, which treats any
|
|
188
|
+
`HeadlessChrome` user agent as a test run. Browsing Storybook with a headless browser — driving it
|
|
189
|
+
with Playwright to debug a story, for example — therefore entered the snapshot setup path, where the
|
|
190
|
+
`vitest/browser` command proxy is empty, and failed with `commands.setupVisSuite is not a function`
|
|
191
|
+
so the preview never rendered.
|
|
192
|
+
|
|
193
|
+
Both hooks now check `__vitest_browser__`, the same signal the command proxy itself uses, so they
|
|
194
|
+
run exactly when the Vitest commands they depend on are present. This also covers a non-browser
|
|
195
|
+
Vitest run (jsdom or node), which passed the old guard and hit the same empty proxy.
|
|
196
|
+
|
|
197
|
+
`@repobuddy/test` is no longer a runtime dependency of this package.
|
|
198
|
+
|
|
199
|
+
## 4.2.3
|
|
200
|
+
|
|
201
|
+
### Patch Changes
|
|
202
|
+
|
|
203
|
+
- [`ebdbc5b`](https://github.com/repobuddy/visual-testing/commit/ebdbc5b54b6cf3ba9943230fb074a6415cec3b26) Thanks [@unional](https://github.com/unional)! - Fix `addonVis(options)` type to includes `tags: string[]`.
|
|
204
|
+
|
|
205
|
+
- [`50d0be7`](https://github.com/repobuddy/visual-testing/commit/50d0be76dbf8e812746bc55abfa7d0cb83840ff2) Thanks [@unional](https://github.com/unional)! - Skip vis suite setup when not running in test
|
|
206
|
+
|
|
207
|
+
- [`c5d1353`](https://github.com/repobuddy/visual-testing/commit/c5d13531cdc467595688005980ec4e9c4cdf0663) Thanks [@unional](https://github.com/unional)! - Should not add `snapshot` tag if `auto` is not `true`.
|
|
208
|
+
|
|
209
|
+
- [`f67866f`](https://github.com/repobuddy/visual-testing/commit/f67866f0b43caeeda492d916c8650d6365e273de) Thanks [@unional](https://github.com/unional)! - Fix `defineStorybookVis` returning a `file://` URL instead of a filesystem path.
|
|
210
|
+
|
|
211
|
+
`import.meta.resolve` returns a `file://` URL, which `path.join` corrupts when appending `preset` — collapsing `file:///` to `file:/`. Storybook's resolver then silently fails to find `preset.js`, so the addon's `experimental_serverChannel` was never registered and snapshot images never loaded. Wrapping the result with `fileURLToPath` produces a plain filesystem path that resolves correctly.
|
|
212
|
+
|
|
213
|
+
- [`e4bf5b0`](https://github.com/repobuddy/visual-testing/commit/e4bf5b076f41aea2277aa17d219352cad116aca1) Thanks [@unional](https://github.com/unional)! - Register `toMatchImageSnapshot` at module load time so it is available in Storybook dev mode.
|
|
214
|
+
|
|
215
|
+
- Updated dependencies [[`581c416`](https://github.com/repobuddy/visual-testing/commit/581c41605e12c06ad0ec4395c3a4f33dc411dc8f)]:
|
|
216
|
+
- vitest-plugin-vis@5.1.1
|
|
217
|
+
|
|
218
|
+
## 4.2.2
|
|
219
|
+
|
|
220
|
+
### Patch Changes
|
|
221
|
+
|
|
222
|
+
- [#739](https://github.com/repobuddy/visual-testing/pull/739) [`66599bc`](https://github.com/repobuddy/visual-testing/commit/66599bc2a3dd3752fe0cb317d9771359cdd8d547) Thanks [@unional](https://github.com/unional)! - Make sure the `visAnnotation.beforeEach` do anything only when it is running in test.
|
|
223
|
+
|
|
224
|
+
## 4.2.1
|
|
225
|
+
|
|
226
|
+
### Patch Changes
|
|
227
|
+
|
|
228
|
+
- [`2370652`](https://github.com/repobuddy/visual-testing/commit/2370652c41be4ddf9dec78a32437e5bf359dceaa) Thanks [@unional](https://github.com/unional)! - Fix manager reference
|
|
229
|
+
|
|
230
|
+
## 4.2.0
|
|
231
|
+
|
|
232
|
+
### Minor Changes
|
|
233
|
+
|
|
234
|
+
- [`4bead0a`](https://github.com/repobuddy/visual-testing/commit/4bead0ac9119f3704a44b3355b4ddc2cd6828dcb) Thanks [@unional](https://github.com/unional)! - Export `visAnnotations` from the main package index and move `expect.extend({ toMatchImageSnapshot })` from a module-level side effect to lazy initialization inside `visAnnotations.beforeEach()`.
|
|
235
|
+
|
|
236
|
+
Previously, importing `storybook-addon-vis` or `storybook-addon-vis/vitest-setup` would immediately call `expect.extend` as a side effect. Now the extension is deferred until `visAnnotations.beforeEach()` runs, ensuring it only executes when `storybook/test` is initialized.
|
|
237
|
+
|
|
238
|
+
## 4.1.0
|
|
239
|
+
|
|
240
|
+
### Minor Changes
|
|
241
|
+
|
|
242
|
+
- [#723](https://github.com/repobuddy/visual-testing/pull/723) [`69cde31`](https://github.com/repobuddy/visual-testing/commit/69cde31906e8f4c4ae9a8f7c331ca434e1b7d758) Thanks [@unional](https://github.com/unional)! - Add `createMissingBaseline` for image matchers so a missing baseline can be written without `-u` / `updateSnapshot: 'all'`, and support `vis.setup({ createMissingBaseline: true })` defaults for auto snapshots (overridable per test). Document Storybook Vitest browser limitations for `createMissingBaseline` and the `updateSnapshot` workaround.
|
|
243
|
+
|
|
244
|
+
- [#723](https://github.com/repobuddy/visual-testing/pull/723) [`fc139fd`](https://github.com/repobuddy/visual-testing/commit/fc139fdca660e203b4126e0d3d791e7ed1eca867) Thanks [@unional](https://github.com/unional)! - Add opt-in `shortenLongSnapshotPaths` to `vis()`: when enabled, if representative **absolute** snapshot paths under `__baselines__` (after `snapshotRootDir` and `snapshotSubpath`) would exceed Windows-safe limits (250 characters or a path segment over 255), keep subpath directories and shorten only the final component to `{firstToken}-{hash12}{ext}` (tersify-style prefix); legacy `taskId-key.png` names are unchanged. Fix `getVisOption` to merge `__default` plugin options with the active Vitest project. Storybook `visProjects` may set `shortenLongSnapshotPaths` for the Vis panel (same semantics as Vitest `vis()`). Export `resolveSnapshotSubpathWithinLimits` from `vitest-plugin-vis/server-utils`. `vitest-plugin-vis/testing` is browser-safe (fixtures only). `getVisOption` and `stubSuite` are available from `vitest-plugin-vis/testing/node` for Node/Vitest project tests.
|
|
245
|
+
|
|
246
|
+
### Patch Changes
|
|
247
|
+
|
|
248
|
+
- Updated dependencies [[`69cde31`](https://github.com/repobuddy/visual-testing/commit/69cde31906e8f4c4ae9a8f7c331ca434e1b7d758), [`fc139fd`](https://github.com/repobuddy/visual-testing/commit/fc139fdca660e203b4126e0d3d791e7ed1eca867)]:
|
|
249
|
+
- vitest-plugin-vis@5.1.0
|
|
250
|
+
|
|
251
|
+
## 4.0.0
|
|
252
|
+
|
|
253
|
+
### Major Changes
|
|
254
|
+
|
|
255
|
+
- [#711](https://github.com/repobuddy/visual-testing/pull/711) [`b4c34dc`](https://github.com/repobuddy/visual-testing/commit/b4c34dc9ca71206901811074b92dfd57e7a636ba) Thanks [@unional](https://github.com/unional)! - Remove deprecated setup APIs and align with Vitest 4.
|
|
256
|
+
|
|
257
|
+
- **BREAKING:** `createVis` is no longer re-exported from `vitest-plugin-vis/setup`. Import it from `vitest-plugin-vis/setup-api` instead.
|
|
258
|
+
- **BREAKING:** Removed deprecated `vis.presets`, `vis.beforeAll`, and `vis.afterEach` helpers from the object returned by `createVis`. Use `vis.setup()` (and `autoSnapshotMatcher` where you need per-theme snapshots) instead.
|
|
259
|
+
- **BREAKING:** Config preset `none` is renamed to `custom`.
|
|
260
|
+
- **BREAKING:** Removed the `vitest-plugin-vis/presets/enable` entry point; use the `manual` or `auto` preset, or `custom` with your own `vitest.setup.ts`.
|
|
261
|
+
- **BREAKING:** Browser helpers now rely on Vitest 4’s `TestRunner.getCurrentTest` / `getCurrentSuite` (via `vitest` instead of `vitest/suite`). Requires Vitest 4+ in browser projects.
|
|
262
|
+
|
|
263
|
+
### Patch Changes
|
|
264
|
+
|
|
265
|
+
- [`397cbe6`](https://github.com/repobuddy/visual-testing/commit/397cbe67219fac3416f8e4113464071c473f217e) Thanks [@unional](https://github.com/unional)! - Remove usage of deprecated `IconButton`.
|
|
266
|
+
|
|
267
|
+
- Updated dependencies [[`b4c34dc`](https://github.com/repobuddy/visual-testing/commit/b4c34dc9ca71206901811074b92dfd57e7a636ba)]:
|
|
268
|
+
- vitest-plugin-vis@5.0.0
|
|
269
|
+
|
|
270
|
+
## 3.1.5
|
|
271
|
+
|
|
272
|
+
### Patch Changes
|
|
273
|
+
|
|
274
|
+
- Updated dependencies [[`494a8c7`](https://github.com/repobuddy/visual-testing/commit/494a8c70d032c76851d8f6a476480ebaab5a4a76)]:
|
|
275
|
+
- vitest-plugin-vis@4.2.2
|
|
276
|
+
|
|
277
|
+
## 3.1.4
|
|
278
|
+
|
|
279
|
+
### Patch Changes
|
|
280
|
+
|
|
281
|
+
- Updated dependencies [[`76faffe`](https://github.com/repobuddy/visual-testing/commit/76faffefe67cd17bee0f5627f51d71e1fa1322ad)]:
|
|
282
|
+
- vitest-plugin-vis@4.2.1
|
|
283
|
+
|
|
284
|
+
## 3.1.3
|
|
285
|
+
|
|
286
|
+
### Patch Changes
|
|
287
|
+
|
|
288
|
+
- Updated dependencies [[`ad87b83`](https://github.com/repobuddy/visual-testing/commit/ad87b8399a5a5d881aa030e47f4684760b1733a0), [`d0c04d0`](https://github.com/repobuddy/visual-testing/commit/d0c04d0aca1ec6c1deebc0a26d86f1986b1c07d1), [`495d10c`](https://github.com/repobuddy/visual-testing/commit/495d10cfa4c454b351a7c4f8ef33104829a0f560), [`ab4ca8a`](https://github.com/repobuddy/visual-testing/commit/ab4ca8ac669b5d50d1e4d892fa6c5927b77e7f9d), [`7ceb998`](https://github.com/repobuddy/visual-testing/commit/7ceb99899830a48ef99c2c3ea0b6d4b760be9df9), [`1c54a56`](https://github.com/repobuddy/visual-testing/commit/1c54a56baa1136c49eccefe8d7cf0de0332441cf)]:
|
|
289
|
+
- vitest-plugin-vis@4.2.0
|
|
290
|
+
|
|
291
|
+
## 3.1.2
|
|
292
|
+
|
|
293
|
+
### Patch Changes
|
|
294
|
+
|
|
295
|
+
- [#533](https://github.com/repobuddy/visual-testing/pull/533) [`015f203`](https://github.com/repobuddy/visual-testing/commit/015f203377ef62b8a5299ba52c7bd755fcc13ced) Thanks [@unional](https://github.com/unional)! - Move React logic to the panel component.
|
|
296
|
+
This avoids the `invalid hook call` error when using the panel with `@storybook/addon-docs` loaded in the same Storybook instance.
|
|
297
|
+
|
|
298
|
+
## 3.1.1
|
|
299
|
+
|
|
300
|
+
### Patch Changes
|
|
301
|
+
|
|
302
|
+
- [#530](https://github.com/repobuddy/visual-testing/pull/530) [`70b24a5`](https://github.com/repobuddy/visual-testing/commit/70b24a5f3dcec62bd22318a0e0404993e6e8c9ca) Thanks [@unional](https://github.com/unional)! - Downgrade Storybook from 10.2.0 alpha to 10.1.10.
|
|
303
|
+
10.2.0 seems to still take a while to be released.
|
|
304
|
+
|
|
305
|
+
## 3.1.0
|
|
306
|
+
|
|
307
|
+
### Minor Changes
|
|
308
|
+
|
|
309
|
+
- [#496](https://github.com/repobuddy/visual-testing/pull/496) [`bf7fcec`](https://github.com/repobuddy/visual-testing/commit/bf7fcecddbcef502fe71eb2c76217df7c8d037fa) Thanks [@unional](https://github.com/unional)! - Improve support for Storybook CSF Next.
|
|
310
|
+
The setup is now done in `.storybook/preview.ts` instead of `vitest.setup.ts`.
|
|
311
|
+
|
|
312
|
+
### Patch Changes
|
|
313
|
+
|
|
314
|
+
- [#496](https://github.com/repobuddy/visual-testing/pull/496) [`557b809`](https://github.com/repobuddy/visual-testing/commit/557b80995320e40a33cf5ca15e6a5705d775b02e) Thanks [@unional](https://github.com/unional)! - Handle case when `storyData` is `undefined`.
|
|
315
|
+
|
|
316
|
+
- Updated dependencies [[`ea6b3b2`](https://github.com/repobuddy/visual-testing/commit/ea6b3b2d9b343975849fb21b5b39a4f4c97b9b98)]:
|
|
317
|
+
- vitest-plugin-vis@4.1.0
|
|
318
|
+
|
|
319
|
+
## 3.0.1
|
|
320
|
+
|
|
321
|
+
### Patch Changes
|
|
322
|
+
|
|
323
|
+
- [#488](https://github.com/repobuddy/visual-testing/pull/488) [`479e214`](https://github.com/repobuddy/visual-testing/commit/479e21422882109efdb52d0867058ca6ad1855c7) Thanks [@unional](https://github.com/unional)! - Fix crash when running within Storybook.
|
|
324
|
+
|
|
325
|
+
## 3.0.0
|
|
326
|
+
|
|
327
|
+
### Major Changes
|
|
328
|
+
|
|
329
|
+
- [#467](https://github.com/repobuddy/visual-testing/pull/467) [`155fe43`](https://github.com/repobuddy/visual-testing/commit/155fe43b2ca233ab9267099b5f9e7b544827531f) Thanks [@unional](https://github.com/unional)! - Update to Storybook 10
|
|
330
|
+
|
|
331
|
+
### Minor Changes
|
|
332
|
+
|
|
333
|
+
- [#467](https://github.com/repobuddy/visual-testing/pull/467) [`6e9ed69`](https://github.com/repobuddy/visual-testing/commit/6e9ed6903e073858c18d4614d598599ce5096f51) Thanks [@unional](https://github.com/unional)! - Add `defineStorybookVis()`
|
|
334
|
+
|
|
335
|
+
### Patch Changes
|
|
336
|
+
|
|
337
|
+
- Updated dependencies [[`dcf08aa`](https://github.com/repobuddy/visual-testing/commit/dcf08aa537dd400dab80b642a74e61cfe1366b3b), [`660c153`](https://github.com/repobuddy/visual-testing/commit/660c153c38086773d45b81d529910474a07a6d30)]:
|
|
338
|
+
- vitest-plugin-vis@4.0.0
|
|
339
|
+
|
|
340
|
+
## 2.1.5
|
|
341
|
+
|
|
342
|
+
### Patch Changes
|
|
343
|
+
|
|
344
|
+
- [#476](https://github.com/repobuddy/visual-testing/pull/476) [`e14b67d`](https://github.com/repobuddy/visual-testing/commit/e14b67d8b209678cff57c1a4375160807908b46b) Thanks [@unional](https://github.com/unional)! - Use `jsx: react` instead of `jsx: react-jsx` to fix the `recentlyCreatedOwnerStacks` error when loading the addon panel.
|
|
345
|
+
|
|
346
|
+
- Updated dependencies [[`0ebfe75`](https://github.com/repobuddy/visual-testing/commit/0ebfe7578794d3f538392c5a20a65a814878f3bc)]:
|
|
347
|
+
- vitest-plugin-vis@3.5.1
|
|
348
|
+
|
|
349
|
+
## 2.1.4
|
|
350
|
+
|
|
351
|
+
### Patch Changes
|
|
352
|
+
|
|
353
|
+
- [#455](https://github.com/repobuddy/visual-testing/pull/455) [`b075e8e`](https://github.com/repobuddy/visual-testing/commit/b075e8e46ed6098f456c2c2ffab482d43f583cba) Thanks [@unional](https://github.com/unional)! - Fix types export for `storybook-addon-vis/vitest-plugin`.
|
|
354
|
+
|
|
355
|
+
## 2.1.3
|
|
356
|
+
|
|
357
|
+
### Patch Changes
|
|
358
|
+
|
|
359
|
+
- Updated dependencies [[`147858a`](https://github.com/repobuddy/visual-testing/commit/147858aff23a1fca22ae2bb3a453c7a8b4eb9e02)]:
|
|
360
|
+
- vitest-plugin-vis@3.5.0
|
|
361
|
+
|
|
362
|
+
## 2.1.2
|
|
363
|
+
|
|
364
|
+
### Patch Changes
|
|
365
|
+
|
|
366
|
+
- Updated dependencies [[`fff3b67`](https://github.com/repobuddy/visual-testing/commit/fff3b67613746f5ca48e3a7bfd988059ae8dd16b)]:
|
|
367
|
+
- vitest-plugin-vis@3.4.1
|
|
368
|
+
|
|
369
|
+
## 2.1.1
|
|
370
|
+
|
|
371
|
+
### Patch Changes
|
|
372
|
+
|
|
373
|
+
- Updated dependencies [[`30026e2`](https://github.com/repobuddy/visual-testing/commit/30026e2a1ac1aceed84cf35b5b13fcc565b39c25)]:
|
|
374
|
+
- vitest-plugin-vis@3.4.0
|
|
375
|
+
|
|
376
|
+
## 2.1.0
|
|
377
|
+
|
|
378
|
+
### Minor Changes
|
|
379
|
+
|
|
380
|
+
- [`05b7ae2`](https://github.com/repobuddy/visual-testing/commit/05b7ae26a604328831f9b3317c99c39bcf73ac93) Thanks [@unional](https://github.com/unional)! - Add CJS support for Storybook `.storybook/main.ts` usage.
|
|
381
|
+
|
|
382
|
+
## 2.0.7
|
|
383
|
+
|
|
384
|
+
### Patch Changes
|
|
385
|
+
|
|
386
|
+
- [`cb735b9`](https://github.com/repobuddy/visual-testing/commit/cb735b93422c254befd37a124785924502b99b5f) Thanks [@unional](https://github.com/unional)! - Revert importing `createVis` from `vitest-plugin-vis/client-api`.
|
|
387
|
+
`createVis` imports `vitest`, which cannot be imported in the client side.
|
|
388
|
+
- Updated dependencies [[`cb735b9`](https://github.com/repobuddy/visual-testing/commit/cb735b93422c254befd37a124785924502b99b5f)]:
|
|
389
|
+
- vitest-plugin-vis@3.3.2
|
|
390
|
+
|
|
391
|
+
## 2.0.6
|
|
392
|
+
|
|
393
|
+
### Patch Changes
|
|
394
|
+
|
|
395
|
+
- Updated dependencies [[`5b25658`](https://github.com/repobuddy/visual-testing/commit/5b256581ea5b41816c72bbd25a1271da2c258bd1)]:
|
|
396
|
+
- vitest-plugin-vis@3.3.1
|
|
397
|
+
|
|
398
|
+
## 2.0.5
|
|
399
|
+
|
|
400
|
+
### Patch Changes
|
|
401
|
+
|
|
402
|
+
- [`e1eb154`](https://github.com/repobuddy/visual-testing/commit/e1eb1548c842a3041587bf2f51c54f5d8e83bca4) Thanks [@unional](https://github.com/unional)! - Hide `Vis Panel` on production build
|
|
403
|
+
|
|
404
|
+
## 2.0.4
|
|
405
|
+
|
|
406
|
+
### Patch Changes
|
|
407
|
+
|
|
408
|
+
- [#314](https://github.com/repobuddy/visual-testing/pull/314) [`9bf9224`](https://github.com/repobuddy/visual-testing/commit/9bf9224ff20ed03d378c78be0794a49d3cb9839b) Thanks [@unional](https://github.com/unional)! - Add `@storybook/addon-vitest` as peer dependency.
|
|
409
|
+
|
|
410
|
+
- Updated dependencies [[`090e613`](https://github.com/repobuddy/visual-testing/commit/090e61305e31c264bfec84a34ca42b702642f37d), [`4fb0a22`](https://github.com/repobuddy/visual-testing/commit/4fb0a22f63ab16e27594598e21e2ab7426727d07), [`150924d`](https://github.com/repobuddy/visual-testing/commit/150924d8ef44fb61002c1b58a1baf14277177a69)]:
|
|
411
|
+
- vitest-plugin-vis@3.3.0
|
|
412
|
+
|
|
413
|
+
## 2.0.3
|
|
414
|
+
|
|
415
|
+
### Patch Changes
|
|
416
|
+
|
|
417
|
+
- [#308](https://github.com/repobuddy/visual-testing/pull/308) [`d6e5979`](https://github.com/repobuddy/visual-testing/commit/d6e597906efcc1c5fa6383b365a0f9fdad4d792f) Thanks [@unional](https://github.com/unional)! - Update `preset.js` to ESM.
|
|
418
|
+
This fix the issue when running in Node 22.12+ where ESM is enabled by default.
|
|
419
|
+
|
|
420
|
+
## 2.0.2
|
|
421
|
+
|
|
422
|
+
### Patch Changes
|
|
423
|
+
|
|
424
|
+
- [#306](https://github.com/repobuddy/visual-testing/pull/306) [`4923c82`](https://github.com/repobuddy/visual-testing/commit/4923c82062bccab2e37863d9c193b96388c8c92d) Thanks [@unional](https://github.com/unional)! - Fix loading snapshots on Vis panel without options.
|
|
425
|
+
|
|
426
|
+
## 2.0.1
|
|
427
|
+
|
|
428
|
+
### Patch Changes
|
|
429
|
+
|
|
430
|
+
- [`a68f517`](https://github.com/repobuddy/visual-testing/commit/a68f517fddfb663dd3b313bcef975fc2393d52be) Thanks [@unional](https://github.com/unional)! - Remove `preview.js`.
|
|
431
|
+
|
|
432
|
+
## 2.0.0
|
|
433
|
+
|
|
434
|
+
### Major Changes
|
|
435
|
+
|
|
436
|
+
- [#297](https://github.com/repobuddy/visual-testing/pull/297) [`e71893a`](https://github.com/repobuddy/visual-testing/commit/e71893afed69d732f61a6daf166ff5a97e3c305e) Thanks [@unional](https://github.com/unional)! - Supports Storybook 9.0.0
|
|
437
|
+
|
|
438
|
+
## 1.1.0
|
|
439
|
+
|
|
440
|
+
### Minor Changes
|
|
441
|
+
|
|
442
|
+
- [#289](https://github.com/repobuddy/visual-testing/pull/289) [`2649ed1`](https://github.com/repobuddy/visual-testing/commit/2649ed17fb8f12870070d093b33a80006885fab9) Thanks [@unional](https://github.com/unional)! - Add `page.toMatchImageSnapshot()`.
|
|
443
|
+
|
|
444
|
+
### Patch Changes
|
|
445
|
+
|
|
446
|
+
- Updated dependencies [[`9ba3e59`](https://github.com/repobuddy/visual-testing/commit/9ba3e59dc6ecf4f2943200db6a51a07791ac5c6d)]:
|
|
447
|
+
- vitest-plugin-vis@3.1.0
|
|
448
|
+
|
|
449
|
+
## 1.0.2
|
|
450
|
+
|
|
451
|
+
### Patch Changes
|
|
452
|
+
|
|
453
|
+
- [#286](https://github.com/repobuddy/visual-testing/pull/286) [`b4aebba`](https://github.com/repobuddy/visual-testing/commit/b4aebba9053fe6da5edfaf99ccac407f8391c022) Thanks [@unional](https://github.com/unional)! - Remove `@types/pixelmatch` from peer dependency.
|
|
454
|
+
|
|
455
|
+
## 1.0.1
|
|
456
|
+
|
|
457
|
+
### Patch Changes
|
|
458
|
+
|
|
459
|
+
- [`702f458`](https://github.com/repobuddy/visual-testing/commit/702f45898c2a554bf263f86695b3e1b4c212737a) Thanks [@unional](https://github.com/unional)! - Add refresh button to vis panel.
|
|
460
|
+
|
|
461
|
+
- Updated dependencies [[`9a25501`](https://github.com/repobuddy/visual-testing/commit/9a255013ee3b5beb319da140648b5f4d44e59c8a)]:
|
|
462
|
+
- vitest-plugin-vis@3.0.1
|
|
463
|
+
|
|
464
|
+
## 1.0.0
|
|
465
|
+
|
|
466
|
+
### Major Changes
|
|
467
|
+
|
|
468
|
+
- [#259](https://github.com/repobuddy/visual-testing/pull/259) [`a7c2a49`](https://github.com/repobuddy/visual-testing/commit/a7c2a49891c4b5b1724ff8f2f4a81ec01ae16c2c) Thanks [@unional](https://github.com/unional)! - Move `storybook-addon-vis/preview` into `storybook-addon-vis/vitest-setup`.
|
|
469
|
+
|
|
470
|
+
- [#259](https://github.com/repobuddy/visual-testing/pull/259) [`d8c2dac`](https://github.com/repobuddy/visual-testing/commit/d8c2dace2fb6f56fe555d122590937029736e713) Thanks [@unional](https://github.com/unional)! - Add `Storybook Vis` panel to show the results of the visual tests.
|
|
471
|
+
|
|
472
|
+
### Minor Changes
|
|
473
|
+
|
|
474
|
+
- [#259](https://github.com/repobuddy/visual-testing/pull/259) [`36dcd4e`](https://github.com/repobuddy/visual-testing/commit/36dcd4e5ecf00078fbcf6ddf30852fab6e962eff) Thanks [@unional](https://github.com/unional)! - Rename `ImageSnapshotIdOptions` to `ImageSnapshotKeyOptions`.
|
|
475
|
+
|
|
476
|
+
- [#259](https://github.com/repobuddy/visual-testing/pull/259) [`ccb67af`](https://github.com/repobuddy/visual-testing/commit/ccb67aff835baaefc883004fbada7a811425dbd3) Thanks [@unional](https://github.com/unional)! - Remove `SnapshotMeta` from API.
|
|
477
|
+
|
|
478
|
+
- [#259](https://github.com/repobuddy/visual-testing/pull/259) [`ba025cb`](https://github.com/repobuddy/visual-testing/commit/ba025cb9872ac184646b41912d87b4608d5f2b01) Thanks [@unional](https://github.com/unional)! - Add `StorybookVisOptions`
|
|
479
|
+
|
|
480
|
+
### Patch Changes
|
|
481
|
+
|
|
482
|
+
- [#259](https://github.com/repobuddy/visual-testing/pull/259) [`29ea8dc`](https://github.com/repobuddy/visual-testing/commit/29ea8dc41c1fe64a15f35840617e629b12e4123b) Thanks [@unional](https://github.com/unional)! - Rename `matchImageSnapshot` to `matchImageSnapshotAction` (breaking).
|
|
483
|
+
|
|
484
|
+
- [#259](https://github.com/repobuddy/visual-testing/pull/259) [`fbaa75b`](https://github.com/repobuddy/visual-testing/commit/fbaa75be2421bf70e0a7a7a296f307d8564421e7) Thanks [@unional](https://github.com/unional)! - Use `hasImageSnapshotAction` from `vitest-plugin-vis`.
|
|
485
|
+
|
|
486
|
+
- [`f19d4c9`](https://github.com/repobuddy/visual-testing/commit/f19d4c931f346b5cf813a3d66131ae92fb6f07c5) - Depends on `vitest-plugin-vis` with version range `^`.
|
|
487
|
+
|
|
488
|
+
- Updated dependencies [[`1d322c4`](https://github.com/repobuddy/visual-testing/commit/1d322c439db6f6160dbc70a6710e00ed03e3ce19), [`38734c5`](https://github.com/repobuddy/visual-testing/commit/38734c508633168e73d87c264b3dabf44dd617b8), [`14f57c5`](https://github.com/repobuddy/visual-testing/commit/14f57c5be3569d7620d7288b0fc9aba7a3a798b6), [`7ff4a7b`](https://github.com/repobuddy/visual-testing/commit/7ff4a7b22e20c94b554b2c99e406b93343953d0f), [`b68f90a`](https://github.com/repobuddy/visual-testing/commit/b68f90a74899bfed4fca3083696b955f35f5f11b), [`6f74919`](https://github.com/repobuddy/visual-testing/commit/6f74919691ac97dd9759447cc7feab58cf7f24d8), [`29ea8dc`](https://github.com/repobuddy/visual-testing/commit/29ea8dc41c1fe64a15f35840617e629b12e4123b), [`594c9c9`](https://github.com/repobuddy/visual-testing/commit/594c9c9511ea74dde10329eeee64f51a257f92bd), [`34973ca`](https://github.com/repobuddy/visual-testing/commit/34973ca0a017f35e58ce4e706da1a83a693ee6a9), [`4c9bf36`](https://github.com/repobuddy/visual-testing/commit/4c9bf365db466c159395996c56ca76b2112bef09), [`aa957fc`](https://github.com/repobuddy/visual-testing/commit/aa957fc3dcae07a43583e219b33b92a19de31f6b), [`899ce35`](https://github.com/repobuddy/visual-testing/commit/899ce35a89488bc1c00ed3771c2a4d51e042fee2), [`f3ef08c`](https://github.com/repobuddy/visual-testing/commit/f3ef08cc57bdaa3a5d28d0588fde81d115e79150), [`abcedab`](https://github.com/repobuddy/visual-testing/commit/abcedabc46860ddd5fc015be9ccd38e6959cc77a), [`5539f6d`](https://github.com/repobuddy/visual-testing/commit/5539f6d6d0d4d192b1a8318fa5c91543a46abd39), [`eb1eeee`](https://github.com/repobuddy/visual-testing/commit/eb1eeeeab6021ba5d58306519333d5099a173ee0), [`4f9ce14`](https://github.com/repobuddy/visual-testing/commit/4f9ce14214531cd430c14a9e703a9652744864fe), [`fb8603d`](https://github.com/repobuddy/visual-testing/commit/fb8603df43c71303b92f40ddfc6b9d42982b1dd2), [`1b1c13a`](https://github.com/repobuddy/visual-testing/commit/1b1c13a986b708a8e1adc52cf05f52c46e937000), [`11e52da`](https://github.com/repobuddy/visual-testing/commit/11e52da2ebd7dc5d4d5d252942b7edbc40c81713), [`2f57b5b`](https://github.com/repobuddy/visual-testing/commit/2f57b5bf35f149b3058df5fd0b2e663387d26bf3), [`ccb67af`](https://github.com/repobuddy/visual-testing/commit/ccb67aff835baaefc883004fbada7a811425dbd3), [`31d9e29`](https://github.com/repobuddy/visual-testing/commit/31d9e29186a2fb0caa2e4c26be002e248f1160de), [`577e42b`](https://github.com/repobuddy/visual-testing/commit/577e42b5321b50b183a71a23c54dfaa87d5ad7a5), [`c3ec8f8`](https://github.com/repobuddy/visual-testing/commit/c3ec8f8f538f9aa84f17e4749dc46563d1605ed0), [`d7e7802`](https://github.com/repobuddy/visual-testing/commit/d7e780233226f4d6bfea955819789a00687a1fe9), [`033f725`](https://github.com/repobuddy/visual-testing/commit/033f725ca44bb8e213e94b6b001e7d8657fc48d7), [`766c035`](https://github.com/repobuddy/visual-testing/commit/766c035e798334e44e6489de86f05f4809e7fb76), [`51b4855`](https://github.com/repobuddy/visual-testing/commit/51b48557f66447b302ad1a27a9482db42c4dc90d), [`755f18a`](https://github.com/repobuddy/visual-testing/commit/755f18aba217a9d3beca842701b68f85873561e4), [`3c8eee0`](https://github.com/repobuddy/visual-testing/commit/3c8eee04308506040dafede505ab53736545c20d), [`f7ce143`](https://github.com/repobuddy/visual-testing/commit/f7ce1438e435aaaac6449b7f138034bb34b598f3), [`ea3735f`](https://github.com/repobuddy/visual-testing/commit/ea3735fbb88ecf93ef6f1b287871afe44a8185de), [`6978c83`](https://github.com/repobuddy/visual-testing/commit/6978c8371b626e508044f422bbfe9c3694337565)]:
|
|
489
|
+
- vitest-plugin-vis@3.0.0
|
|
490
|
+
|
|
491
|
+
## 0.19.4
|
|
492
|
+
|
|
493
|
+
### Patch Changes
|
|
494
|
+
|
|
495
|
+
- Updated dependencies [[`0b83a6e`](https://github.com/repobuddy/visual-testing/commit/0b83a6e63fe7d7d770277dfd020443972ebbd9ad)]:
|
|
496
|
+
- vitest-plugin-vis@2.4.4
|
|
497
|
+
|
|
498
|
+
## 0.19.3
|
|
499
|
+
|
|
500
|
+
### Patch Changes
|
|
501
|
+
|
|
502
|
+
- Updated dependencies [[`57be521`](https://github.com/repobuddy/visual-testing/commit/57be5217c3c12a7313c724c144c9227a4f227a4c)]:
|
|
503
|
+
- vitest-plugin-vis@2.4.3
|
|
504
|
+
|
|
505
|
+
## 0.19.2
|
|
506
|
+
|
|
507
|
+
### Patch Changes
|
|
508
|
+
|
|
509
|
+
- Updated dependencies [[`349e021`](https://github.com/repobuddy/visual-testing/commit/349e02112ced61af05cc37bfbafa28363485c223)]:
|
|
510
|
+
- vitest-plugin-vis@2.4.2
|
|
511
|
+
|
|
512
|
+
## 0.19.1
|
|
513
|
+
|
|
514
|
+
### Patch Changes
|
|
515
|
+
|
|
516
|
+
- Updated dependencies [[`e877872`](https://github.com/repobuddy/visual-testing/commit/e877872131ef2b14981cd8203b7f85f4141e4dd9)]:
|
|
517
|
+
- vitest-plugin-vis@2.4.1
|
|
518
|
+
|
|
519
|
+
## 0.19.0
|
|
520
|
+
|
|
521
|
+
### Minor Changes
|
|
522
|
+
|
|
523
|
+
- [#238](https://github.com/repobuddy/storybook-addon-vis/pull/238) [`51346e2`](https://github.com/repobuddy/storybook-addon-vis/commit/51346e2c0c13850200b32db39a83d0d68f76cf26) Thanks [@unional](https://github.com/unional)! - Export `setAutoSnapshotOptions` and `SnapshotMeta` which are useful under `storybook-addon-vis/vitest-setup`.
|
|
524
|
+
|
|
525
|
+
### Patch Changes
|
|
526
|
+
|
|
527
|
+
- Updated dependencies [[`16c7886`](https://github.com/repobuddy/storybook-addon-vis/commit/16c78862fc5a14e7137fb3c7d3c60c9fe6ff674f), [`2c7afe9`](https://github.com/repobuddy/storybook-addon-vis/commit/2c7afe9778b3ea60b0667b3bae5a0ac066995c65)]:
|
|
528
|
+
- vitest-plugin-vis@2.4.0
|
|
529
|
+
|
|
530
|
+
## 0.18.8
|
|
531
|
+
|
|
532
|
+
### Patch Changes
|
|
533
|
+
|
|
534
|
+
- Updated dependencies [[`4b665f9`](https://github.com/repobuddy/storybook-addon-vis/commit/4b665f940fd8f290de99875d3b0b6332e3aed38a)]:
|
|
535
|
+
- vitest-plugin-vis@2.3.3
|
|
536
|
+
|
|
537
|
+
## 0.18.7
|
|
538
|
+
|
|
539
|
+
### Patch Changes
|
|
540
|
+
|
|
541
|
+
- Updated dependencies [[`2a2b000`](https://github.com/repobuddy/storybook-addon-vis/commit/2a2b000e1e9acc85dd9e81e0c569623ef1eb0724)]:
|
|
542
|
+
- vitest-plugin-vis@2.3.2
|
|
543
|
+
|
|
544
|
+
## 0.18.6
|
|
545
|
+
|
|
546
|
+
### Patch Changes
|
|
547
|
+
|
|
548
|
+
- [#227](https://github.com/repobuddy/storybook-addon-vis/pull/227) [`b74a986`](https://github.com/repobuddy/storybook-addon-vis/commit/b74a9863fdef5227ae9fb5a23927be7b0323148f) Thanks [@unional](https://github.com/unional)! - Adjust `vitest-plugin-vis` usage
|
|
549
|
+
|
|
550
|
+
- Updated dependencies [[`13ef2a5`](https://github.com/repobuddy/storybook-addon-vis/commit/13ef2a53ca1a5e319b90e2c9d6a8f09945d87c0e)]:
|
|
551
|
+
- vitest-plugin-vis@2.3.1
|
|
552
|
+
|
|
553
|
+
## 0.18.5
|
|
554
|
+
|
|
555
|
+
### Patch Changes
|
|
556
|
+
|
|
557
|
+
- [#225](https://github.com/repobuddy/storybook-addon-vis/pull/225) [`4692f23`](https://github.com/repobuddy/storybook-addon-vis/commit/4692f2360737e03699646a68572f7456badd53b6) Thanks [@unional](https://github.com/unional)! - Workaround a Storybook 8.4 issue where the `preview.beforeEach` is called after test instead of before.
|
|
558
|
+
Because of that, the `setAutoSnapshotOptions()` called within test is not honored.
|
|
559
|
+
- Updated dependencies [[`15bbbed`](https://github.com/repobuddy/storybook-addon-vis/commit/15bbbedb717b57d94c334e26d99b59431f1f17e0), [`4692f23`](https://github.com/repobuddy/storybook-addon-vis/commit/4692f2360737e03699646a68572f7456badd53b6)]:
|
|
560
|
+
- vitest-plugin-vis@2.3.0
|
|
561
|
+
|
|
562
|
+
## 0.18.4
|
|
563
|
+
|
|
564
|
+
### Patch Changes
|
|
565
|
+
|
|
566
|
+
- Updated dependencies [[`13601ef`](https://github.com/repobuddy/storybook-addon-vis/commit/13601ef5ecd4260eacf844f71dcf4ca941b88f6b)]:
|
|
567
|
+
- vitest-plugin-vis@2.2.0
|
|
568
|
+
|
|
569
|
+
## 0.18.3
|
|
570
|
+
|
|
571
|
+
### Patch Changes
|
|
572
|
+
|
|
573
|
+
- Updated dependencies [[`bbbc8e8`](https://github.com/repobuddy/storybook-addon-vis/commit/bbbc8e89286c1dd39a67a267d64185ce5dc61908)]:
|
|
574
|
+
- vitest-plugin-vis@2.1.1
|
|
575
|
+
|
|
576
|
+
## 0.18.2
|
|
577
|
+
|
|
578
|
+
### Patch Changes
|
|
579
|
+
|
|
580
|
+
- Updated dependencies [[`472acc9`](https://github.com/repobuddy/storybook-addon-vis/commit/472acc9e5ea0e78b26343fa662fdfc82dc3aaf2a)]:
|
|
581
|
+
- vitest-plugin-vis@2.1.0
|
|
582
|
+
|
|
583
|
+
## 0.18.1
|
|
584
|
+
|
|
585
|
+
### Patch Changes
|
|
586
|
+
|
|
587
|
+
- [`24621e0`](https://github.com/repobuddy/storybook-addon-vis/commit/24621e0683bebc08d112d93c99e58d28e0dffb67) Thanks [@unional](https://github.com/unional)! - Update `type-plus`.
|
|
588
|
+
|
|
589
|
+
- Updated dependencies [[`a68f5c9`](https://github.com/repobuddy/storybook-addon-vis/commit/a68f5c9ea3786aa70dc03304236a67ef3fb333df), [`24621e0`](https://github.com/repobuddy/storybook-addon-vis/commit/24621e0683bebc08d112d93c99e58d28e0dffb67)]:
|
|
590
|
+
- vitest-plugin-vis@2.0.1
|
|
591
|
+
|
|
592
|
+
## 0.18.0
|
|
593
|
+
|
|
594
|
+
### Minor Changes
|
|
595
|
+
|
|
596
|
+
- [#204](https://github.com/repobuddy/storybook-addon-vis/pull/204) [`020121f`](https://github.com/repobuddy/storybook-addon-vis/commit/020121f04d08feaf071db0beb65236e79feb695d) Thanks [@unional](https://github.com/unional)! - Change the `customizeSnapshotId` to accept `context` object.
|
|
597
|
+
|
|
598
|
+
This is a breaking change.
|
|
599
|
+
Feature-wise, it is the same as before.
|
|
600
|
+
We will enable better customization by passing `viewport` to the `customizeSnapshotId` function in the future.
|
|
601
|
+
|
|
602
|
+
- [#204](https://github.com/repobuddy/storybook-addon-vis/pull/204) [`76b09cc`](https://github.com/repobuddy/storybook-addon-vis/commit/76b09cc00c5fc94026e2a5ab6283300325716675) Thanks [@unional](https://github.com/unional)! - Add support to customize `snapshotRootDir` with a function.
|
|
603
|
+
Deprecate `platform` option.
|
|
604
|
+
|
|
605
|
+
### Patch Changes
|
|
606
|
+
|
|
607
|
+
- Updated dependencies [[`020121f`](https://github.com/repobuddy/storybook-addon-vis/commit/020121f04d08feaf071db0beb65236e79feb695d), [`76b09cc`](https://github.com/repobuddy/storybook-addon-vis/commit/76b09cc00c5fc94026e2a5ab6283300325716675)]:
|
|
608
|
+
- vitest-plugin-vis@2.0.0
|
|
609
|
+
|
|
610
|
+
## 0.17.11
|
|
611
|
+
|
|
612
|
+
### Patch Changes
|
|
613
|
+
|
|
614
|
+
- [`caa49e3`](https://github.com/repobuddy/storybook-addon-vis/commit/caa49e34dd4eb6e4a31a88f2c254288ff0b6ccb1) Thanks [@unional](https://github.com/unional)! - Remove extra `vitest-plugin.js` and `vitest-plugin.d.ts`.
|
|
615
|
+
|
|
616
|
+
- [`e753448`](https://github.com/repobuddy/storybook-addon-vis/commit/e7534484526dc2e4d104076d9f564f47efca6297) Thanks [@unional](https://github.com/unional)! - Remove extra `vitest-setup.js` file.
|
|
617
|
+
|
|
618
|
+
## 0.17.10
|
|
619
|
+
|
|
620
|
+
### Patch Changes
|
|
621
|
+
|
|
622
|
+
- [#195](https://github.com/repobuddy/storybook-addon-vis/pull/195) [`d9ed547`](https://github.com/repobuddy/storybook-addon-vis/commit/d9ed547228ca4f51abd699dc2444aab06cbf0017) Thanks [@unional](https://github.com/unional)! - Add Storybook `tags` to snapshot options.
|
|
623
|
+
|
|
624
|
+
- Updated dependencies [[`972db1b`](https://github.com/repobuddy/storybook-addon-vis/commit/972db1bb1f511d9073a2600afa030ff9c46e864f)]:
|
|
625
|
+
- vitest-plugin-vis@1.7.0
|
|
626
|
+
|
|
627
|
+
## 0.17.9
|
|
628
|
+
|
|
629
|
+
### Patch Changes
|
|
630
|
+
|
|
631
|
+
- Updated dependencies [[`be483d4`](https://github.com/repobuddy/storybook-addon-vis/commit/be483d412358158c4016eba573bf035252f6cbb5)]:
|
|
632
|
+
- vitest-plugin-vis@1.6.5
|
|
633
|
+
|
|
634
|
+
## 0.17.8
|
|
635
|
+
|
|
636
|
+
### Patch Changes
|
|
637
|
+
|
|
638
|
+
- Updated dependencies [[`78b117f`](https://github.com/repobuddy/storybook-addon-vis/commit/78b117fef0510c993aad33ff92114d9a786b41d8)]:
|
|
639
|
+
- vitest-plugin-vis@1.6.4
|
|
640
|
+
|
|
641
|
+
## 0.17.7
|
|
642
|
+
|
|
643
|
+
### Patch Changes
|
|
644
|
+
|
|
645
|
+
- [`433d0d8`](https://github.com/repobuddy/storybook-addon-vis/commit/433d0d87bcd498a56ce173534595b20563fdfa92) Thanks [@unional](https://github.com/unional)! - Export even more types to fix the inferred type cannot be named error!
|
|
646
|
+
|
|
647
|
+
## 0.17.6
|
|
648
|
+
|
|
649
|
+
### Patch Changes
|
|
650
|
+
|
|
651
|
+
- [#185](https://github.com/repobuddy/storybook-addon-vis/pull/185) [`c5296a1`](https://github.com/repobuddy/storybook-addon-vis/commit/c5296a15933cb26bb1792701c691f7ca67c5a4ee) Thanks [@unional](https://github.com/unional)! - Export more types to fix the inferred type cannot be named error.
|
|
652
|
+
|
|
653
|
+
- Updated dependencies [[`c5296a1`](https://github.com/repobuddy/storybook-addon-vis/commit/c5296a15933cb26bb1792701c691f7ca67c5a4ee)]:
|
|
654
|
+
- vitest-plugin-vis@1.6.3
|
|
655
|
+
|
|
656
|
+
## 0.17.5
|
|
657
|
+
|
|
658
|
+
### Patch Changes
|
|
659
|
+
|
|
660
|
+
- Updated dependencies [[`49e8fbc`](https://github.com/repobuddy/storybook-addon-vis/commit/49e8fbc60a9e9e07e700a5d61164cf954186ce2d)]:
|
|
661
|
+
- vitest-plugin-vis@1.6.2
|
|
662
|
+
|
|
663
|
+
## 0.17.4
|
|
664
|
+
|
|
665
|
+
### Patch Changes
|
|
666
|
+
|
|
667
|
+
- Updated dependencies [[`537cf83`](https://github.com/repobuddy/storybook-addon-vis/commit/537cf83b7cd6120876f46fc4bd5d51391128cab4)]:
|
|
668
|
+
- vitest-plugin-vis@1.6.1
|
|
669
|
+
|
|
670
|
+
## 0.17.3
|
|
671
|
+
|
|
672
|
+
### Patch Changes
|
|
673
|
+
|
|
674
|
+
- [#171](https://github.com/repobuddy/storybook-addon-vis/pull/171) [`abd1c47`](https://github.com/repobuddy/storybook-addon-vis/commit/abd1c47fb032fc91ae69b10dafc5ab1186f70577) Thanks [@unional](https://github.com/unional)! - Support `subjectDataTestId` in `defineAutoSnapshotParam()`.
|
|
675
|
+
|
|
676
|
+
- Updated dependencies [[`5335011`](https://github.com/repobuddy/storybook-addon-vis/commit/5335011f32b59604cd0a3b653c04ac690b6ca5fa)]:
|
|
677
|
+
- vitest-plugin-vis@1.6.0
|
|
678
|
+
|
|
679
|
+
## 0.17.2
|
|
680
|
+
|
|
681
|
+
### Patch Changes
|
|
682
|
+
|
|
683
|
+
- Updated dependencies [[`611e0cc`](https://github.com/repobuddy/storybook-addon-vis/commit/611e0cca505bfea0fe67ce10e45af2946a7cc578)]:
|
|
684
|
+
- vitest-plugin-vis@1.5.1
|
|
685
|
+
|
|
686
|
+
## 0.17.1
|
|
687
|
+
|
|
688
|
+
### Patch Changes
|
|
689
|
+
|
|
690
|
+
- [#156](https://github.com/repobuddy/storybook-addon-vis/pull/156) [`72959a6`](https://github.com/repobuddy/storybook-addon-vis/commit/72959a6bd2bea3d9c1cff652b8ff384c10e017f2) Thanks [@unional](https://github.com/unional)! - Add top level `types` field to `package.json` for project not using ESM module resolution.
|
|
691
|
+
|
|
692
|
+
- [#161](https://github.com/repobuddy/storybook-addon-vis/pull/161) [`43fc2ce`](https://github.com/repobuddy/storybook-addon-vis/commit/43fc2ce3385c0086de567816a1a1328ea4df336f) Thanks [@unional](https://github.com/unional)! - Change default timeout to 30s.
|
|
693
|
+
The initial timeout of 1s was set by Vitest.
|
|
694
|
+
It is causing tests to fail with `TimeoutError`,
|
|
695
|
+
even when getting `Locator` like `getByRole`.
|
|
696
|
+
|
|
697
|
+
This timeout will be removed in Vitest 3.
|
|
698
|
+
|
|
699
|
+
The underlying provider (`playwright`) does not have a default timeout.
|
|
700
|
+
|
|
701
|
+
Setting to 30s should be a good default for most cases.
|
|
702
|
+
|
|
703
|
+
It could still be too short for slow CI or when it is running scripts in parallel.
|
|
704
|
+
That was the case for `storybook-test-runner` but could be improved in Vitest browser mode.
|
|
705
|
+
|
|
706
|
+
If timeout is still an issue, we can further default it to 60s or even 120s.
|
|
707
|
+
|
|
708
|
+
- Updated dependencies [[`72959a6`](https://github.com/repobuddy/storybook-addon-vis/commit/72959a6bd2bea3d9c1cff652b8ff384c10e017f2), [`d2fdcbe`](https://github.com/repobuddy/storybook-addon-vis/commit/d2fdcbe023917ea9dc85ac332dfd8b46f6936f20), [`43fc2ce`](https://github.com/repobuddy/storybook-addon-vis/commit/43fc2ce3385c0086de567816a1a1328ea4df336f), [`995140f`](https://github.com/repobuddy/storybook-addon-vis/commit/995140f0bda8c389a24f143f744dabe6d682a8ce), [`a020417`](https://github.com/repobuddy/storybook-addon-vis/commit/a02041770b32ca52baa35326ff77a39fe4b249c2), [`ee4ef14`](https://github.com/repobuddy/storybook-addon-vis/commit/ee4ef1492a0444bf1b24d2614c8365154038b351)]:
|
|
709
|
+
- vitest-plugin-vis@1.5.0
|
|
710
|
+
|
|
711
|
+
## 0.17.0
|
|
712
|
+
|
|
713
|
+
### Minor Changes
|
|
714
|
+
|
|
715
|
+
- [#150](https://github.com/repobuddy/storybook-addon-vis/pull/150) [`e8ffc6b`](https://github.com/repobuddy/storybook-addon-vis/commit/e8ffc6bdc5b6df46e0f854b910db0d8a2691dcd6) Thanks [@unional](https://github.com/unional)! - Add `ssim` support.
|
|
716
|
+
|
|
717
|
+
### Patch Changes
|
|
718
|
+
|
|
719
|
+
- Updated dependencies [[`da95b08`](https://github.com/repobuddy/storybook-addon-vis/commit/da95b08e496d1f8a8b1663e55681510803e41082)]:
|
|
720
|
+
- vitest-plugin-vis@1.4.0
|
|
721
|
+
|
|
722
|
+
## 0.16.4
|
|
723
|
+
|
|
724
|
+
### Patch Changes
|
|
725
|
+
|
|
726
|
+
- [`513d95c`](https://github.com/repobuddy/storybook-addon-vis/commit/513d95c9b1313a31589368daa4937e69aa64ee98) Thanks [@unional](https://github.com/unional)! - Add missing `.d.ts` files due to `tsup` set `clean` to `true` by default.
|
|
727
|
+
|
|
728
|
+
- Updated dependencies [[`1b22d2d`](https://github.com/repobuddy/storybook-addon-vis/commit/1b22d2d290a1fb18156cda3b846a402ad51481a2)]:
|
|
729
|
+
- vitest-plugin-vis@1.3.2
|
|
730
|
+
|
|
731
|
+
## 0.16.3
|
|
732
|
+
|
|
733
|
+
### Patch Changes
|
|
734
|
+
|
|
735
|
+
- Updated dependencies [[`3ebc865`](https://github.com/repobuddy/storybook-addon-vis/commit/3ebc8655f3364a59de1d87930af53554dd9b4faa)]:
|
|
736
|
+
- vitest-plugin-vis@1.3.1
|
|
737
|
+
|
|
738
|
+
## 0.16.2
|
|
739
|
+
|
|
740
|
+
### Patch Changes
|
|
741
|
+
|
|
742
|
+
- [#142](https://github.com/repobuddy/storybook-addon-vis/pull/142) [`9eaf9a8`](https://github.com/repobuddy/storybook-addon-vis/commit/9eaf9a8d887c4e5340150be2367134f0185b6312) Thanks [@unional](https://github.com/unional)! - Add `/matcher`.
|
|
743
|
+
|
|
744
|
+
- [#143](https://github.com/repobuddy/storybook-addon-vis/pull/143) [`7ebf3ae`](https://github.com/repobuddy/storybook-addon-vis/commit/7ebf3aefd5192e8f8b98a89295c8a328ff742b02) Thanks [@unional](https://github.com/unional)! - Use `ImageSnapshotMatcher` from `vitest-plugin-vis`.
|
|
745
|
+
|
|
746
|
+
- [#144](https://github.com/repobuddy/storybook-addon-vis/pull/144) [`f642dbf`](https://github.com/repobuddy/storybook-addon-vis/commit/f642dbfbb6a715ef14a944c50e656b79c926b5d4) Thanks [@unional](https://github.com/unional)! - Use `imageSnapshotMatcher` instead of `matchImageSnapshot` to fix storybook loading issue.
|
|
747
|
+
|
|
748
|
+
- Updated dependencies [[`2d4f1c0`](https://github.com/repobuddy/storybook-addon-vis/commit/2d4f1c02394ca4fd8880452a98399c825e686ee5), [`78cc195`](https://github.com/repobuddy/storybook-addon-vis/commit/78cc195e1ae9afe2fe102e0e916cffff406e0ebd), [`17510d3`](https://github.com/repobuddy/storybook-addon-vis/commit/17510d32272730ebf4677ed2c4b177f636e75cc2), [`f642dbf`](https://github.com/repobuddy/storybook-addon-vis/commit/f642dbfbb6a715ef14a944c50e656b79c926b5d4)]:
|
|
749
|
+
- vitest-plugin-vis@1.3.0
|
|
750
|
+
|
|
751
|
+
## 0.16.1
|
|
752
|
+
|
|
753
|
+
### Patch Changes
|
|
754
|
+
|
|
755
|
+
- Updated dependencies [[`e4bef32`](https://github.com/repobuddy/storybook-addon-vis/commit/e4bef32a897015f5f84407610ef184eb3872f424), [`e0fec8e`](https://github.com/repobuddy/storybook-addon-vis/commit/e0fec8edf7c082bf31b10ea6040b216836740ab2), [`a3e3c89`](https://github.com/repobuddy/storybook-addon-vis/commit/a3e3c89341183a8ced5339290cc74d172b78f82d), [`eaa3bbe`](https://github.com/repobuddy/storybook-addon-vis/commit/eaa3bbe91076d42b7eb8b773c404b2e62d6c4930)]:
|
|
756
|
+
- vitest-plugin-vis@1.2.0
|
|
757
|
+
|
|
758
|
+
## 0.16.0
|
|
759
|
+
|
|
760
|
+
### Minor Changes
|
|
761
|
+
|
|
762
|
+
- [#133](https://github.com/repobuddy/storybook-addon-vis/pull/133) [`badf227`](https://github.com/repobuddy/storybook-addon-vis/commit/badf2273828ad883763e1e328b4e180c07b4960a) Thanks [@unional](https://github.com/unional)! - Update to use `matchImageSnapshot` function from `vitest-plugin-vis/client` which runs image comparison on the client side.
|
|
763
|
+
|
|
764
|
+
### Patch Changes
|
|
765
|
+
|
|
766
|
+
- [#133](https://github.com/repobuddy/storybook-addon-vis/pull/133) [`ca68f7f`](https://github.com/repobuddy/storybook-addon-vis/commit/ca68f7fca68d225d495697214f397cbfc1e1cedb) Thanks [@unional](https://github.com/unional)! - Remove extra extend
|
|
767
|
+
|
|
768
|
+
- Updated dependencies [[`176d28f`](https://github.com/repobuddy/storybook-addon-vis/commit/176d28fc459cb0823f3fda94ad4e3372690dbd8d), [`0360253`](https://github.com/repobuddy/storybook-addon-vis/commit/03602536b5ebf67b7d898f95d6511e5b05da96a9), [`6912ad7`](https://github.com/repobuddy/storybook-addon-vis/commit/6912ad73041f7e46757f0f364dcaa6594a35ce9d), [`badf227`](https://github.com/repobuddy/storybook-addon-vis/commit/badf2273828ad883763e1e328b4e180c07b4960a)]:
|
|
769
|
+
- vitest-plugin-vis@1.1.0
|
|
770
|
+
|
|
771
|
+
## 0.15.7
|
|
772
|
+
|
|
773
|
+
### Patch Changes
|
|
774
|
+
|
|
775
|
+
- Updated dependencies [[`e242444`](https://github.com/repobuddy/storybook-addon-vis/commit/e242444908766274014b5fc94afaf31392627c88)]:
|
|
776
|
+
- vitest-plugin-vis@1.0.5
|
|
777
|
+
|
|
778
|
+
## 0.15.6
|
|
779
|
+
|
|
780
|
+
### Patch Changes
|
|
781
|
+
|
|
782
|
+
- Updated dependencies [[`d695c4f`](https://github.com/repobuddy/storybook-addon-vis/commit/d695c4fb0b0be80ce53e38884fcb7a6340a8e52d)]:
|
|
783
|
+
- vitest-plugin-vis@1.0.4
|
|
784
|
+
|
|
785
|
+
## 0.15.5
|
|
786
|
+
|
|
787
|
+
### Patch Changes
|
|
788
|
+
|
|
789
|
+
- Updated dependencies [[`1068941`](https://github.com/repobuddy/storybook-addon-vis/commit/1068941b1495966cb3ee15a53dd5937e37365373)]:
|
|
790
|
+
- vitest-plugin-vis@1.0.3
|
|
791
|
+
|
|
792
|
+
## 0.15.4
|
|
793
|
+
|
|
794
|
+
### Patch Changes
|
|
795
|
+
|
|
796
|
+
- Updated dependencies [[`a8fcd75`](https://github.com/repobuddy/storybook-addon-vis/commit/a8fcd75a056cb5b16006c52190453f19e41ab182)]:
|
|
797
|
+
- vitest-plugin-vis@1.0.2
|
|
798
|
+
|
|
799
|
+
## 0.15.3
|
|
800
|
+
|
|
801
|
+
### Patch Changes
|
|
802
|
+
|
|
803
|
+
- [`7667feb`](https://github.com/repobuddy/storybook-addon-vis/commit/7667febc8be0ba043d4927a0f76b14cd01b91c48) Thanks [@unional](https://github.com/unional)! - Export `ToMatchImageSnapshotOptions` type to avoid Inferred type can't be named error.
|
|
804
|
+
|
|
805
|
+
## 0.15.2
|
|
806
|
+
|
|
807
|
+
### Patch Changes
|
|
808
|
+
|
|
809
|
+
- [#119](https://github.com/repobuddy/storybook-addon-vis/pull/119) [`3567475`](https://github.com/repobuddy/storybook-addon-vis/commit/35674751157650a6685dd04c0676796bf7baa75d) Thanks [@unional](https://github.com/unional)! - Remove `/manager` and `/preset` should not include `previewAnnotations`.
|
|
810
|
+
|
|
811
|
+
## 0.15.1
|
|
812
|
+
|
|
813
|
+
### Patch Changes
|
|
814
|
+
|
|
815
|
+
- [#115](https://github.com/repobuddy/storybook-addon-vis/pull/115) [`eec65da`](https://github.com/repobuddy/storybook-addon-vis/commit/eec65da0a3f5a3470d262bf7539e7bc4fd80804a) Thanks [@unional](https://github.com/unional)! - Proxy `getCurrentTest()` from `vitest/suite`.
|
|
816
|
+
|
|
817
|
+
This is part of the work to fix [#101](https://github.com/repobuddy/storybook-addon-vis/issues/101).
|
|
818
|
+
|
|
819
|
+
- Updated dependencies [[`ae98ec4`](https://github.com/repobuddy/storybook-addon-vis/commit/ae98ec47df104c80723892345946aebb65cb361c)]:
|
|
820
|
+
- vitest-plugin-vis@1.0.1
|
|
821
|
+
|
|
822
|
+
## 0.15.0
|
|
823
|
+
|
|
824
|
+
### Minor Changes
|
|
825
|
+
|
|
826
|
+
- [#113](https://github.com/repobuddy/storybook-addon-vis/pull/113) [`6283c1d`](https://github.com/repobuddy/storybook-addon-vis/commit/6283c1d2bb3451de6e3f70c467b3a2fe689c2d37) Thanks [@unional](https://github.com/unional)! - Remove `visAnnotations` from `storybook-addon-vis` main export.
|
|
827
|
+
Use `visAnnotations` from `storybook-addon-vis/preview` instead:
|
|
828
|
+
|
|
829
|
+
<https://github.com/repobuddy/storybook-addon-vis/blob/main/packages/storybook-addon-vis/readme.md#edit-vitest-setup>
|
|
830
|
+
|
|
831
|
+
### Patch Changes
|
|
832
|
+
|
|
833
|
+
- [#113](https://github.com/repobuddy/storybook-addon-vis/pull/113) [`3143283`](https://github.com/repobuddy/storybook-addon-vis/commit/31432831069585792f9dba6eb3b8e83beb87da3e) Thanks [@unional](https://github.com/unional)! - Add `/preview` export for `visAnnotations`.
|
|
834
|
+
|
|
835
|
+
- [#113](https://github.com/repobuddy/storybook-addon-vis/pull/113) [`79d10d5`](https://github.com/repobuddy/storybook-addon-vis/commit/79d10d5091232e16e5269746438466657a5eefc4) Thanks [@unional](https://github.com/unional)! - Remove `viteFinal` setup in `/preset`.
|
|
836
|
+
You need to configure Vitest in `vitest.config.ts` for Vitest Browser Mode anyway.
|
|
837
|
+
So getting the config to `.storybook/main.ts` is actually worst.
|
|
838
|
+
|
|
839
|
+
- [#114](https://github.com/repobuddy/storybook-addon-vis/pull/114) [`673b202`](https://github.com/repobuddy/storybook-addon-vis/commit/673b202f4a3c61d68620c061e24fc6903e1774fe) Thanks [@unional](https://github.com/unional)! - Remove extra `visAnnotations.beforeAll()`.
|
|
840
|
+
This is handled by `vitest-plugin-vis` and only need on `vitest.beforeAll`.
|
|
841
|
+
|
|
842
|
+
- [#113](https://github.com/repobuddy/storybook-addon-vis/pull/113) [`78f2776`](https://github.com/repobuddy/storybook-addon-vis/commit/78f2776e62847240988538f9bf606b491c4ef09b) Thanks [@unional](https://github.com/unional)! - Consolidate preview annotation in one place.
|
|
843
|
+
|
|
844
|
+
- [`49279f1`](https://github.com/repobuddy/storybook-addon-vis/commit/49279f1b8dc61a8710ca21cd20cfe6841acb8189) Thanks [@unional](https://github.com/unional)! - Remove unused dependencies.
|
|
845
|
+
|
|
846
|
+
## 0.14.0
|
|
847
|
+
|
|
848
|
+
### Minor Changes
|
|
849
|
+
|
|
850
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`1c6830b`](https://github.com/repobuddy/storybook-addon-vis/commit/1c6830b322881a489a2480467c0961dfeedd35f4) Thanks [@unional](https://github.com/unional)! - export `trimCommonFolder()`.
|
|
851
|
+
This is made available for customizing snapshot subpath.
|
|
852
|
+
|
|
853
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`c447676`](https://github.com/repobuddy/storybook-addon-vis/commit/c4476761d8e6e961950433358af336ae2d3b22f1) Thanks [@unional](https://github.com/unional)! - Support `Locator` [#2](https://github.com/repobuddy/storybook-addon-vis/issues/2).
|
|
854
|
+
|
|
855
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`c39daf0`](https://github.com/repobuddy/storybook-addon-vis/commit/c39daf057ddc9f3cab8b3a26b69ced66c4d8d560) Thanks [@unional](https://github.com/unional)! - create baseline snapshot on server.
|
|
856
|
+
|
|
857
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`03b1e6b`](https://github.com/repobuddy/storybook-addon-vis/commit/03b1e6b5f099cd9fdc8ffdb299e34703cca2d0ac) Thanks [@unional](https://github.com/unional)! - Allow commands to work in `webdriverio`.
|
|
858
|
+
|
|
859
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`fa4dd12`](https://github.com/repobuddy/storybook-addon-vis/commit/fa4dd120311ccfee31366fa43243899c4ac46436) Thanks [@unional](https://github.com/unional)! - Rewritten to use [`vitest-plugin-vis`](https://www.npmjs.com/package/vitest-plugin-vis),
|
|
860
|
+
which performs the snapshot on the server side.
|
|
861
|
+
|
|
862
|
+
The interface is greatly improved.
|
|
863
|
+
The `page.imageSnapshot()` is removed.
|
|
864
|
+
Now you can perform `expect(...).toMatchImageSnapshot()` on regular element and locator.
|
|
865
|
+
|
|
866
|
+
Please check the read me for the new API.
|
|
867
|
+
|
|
868
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`f4bda4c`](https://github.com/repobuddy/storybook-addon-vis/commit/f4bda4c7e12763d0d047050146f0a2829840ea61) Thanks [@unional](https://github.com/unional)! - Add `setSnapshotMeta()`.
|
|
869
|
+
|
|
870
|
+
### Patch Changes
|
|
871
|
+
|
|
872
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`03b1e6b`](https://github.com/repobuddy/storybook-addon-vis/commit/03b1e6b5f099cd9fdc8ffdb299e34703cca2d0ac) Thanks [@unional](https://github.com/unional)! - Change to use `ImageData(data, w, h, o)` constructor instead of `ImageData(w, h, o)` as `firefox` does not support it.
|
|
873
|
+
|
|
874
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`cbd1b4c`](https://github.com/repobuddy/storybook-addon-vis/commit/cbd1b4c46149855ac9b1d098259f123e9cc0a13e) Thanks [@unional](https://github.com/unional)! - Fix update snapshot for basic afterEach
|
|
875
|
+
|
|
876
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`3b09bb1`](https://github.com/repobuddy/storybook-addon-vis/commit/3b09bb1d202cfbcd2081ecf368c50b51e85ae38b) Thanks [@unional](https://github.com/unional)! - Use `console.error()` instead of `console.info()` when using not supported `page` method.
|
|
877
|
+
|
|
878
|
+
- [#102](https://github.com/repobuddy/storybook-addon-vis/pull/102) [`9534645`](https://github.com/repobuddy/storybook-addon-vis/commit/9534645972913a2aa1857c0704e6ed48c3dec2cf) Thanks [@unional](https://github.com/unional)! - Plugin should not set browser.
|
|
879
|
+
|
|
880
|
+
- [`7e63e9e`](https://github.com/repobuddy/storybook-addon-vis/commit/7e63e9e35f516f1e25e18209d81e8f5d6ae26750) Thanks [@unional](https://github.com/unional)! - Fix typo in error message.
|
|
881
|
+
|
|
882
|
+
- Updated dependencies [[`03893ab`](https://github.com/repobuddy/storybook-addon-vis/commit/03893ab4efae5f2d243bad67f40bc5cb4ad4d623)]:
|
|
883
|
+
- vitest-plugin-vis@1.0.0
|
|
884
|
+
|
|
885
|
+
## 0.13.0
|
|
886
|
+
|
|
887
|
+
### Minor Changes
|
|
888
|
+
|
|
889
|
+
- [#88](https://github.com/repobuddy/storybook-addon-vis/pull/88) [`0fcada9`](https://github.com/repobuddy/storybook-addon-vis/commit/0fcada9b09fe7eb77a121e38410a0c8b4fcabdd0) Thanks [@unional](https://github.com/unional)! - Move the `__results__` and `__diff_output__` directory one level up to reduce nesting.
|
|
890
|
+
|
|
891
|
+
```sh
|
|
892
|
+
# from
|
|
893
|
+
v __vis__
|
|
894
|
+
v darwin # snapshot generated on macos by CI
|
|
895
|
+
˃ __diff_output__
|
|
896
|
+
˃ __result__
|
|
897
|
+
˃ linux # snapshot generated on linux by CI
|
|
898
|
+
˃ __diff_output__
|
|
899
|
+
˃ __result__
|
|
900
|
+
v local # snapshot generated on local machine
|
|
901
|
+
˃ __diff_output__
|
|
902
|
+
˃ __result__
|
|
903
|
+
v button.stories.tsx
|
|
904
|
+
snapshot-1.png
|
|
905
|
+
snapshot-2.png
|
|
906
|
+
v button.stories.tsx
|
|
907
|
+
snapshot-1.png
|
|
908
|
+
snapshot-2.png
|
|
909
|
+
|
|
910
|
+
# to
|
|
911
|
+
v __vis__
|
|
912
|
+
˃ __diff_output__ # where the diff images are stored
|
|
913
|
+
v button.stories.tsx
|
|
914
|
+
snapshot-1.png
|
|
915
|
+
snapshot-2.png
|
|
916
|
+
˃ __result__ # where the resulting snapshot of the current run are stored
|
|
917
|
+
v button.stories.tsx
|
|
918
|
+
snapshot-1.png
|
|
919
|
+
snapshot-2.png
|
|
920
|
+
˃ darwin # snapshot generated on macos by CI
|
|
921
|
+
˃ linux # snapshot generated on linux by CI
|
|
922
|
+
v local # snapshot generated on local machine
|
|
923
|
+
v button.stories.tsx
|
|
924
|
+
snapshot-1.png
|
|
925
|
+
snapshot-2.png
|
|
926
|
+
```
|
|
927
|
+
|
|
928
|
+
## 0.12.1
|
|
929
|
+
|
|
930
|
+
### Patch Changes
|
|
931
|
+
|
|
932
|
+
- [`a64d076`](https://github.com/repobuddy/storybook-addon-vis/commit/a64d0764a1f2038f0c329290a1796306ed43864b) Thanks [@unional](https://github.com/unional)! - Use `Object.create(null)` instead of `{}` to avoid prototype pollution.
|
|
933
|
+
|
|
934
|
+
## 0.12.0
|
|
935
|
+
|
|
936
|
+
### Minor Changes
|
|
937
|
+
|
|
938
|
+
- [#74](https://github.com/repobuddy/storybook-addon-vis/pull/74) [`6707f9f`](https://github.com/repobuddy/storybook-addon-vis/commit/6707f9fed43c9a01ebd0c280015189401f3d4b00) Thanks [@unional](https://github.com/unional)! - Change default snapshot folder back to `<project root>/__vis__`.
|
|
939
|
+
They are now stored in folder structure mimic the test/story file.
|
|
940
|
+
|
|
941
|
+
This makes it much easier to review the snapshot results.
|
|
942
|
+
|
|
943
|
+
Also, it avoids the `EISDIR` error when running the tests and running the storybook at the same time.
|
|
944
|
+
|
|
945
|
+
The `snapshotDir` option is renamed to `snapshotRootDir`.
|
|
946
|
+
|
|
947
|
+
A `customizeSnapshotSubpath` is added to allow customizing the snapshot sub path.
|
|
948
|
+
|
|
949
|
+
### Patch Changes
|
|
950
|
+
|
|
951
|
+
- [#77](https://github.com/repobuddy/storybook-addon-vis/pull/77) [`d089502`](https://github.com/repobuddy/storybook-addon-vis/commit/d0895024817c07520a13a8327d377483a0042600) Thanks [@unional](https://github.com/unional)! - Change failure message to use full path.
|
|
952
|
+
|
|
953
|
+
This allows the user to easily access the file in their editor.
|
|
954
|
+
|
|
955
|
+
## 0.11.2
|
|
956
|
+
|
|
957
|
+
### Patch Changes
|
|
958
|
+
|
|
959
|
+
- [`21583bf`](https://github.com/repobuddy/storybook-addon-vis/commit/21583bf7a1fc88de7170eb7e403105215090f1dd) Thanks [@unional](https://github.com/unional)! - Comment out logs
|
|
960
|
+
|
|
961
|
+
## 0.11.1
|
|
962
|
+
|
|
963
|
+
### Patch Changes
|
|
964
|
+
|
|
965
|
+
- [`eda2a48`](https://github.com/repobuddy/storybook-addon-vis/commit/eda2a484d233d2d08ef003b9d40d2270e9446cae) Thanks [@unional](https://github.com/unional)! - Update incorrect instruction
|
|
966
|
+
|
|
967
|
+
## 0.11.0
|
|
968
|
+
|
|
969
|
+
### Minor Changes
|
|
970
|
+
|
|
971
|
+
- [`ac4f759`](https://github.com/repobuddy/storybook-addon-vis/commit/ac4f759c5bce01daf57d380147d09db7d68c1b62) Thanks [@unional](https://github.com/unional)! - Change snapshot folder to `__vis__` next to the story/test file.
|
|
972
|
+
This avoids conflict when there are multiple story/test files with the same name in different folder.
|
|
973
|
+
|
|
974
|
+
The `createVisConfig({ snapshotPath })` is renamed to `snapshotDir`.
|
|
975
|
+
|
|
976
|
+
## 0.10.2
|
|
977
|
+
|
|
978
|
+
### Patch Changes
|
|
979
|
+
|
|
980
|
+
- [`ca1bf16`](https://github.com/repobuddy/storybook-addon-vis/commit/ca1bf16f7e2f08036a81f702a0c3eababb7a6e14) Thanks [@unional](https://github.com/unional)! - Add missing `beforeAll`, `afterEach`.
|
|
981
|
+
|
|
982
|
+
## 0.10.1
|
|
983
|
+
|
|
984
|
+
### Patch Changes
|
|
985
|
+
|
|
986
|
+
- [`d388c78`](https://github.com/repobuddy/storybook-addon-vis/commit/d388c780f96e49a43c0d8c9d254c58a02f16b4fb) Thanks [@unional](https://github.com/unional)! - Add missing `storybook-addon-vis/preset`.
|
|
987
|
+
|
|
988
|
+
## 0.10.0
|
|
989
|
+
|
|
990
|
+
### Minor Changes
|
|
991
|
+
|
|
992
|
+
- [`7974251`](https://github.com/repobuddy/storybook-addon-vis/commit/797425135fa5e521295555bd20b8bf01660bb563) Thanks [@unional](https://github.com/unional)! - Add global timeout and match options
|
|
993
|
+
|
|
994
|
+
- [`55439ae`](https://github.com/repobuddy/storybook-addon-vis/commit/55439aedbb22163f575eaeae7e0977c39243f8d6) Thanks [@unional](https://github.com/unional)! - Support global `customizeSnapshotId()` config.
|
|
995
|
+
|
|
996
|
+
### Patch Changes
|
|
997
|
+
|
|
998
|
+
- [`7db89b2`](https://github.com/repobuddy/storybook-addon-vis/commit/7db89b2ea69a20ff057865a48d0f2ad5789712a5) Thanks [@unional](https://github.com/unional)! - Change default timeout to 30s
|
|
999
|
+
|
|
1000
|
+
## 0.9.1
|
|
1001
|
+
|
|
1002
|
+
### Patch Changes
|
|
1003
|
+
|
|
1004
|
+
- [`abd7a7f`](https://github.com/repobuddy/storybook-addon-vis/commit/abd7a7fb8e861e22885f2e1d407f9746314436be) Thanks [@unional](https://github.com/unional)! - Move `expect.extends` to module scope.
|
|
1005
|
+
It technically becomes a load time side effect which is not ideal,
|
|
1006
|
+
but at the same time avoids doing the extends on every test file.
|
|
1007
|
+
|
|
1008
|
+
- [`768396a`](https://github.com/repobuddy/storybook-addon-vis/commit/768396aac341df98639ba13c4a6c109aaf7fceb1) Thanks [@unional](https://github.com/unional)! - Use exact type for `storybookPreviewVis`.
|
|
1009
|
+
|
|
1010
|
+
## 0.9.0
|
|
1011
|
+
|
|
1012
|
+
### Minor Changes
|
|
1013
|
+
|
|
1014
|
+
- [`2db5b77`](https://github.com/repobuddy/storybook-addon-vis/commit/2db5b77009a458d17e5fbb63466ca8afba34bb25) Thanks [@unional](https://github.com/unional)! - Remove the need of taking `ctx` as argument for `shouldTakeSnapshot` and the `afterEach` handler.
|
|
1015
|
+
|
|
1016
|
+
- [#55](https://github.com/repobuddy/storybook-addon-vis/pull/55) [`85b9975`](https://github.com/repobuddy/storybook-addon-vis/commit/85b9975957a72cae2b0a2aa3e5f8ad1c2dffaf1b) Thanks [@unional](https://github.com/unional)! - Support `expect(element)`.
|
|
1017
|
+
|
|
1018
|
+
- [#59](https://github.com/repobuddy/storybook-addon-vis/pull/59) [`90153d3`](https://github.com/repobuddy/storybook-addon-vis/commit/90153d37234a0bea29f2262ceab90b8ae0b6933b) Thanks [@unional](https://github.com/unional)! - Simplify setup in `vitest.setup.ts` with `createVisConfig()`.
|
|
1019
|
+
|
|
1020
|
+
- [#60](https://github.com/repobuddy/storybook-addon-vis/pull/60) [`0eb677b`](https://github.com/repobuddy/storybook-addon-vis/commit/0eb677bed475d21b51527d5ee7a157323e1400a3) Thanks [@unional](https://github.com/unional)! - Internalize `expect.extends()` for `storybook` within `defineVisPreview()`.
|
|
1021
|
+
|
|
1022
|
+
- [`5a7777f`](https://github.com/repobuddy/storybook-addon-vis/commit/5a7777f6b080fd81117b8fe72ff6f81cb6855436) Thanks [@unional](https://github.com/unional)! - Rename `visStorybookPreview` to `storybookPreviewVis`
|
|
1023
|
+
|
|
1024
|
+
### Patch Changes
|
|
1025
|
+
|
|
1026
|
+
- [#60](https://github.com/repobuddy/storybook-addon-vis/pull/60) [`30adcef`](https://github.com/repobuddy/storybook-addon-vis/commit/30adcefcbbacfbae2264b32512ba08999021662b) Thanks [@unional](https://github.com/unional)! - Fix `play()` when running in storybook.
|
|
1027
|
+
|
|
1028
|
+
- [`f92a371`](https://github.com/repobuddy/storybook-addon-vis/commit/f92a371cb569f3ef138bc394360846fe6f8396ca) Thanks [@unional](https://github.com/unional)! - Change `shouldTakeSnapshot(ctx)` to accept `any`.
|
|
1029
|
+
Check is done at runtime.
|
|
1030
|
+
This change allows the user to skip the type parameter in `afterEach` hook.
|
|
1031
|
+
|
|
1032
|
+
```ts
|
|
1033
|
+
// from
|
|
1034
|
+
import { StoryContext } from "@storybook/react";
|
|
1035
|
+
import { shouldTakeSnapshot } from "storybook-addon-vis/vitest-setup";
|
|
1036
|
+
import { afterEach } from "vitest";
|
|
1037
|
+
|
|
1038
|
+
afterEach<{ story?: StoryContext }>(async (ctx) => {
|
|
1039
|
+
if (!shouldTakeSnapshot(ctx)) return;
|
|
1040
|
+
// ...
|
|
1041
|
+
});
|
|
1042
|
+
|
|
1043
|
+
// to
|
|
1044
|
+
afterEach(async (ctx) => {
|
|
1045
|
+
if (!shouldTakeSnapshot(ctx)) return;
|
|
1046
|
+
// ...
|
|
1047
|
+
});
|
|
1048
|
+
```
|
|
1049
|
+
|
|
1050
|
+
## 0.8.0
|
|
1051
|
+
|
|
1052
|
+
### Minor Changes
|
|
1053
|
+
|
|
1054
|
+
- [`79ccf83`](https://github.com/repobuddy/storybook-addon-vis/commit/79ccf835fc753319dfe68679926ac3bedb03e01b) Thanks [@unional](https://github.com/unional)! - Refactor `configureSnapshotBeforeAll()` into `setupVitestVis()`.
|
|
1055
|
+
|
|
1056
|
+
```ts
|
|
1057
|
+
// from
|
|
1058
|
+
import { configureSnapshotBeforeAll } from "storybook-addon-vis";
|
|
1059
|
+
import { beforeAll } from "vitest";
|
|
1060
|
+
|
|
1061
|
+
beforeAll(configureSnapshotBeforeAll);
|
|
1062
|
+
|
|
1063
|
+
// to
|
|
1064
|
+
import { setupVitestVis } from "storybook-addon-vis";
|
|
1065
|
+
import { beforeAll } from "vitest";
|
|
1066
|
+
|
|
1067
|
+
const vis = setupVitestVis();
|
|
1068
|
+
|
|
1069
|
+
beforeAll(vis.beforeAll);
|
|
1070
|
+
```
|
|
1071
|
+
|
|
1072
|
+
- [#50](https://github.com/repobuddy/storybook-addon-vis/pull/50) [`062991d`](https://github.com/repobuddy/storybook-addon-vis/commit/062991d22c4a52208157c78b279235b32950da75) Thanks [@unional](https://github.com/unional)! - Remove `configureSnapshotBeforeEach`, no longer needed.
|
|
1073
|
+
|
|
1074
|
+
- [#50](https://github.com/repobuddy/storybook-addon-vis/pull/50) [`180562a`](https://github.com/repobuddy/storybook-addon-vis/commit/180562acbe7b10458175806e0e6d71d2d05a7b70) Thanks [@unional](https://github.com/unional)! - The last `expect().toMatchImageSnapshot()` will be awaited automatically,
|
|
1075
|
+
making it easier to write.
|
|
1076
|
+
|
|
1077
|
+
## 0.7.0
|
|
1078
|
+
|
|
1079
|
+
### Minor Changes
|
|
1080
|
+
|
|
1081
|
+
- [`250611e`](https://github.com/repobuddy/storybook-addon-vis/commit/250611e03660e288ef0ed6034e423b9887087517) Thanks [@unional](https://github.com/unional)! - The `parameters.snapshot` is now honored by `expect(...).toMatchImageSnapshot()` automatically.
|
|
1082
|
+
This applies to both automatic and manual snapshot testing.
|
|
1083
|
+
|
|
1084
|
+
### Patch Changes
|
|
1085
|
+
|
|
1086
|
+
- [`b90b970`](https://github.com/repobuddy/storybook-addon-vis/commit/b90b97045a275ac756fb6344bb0ef7d0b8b158c8) Thanks [@unional](https://github.com/unional)! - Create a manual vitest-plugin type definition.
|
|
1087
|
+
|
|
1088
|
+
## 0.6.3
|
|
1089
|
+
|
|
1090
|
+
### Patch Changes
|
|
1091
|
+
|
|
1092
|
+
- [`ebc3054`](https://github.com/repobuddy/storybook-addon-vis/commit/ebc3054e1dd0388f7e56ac9a7d62e61046fa9823) Thanks [@unional](https://github.com/unional)! - Disable minify to make it easier to debug.
|
|
1093
|
+
|
|
1094
|
+
## 0.6.2
|
|
1095
|
+
|
|
1096
|
+
### Patch Changes
|
|
1097
|
+
|
|
1098
|
+
- [#40](https://github.com/repobuddy/storybook-addon-vis/pull/40) [`9e4cfbf`](https://github.com/repobuddy/storybook-addon-vis/commit/9e4cfbf7fa820fba8f27397ff5b65652c3f41efb) Thanks [@unional](https://github.com/unional)! - Fix [#39](https://github.com/repobuddy/storybook-addon-vis/issues/39)
|
|
1099
|
+
|
|
1100
|
+
## 0.6.1
|
|
1101
|
+
|
|
1102
|
+
### Patch Changes
|
|
1103
|
+
|
|
1104
|
+
- [`18ac025`](https://github.com/repobuddy/storybook-addon-vis/commit/18ac025028ad31e6ed499ad4a6c1e5e5580d1006) Thanks [@unional](https://github.com/unional)! - Enable code splitting to share state between `storybook-addon-vis` and `storybook-addon-vis/vitest-setup`.
|
|
1105
|
+
|
|
1106
|
+
We couldn't reproduce the issue locally, but we believe this change will fix it.
|
|
1107
|
+
|
|
1108
|
+
## 0.6.0
|
|
1109
|
+
|
|
1110
|
+
### Minor Changes
|
|
1111
|
+
|
|
1112
|
+
- [`668c6d9`](https://github.com/repobuddy/storybook-addon-vis/commit/668c6d96e06cf587b319f521a122d18566049f64) Thanks [@unional](https://github.com/unional)! - Add `page.hasImageSnapshot()`.
|
|
1113
|
+
|
|
1114
|
+
Rename type `SnapshotCapturer` to `ImageSnapshotAction`.
|
|
1115
|
+
|
|
1116
|
+
- [`85e5a7b`](https://github.com/repobuddy/storybook-addon-vis/commit/85e5a7b4203c3f1ffa57e88e5d8ac49b437ae19b) Thanks [@unional](https://github.com/unional)! - Add `options.timeout` and default to 3000
|
|
1117
|
+
|
|
1118
|
+
### Patch Changes
|
|
1119
|
+
|
|
1120
|
+
- [`620e71a`](https://github.com/repobuddy/storybook-addon-vis/commit/620e71a392ff0e26afd63e9375b6fabd8ab322ff) Thanks [@unional](https://github.com/unional)! - Add `package.json#repository.directory`.
|
|
1121
|
+
|
|
1122
|
+
## 0.5.0
|
|
1123
|
+
|
|
1124
|
+
### Minor Changes
|
|
1125
|
+
|
|
1126
|
+
- [`4fdecf8`](https://github.com/repobuddy/storybook-addon-vis/commit/4fdecf8939559af982fca8aec6b267870eb7a75f) Thanks [@unional](https://github.com/unional)! - Rename `customizeFilename` to `customizeSnapshotId`.
|
|
1127
|
+
|
|
1128
|
+
## 0.4.1
|
|
1129
|
+
|
|
1130
|
+
### Patch Changes
|
|
1131
|
+
|
|
1132
|
+
- [#25](https://github.com/repobuddy/storybook-addon-vis/pull/25) [`e251f43`](https://github.com/repobuddy/storybook-addon-vis/commit/e251f4321bf29c05e540cfd4636612177db4ca7d) Thanks [@unional](https://github.com/unional)! - Update snapshot failure message so that the message `press u to update snapshot` will show.
|
|
1133
|
+
|
|
1134
|
+
## 0.4.0
|
|
1135
|
+
|
|
1136
|
+
### Minor Changes
|
|
1137
|
+
|
|
1138
|
+
- [`20c5bc7`](https://github.com/repobuddy/storybook-addon-vis/commit/20c5bc7efb862b77b5e94de3f3f515b2e598da26) Thanks [@unional](https://github.com/unional)! - Support update snapshot
|
|
1139
|
+
|
|
1140
|
+
### Patch Changes
|
|
1141
|
+
|
|
1142
|
+
- [`42219eb`](https://github.com/repobuddy/storybook-addon-vis/commit/42219ebb3039b1629cfe0ab08bf9e92e419406e2) Thanks [@unional](https://github.com/unional)! - Fix [#20](https://github.com/repobuddy/storybook-addon-vis/issues/20).
|
|
1143
|
+
Serialize the image takes a long time.
|
|
1144
|
+
|
|
1145
|
+
## 0.3.0
|
|
1146
|
+
|
|
1147
|
+
### Minor Changes
|
|
1148
|
+
|
|
1149
|
+
- [`d9be0aa`](https://github.com/repobuddy/storybook-addon-vis/commit/d9be0aa6d393c66ccb93c079b2f4c11e96a3b254) Thanks [@unional](https://github.com/unional)! - Add `page.imageSnapshot({ customizeFilename() {...} })`.
|
|
1150
|
+
|
|
1151
|
+
## 0.2.0
|
|
1152
|
+
|
|
1153
|
+
### Minor Changes
|
|
1154
|
+
|
|
1155
|
+
- [`f55bb95`](https://github.com/repobuddy/storybook-addon-vis/commit/f55bb9560c069388cf3bfdfb0a4df52e99ad121c) Thanks [@unional](https://github.com/unional)! - Change `getSnapshotPlatform()` to return `local` when not on CI.
|
|
1156
|
+
This is the best setup I have found so far to make the snapshot test work on both local and CI.
|
|
1157
|
+
|
|
1158
|
+
Set default snapshot path with `getSnapshoPlatform` function.
|
|
1159
|
+
|
|
1160
|
+
## 0.1.0
|
|
1161
|
+
|
|
1162
|
+
### Minor Changes
|
|
1163
|
+
|
|
1164
|
+
- [`1e03ebb`](https://github.com/repobuddy/storybook-addon-vis/commit/1e03ebb3e9c9ab525d489b604cd72e337879adb6) Thanks [@unional](https://github.com/unional)! - Add `commands.getSnapshotPlatform()`.
|
|
1165
|
+
|
|
1166
|
+
- [`0f61d50`](https://github.com/repobuddy/storybook-addon-vis/commit/0f61d50b55a581848cce0f9c19fae5a7c13d7ee4) Thanks [@unional](https://github.com/unional)! - Add `commande.isCI` for CI detection during `vitest.setup.ts`
|
|
1167
|
+
|
|
1168
|
+
### Patch Changes
|
|
1169
|
+
|
|
1170
|
+
- [`18383d9`](https://github.com/repobuddy/storybook-addon-vis/commit/18383d9642ed97789baeee395503641e045a86f6) Thanks [@unional](https://github.com/unional)! - Fix plugin default browser.
|
|
1171
|
+
|
|
1172
|
+
- [`840f50d`](https://github.com/repobuddy/storybook-addon-vis/commit/840f50dec81776d2918ed118871bbba17771b1ea) Thanks [@unional](https://github.com/unional)! - Fix clean up during `beforeAll` hook.
|
|
1173
|
+
|
|
1174
|
+
#### ⚠️ Pushed to `main`
|
|
1175
|
+
|
|
1176
|
+
- test: cover image resizer ([@unional](https://github.com/unional))
|
|
1177
|
+
- fix: rename vite plugin name ([@unional](https://github.com/unional))
|
|
1178
|
+
- fix: rename plugin ([@unional](https://github.com/unional))
|
|
1179
|
+
- chore: remove extra files ([@unional](https://github.com/unional))
|
|
1180
|
+
- chore: add verify script ([@unional](https://github.com/unional))
|
|
1181
|
+
- chore: ignore **snapshots**/\*/**results** and diff ([@unional](https://github.com/unional))
|
|
1182
|
+
|
|
1183
|
+
#### Authors: 1
|
|
1184
|
+
|
|
1185
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1186
|
+
|
|
1187
|
+
---
|
|
1188
|
+
|
|
1189
|
+
# v0.0.15 (Tue Oct 29 2024)
|
|
1190
|
+
|
|
1191
|
+
#### ⚠️ Pushed to `main`
|
|
1192
|
+
|
|
1193
|
+
- test: move tests to per platform ([@unional](https://github.com/unional))
|
|
1194
|
+
- test: add test for image resizer ([@unional](https://github.com/unional))
|
|
1195
|
+
- chore: remove prop-types ([@unional](https://github.com/unional))
|
|
1196
|
+
|
|
1197
|
+
#### Authors: 1
|
|
1198
|
+
|
|
1199
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1200
|
+
|
|
1201
|
+
---
|
|
1202
|
+
|
|
1203
|
+
# v0.0.14 (Mon Oct 28 2024)
|
|
1204
|
+
|
|
1205
|
+
#### 🐛 Bug Fix
|
|
1206
|
+
|
|
1207
|
+
- Add renovate.json [#1](https://github.com/repobuddy/storybook-addon-vis/pull/1) ([@renovate[bot]](https://github.com/renovate[bot]))
|
|
1208
|
+
|
|
1209
|
+
#### Authors: 1
|
|
1210
|
+
|
|
1211
|
+
- [@renovate[bot]](https://github.com/renovate[bot])
|
|
1212
|
+
|
|
1213
|
+
---
|
|
1214
|
+
|
|
1215
|
+
# v0.0.13 (Mon Oct 28 2024)
|
|
1216
|
+
|
|
1217
|
+
#### ⚠️ Pushed to `main`
|
|
1218
|
+
|
|
1219
|
+
- feat: param support ([@unional](https://github.com/unional))
|
|
1220
|
+
|
|
1221
|
+
#### Authors: 1
|
|
1222
|
+
|
|
1223
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1224
|
+
|
|
1225
|
+
---
|
|
1226
|
+
|
|
1227
|
+
# v0.0.12 (Mon Oct 28 2024)
|
|
1228
|
+
|
|
1229
|
+
#### ⚠️ Pushed to `main`
|
|
1230
|
+
|
|
1231
|
+
- chore: add editorconfig ([@unional](https://github.com/unional))
|
|
1232
|
+
- feat: add configureSnapshotBeforeAll options ([@unional](https://github.com/unional))
|
|
1233
|
+
|
|
1234
|
+
#### Authors: 1
|
|
1235
|
+
|
|
1236
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1237
|
+
|
|
1238
|
+
---
|
|
1239
|
+
|
|
1240
|
+
# v0.0.11 (Mon Oct 28 2024)
|
|
1241
|
+
|
|
1242
|
+
#### ⚠️ Pushed to `main`
|
|
1243
|
+
|
|
1244
|
+
- docs: top readme link ([@unional](https://github.com/unional))
|
|
1245
|
+
|
|
1246
|
+
#### Authors: 1
|
|
1247
|
+
|
|
1248
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1249
|
+
|
|
1250
|
+
---
|
|
1251
|
+
|
|
1252
|
+
# v0.0.10 (Mon Oct 28 2024)
|
|
1253
|
+
|
|
1254
|
+
#### ⚠️ Pushed to `main`
|
|
1255
|
+
|
|
1256
|
+
- docs: update readme ([@unional](https://github.com/unional))
|
|
1257
|
+
|
|
1258
|
+
#### Authors: 1
|
|
1259
|
+
|
|
1260
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1261
|
+
|
|
1262
|
+
---
|
|
1263
|
+
|
|
1264
|
+
# v0.0.9 (Mon Oct 28 2024)
|
|
1265
|
+
|
|
1266
|
+
#### ⚠️ Pushed to `main`
|
|
1267
|
+
|
|
1268
|
+
- fix: avoid top-level await ([@unional](https://github.com/unional))
|
|
1269
|
+
|
|
1270
|
+
#### Authors: 1
|
|
1271
|
+
|
|
1272
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1273
|
+
|
|
1274
|
+
---
|
|
1275
|
+
|
|
1276
|
+
# v0.0.8 (Mon Oct 28 2024)
|
|
1277
|
+
|
|
1278
|
+
#### 🐛 Bug Fix
|
|
1279
|
+
|
|
1280
|
+
- Remove-reject [#4](https://github.com/repobuddy/storybook-addon-vis/pull/4) ([@unional](https://github.com/unional))
|
|
1281
|
+
|
|
1282
|
+
#### Authors: 1
|
|
1283
|
+
|
|
1284
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1285
|
+
|
|
1286
|
+
---
|
|
1287
|
+
|
|
1288
|
+
# v0.0.7 (Mon Oct 28 2024)
|
|
1289
|
+
|
|
1290
|
+
#### ⚠️ Pushed to `main`
|
|
1291
|
+
|
|
1292
|
+
- fix: remove dep on StoryContext ([@unional](https://github.com/unional))
|
|
1293
|
+
- chore: import link ([@unional](https://github.com/unional))
|
|
1294
|
+
|
|
1295
|
+
#### Authors: 1
|
|
1296
|
+
|
|
1297
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1298
|
+
|
|
1299
|
+
---
|
|
1300
|
+
|
|
1301
|
+
# v0.0.6 (Mon Oct 28 2024)
|
|
1302
|
+
|
|
1303
|
+
#### ⚠️ Pushed to `main`
|
|
1304
|
+
|
|
1305
|
+
- test: use storybook/test ([@unional](https://github.com/unional))
|
|
1306
|
+
|
|
1307
|
+
#### Authors: 1
|
|
1308
|
+
|
|
1309
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1310
|
+
|
|
1311
|
+
---
|
|
1312
|
+
|
|
1313
|
+
# v0.0.5 (Mon Oct 28 2024)
|
|
1314
|
+
|
|
1315
|
+
#### ⚠️ Pushed to `main`
|
|
1316
|
+
|
|
1317
|
+
- fix: stub imagesnapshot result and handling in storybook ([@unional](https://github.com/unional))
|
|
1318
|
+
- feat: invert vitest expect extend ([@unional](https://github.com/unional))
|
|
1319
|
+
- feat: invert storybook export extend ([@unional](https://github.com/unional))
|
|
1320
|
+
- chore: remove extra import ([@unional](https://github.com/unional))
|
|
1321
|
+
- chore: comment out preset ([@unional](https://github.com/unional))
|
|
1322
|
+
- refactor: move logic file ([@unional](https://github.com/unional))
|
|
1323
|
+
- feat: invert vitest-setup ([@unional](https://github.com/unional))
|
|
1324
|
+
- chore: remove building managea, preview, and preset ([@unional](https://github.com/unional))
|
|
1325
|
+
- test: update filename ([@unional](https://github.com/unional))
|
|
1326
|
+
- feat: add match options ([@unional](https://github.com/unional))
|
|
1327
|
+
- feat: take snapshot in lowercase ([@unional](https://github.com/unional))
|
|
1328
|
+
- feat: basig tag support ([@unional](https://github.com/unional))
|
|
1329
|
+
- refactor: test image ([@unional](https://github.com/unional))
|
|
1330
|
+
- fix: extend vitest expect only once ([@unional](https://github.com/unional))
|
|
1331
|
+
- refactor: move page.extend to context ([@unional](https://github.com/unional))
|
|
1332
|
+
- refactor: comment out `rootDir` ([@unional](https://github.com/unional))
|
|
1333
|
+
- refactor: move ([@unional](https://github.com/unional))
|
|
1334
|
+
- fix: remove extra exports ([@unional](https://github.com/unional))
|
|
1335
|
+
- fix: create dest folder when not exist ([@unional](https://github.com/unional))
|
|
1336
|
+
- chore: rename readme ([@unional](https://github.com/unional))
|
|
1337
|
+
|
|
1338
|
+
#### Authors: 1
|
|
1339
|
+
|
|
1340
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1341
|
+
|
|
1342
|
+
---
|
|
1343
|
+
|
|
1344
|
+
# v0.0.4 (Sat Oct 26 2024)
|
|
1345
|
+
|
|
1346
|
+
#### ⚠️ Pushed to `main`
|
|
1347
|
+
|
|
1348
|
+
- fix: clean up dependencies ([@unional](https://github.com/unional))
|
|
1349
|
+
- chore: monorepo ([@unional](https://github.com/unional))
|
|
1350
|
+
|
|
1351
|
+
#### Authors: 1
|
|
1352
|
+
|
|
1353
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1354
|
+
|
|
1355
|
+
---
|
|
1356
|
+
|
|
1357
|
+
# v0.0.2 (Fri Oct 25 2024)
|
|
1358
|
+
|
|
1359
|
+
#### ⚠️ Pushed to `main`
|
|
1360
|
+
|
|
1361
|
+
- feat: handle different size ([@unional](https://github.com/unional))
|
|
1362
|
+
- feat: take snapshot on element ([@unional](https://github.com/unional))
|
|
1363
|
+
- feat: add distribution ([@unional](https://github.com/unional))
|
|
1364
|
+
- docs: misc update ([@unional](https://github.com/unional))
|
|
1365
|
+
- feat: move default snapshot location ([@unional](https://github.com/unional))
|
|
1366
|
+
|
|
1367
|
+
#### Authors: 1
|
|
1368
|
+
|
|
1369
|
+
- Homa Wong ([@unional](https://github.com/unional))
|
|
1370
|
+
|
|
1371
|
+
---
|
|
1372
|
+
|
|
1373
|
+
# v0.0.1 (Fri Oct 25 2024)
|
|
1374
|
+
|
|
1375
|
+
#### ⚠️ Pushed to `main`
|
|
1376
|
+
|
|
1377
|
+
- feat: save diff ([@unional](https://github.com/unional))
|
|
1378
|
+
- chore: remove story examples ([@unional](https://github.com/unional))
|
|
1379
|
+
- feat: toMatchImageSnapshot ([@unional](https://github.com/unional))
|
|
1380
|
+
- refactor: clean ([@unional](https://github.com/unional))
|
|
1381
|
+
- chore: update git-graph config ([@unional](https://github.com/unional))
|
|
1382
|
+
- feat: page.imageShapshot ([@unional](https://github.com/unional))
|
|
1383
|
+
- chore: vscode extension ([@unional](https://github.com/unional))
|
|
1384
|
+
- chore: vscode settings ([@unional](https://github.com/unional))
|
|
1385
|
+
- chore: removt cjs build ([@unional](https://github.com/unional))
|
|
1386
|
+
- feat: imageData conversion ([@unional](https://github.com/unional))
|
|
1387
|
+
- chore: comment example code ([@unional](https://github.com/unional))
|
|
1388
|
+
- test: indicate unit test ([@unional](https://github.com/unional))
|
|
1389
|
+
- fix: stop example exports ([@unional](https://github.com/unional))
|
|
1390
|
+
- chore: delete eject ([@unional](https://github.com/unional))
|
|
1391
|
+
- chore: audit ([@unional](https://github.com/unional))
|
|
1392
|
+
- feat: add context proxy ([@unional](https://github.com/unional))
|
|
1393
|
+
- fix: use esnext and bundler config ([@unional](https://github.com/unional))
|
|
1394
|
+
- chore: add commitlint and changesets ([@unional](https://github.com/unional))
|
|
1395
|
+
- refactor: rename file ([@unional](https://github.com/unional))
|
|
1396
|
+
- refactor: add biome ([@unional](https://github.com/unional))
|
|
1397
|
+
- docs: add doc for delay ([@unional](https://github.com/unional))
|
|
1398
|
+
- chore: @storybook/experimental-addon-test ([@unional](https://github.com/unional))
|
|
1399
|
+
- feat: add params ([@unional](https://github.com/unional))
|
|
1400
|
+
- add nra2 ([@unional](https://github.com/unional))
|
|
1401
|
+
- project setup ([@unional](https://github.com/unional))
|
|
1402
|
+
- Initial commit ([@unional](https://github.com/unional))
|
|
1403
|
+
|
|
1404
|
+
#### Authors: 1
|
|
1405
|
+
|
|
1406
|
+
- Homa Wong ([@unional](https://github.com/unional))
|