@pieai/swimmer-ui-kit 1.10.0 → 1.10.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/index.js +519 -514
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,18 @@
3
3
  All notable changes to `@pieai/swimmer-ui-kit`.
4
4
  Format: [Keep a Changelog](https://keepachangelog.com); versioning: semver.
5
5
 
6
+ ## 1.10.1
7
+
8
+ ### Fixed
9
+
10
+ - **`<LiquidGroup>` threw where `window` exists and `matchMedia` does not.**
11
+ The reduced-motion hook guarded on `typeof window === 'undefined'`, which is
12
+ true in node and false in jsdom — and jsdom has no `matchMedia`. Any consumer
13
+ testing in jsdom, and any server render that shims `window`, hit a TypeError
14
+ inside a `useState` initializer. Both the initializer and the subscription now
15
+ ask for the function itself. The kit's own suite runs in node, so the middle
16
+ case had never been exercised; a regression test now pins it.
17
+
6
18
  ## 1.10.0
7
19
 
8
20
  ### Added