@@ -7,10 +7,69 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
7
7
8
8
## [ 3.0.0]
9
9
10
+ ### Fixed
11
+
12
+ - Tests now check if custom props are properly set.
13
+ - Change sets are tested with hyphenated prop names instead of camel cased ones.
14
+ - ` container-query `
15
+ - Value precision is now consistent across browsers. (Instead of chrome
16
+ applying 1px and firefox 1.00px for example.)
17
+
18
+ ### Added
19
+
20
+ - Testing in Node 10
21
+ - Integration tests, supported by SauceLabs
22
+ - ` postcss-container-query `
23
+ - [ Parcel bundler] ( https://github.com/parcel-bundler/parcel ) support.
24
+ Re-running the plugin on the same file is now safe. (The Parcel bundler reruns
25
+ the same plugins over the same css file multiple times.)
26
+
27
+ ### Removed
28
+
29
+ - "test" script is now only in the root, instead of in every package.
30
+ - ** [ BREAKING] ** No longer testing for Node 7 and 6 (dom-testing-library needs 8
31
+ and up, and the real targets are the browsers anyway.)
32
+ - ** [ BREAKING] ** Removed test running from Node 6
33
+ - ` react-container-query `
34
+ - ** [ BREAKING] ** Removed the "render" prop from ContainerQuery in favour of
35
+ using children. (The former was not documented anyway.)
36
+ - ** [ BREAKING] ** Removed the ` ResizeObserver ` component in favour of the
37
+ [ react-resize-observer] ( https://github.com/ZeeCoder/react-resize-observer ) and
38
+ [ use-resize-observer] ( https://github.com/ZeeCoder/use-resize-observer ) packages.
39
+ - ** [ BREAKING] ** Removed the default export. (Both ContainerQuery and withContainerQuery
40
+ is still available as named exports.)
41
+ - ** [ BREAKING] ** Removed the ` stats ` prop from ContainerQuery. (Always use
42
+ ` meta ` instead.)
43
+
10
44
### Changed
11
45
46
+ - Removed unnecessary files from the packages.
47
+ - ` container-query-meta-builder `
48
+ - Removed the engines field package.json field.
49
+ - ** [ BREAKING] ** Removed the UMD build.
12
50
- ` postcss-container-query `
13
- - Moved ` getMetadataFromMessages ` under the lib/ folder.
51
+ - ** [ BREAKING] ** Minimum tested version lifted to v8. (The engines field still
52
+ allows for v6.)
53
+ - ** [ BREAKING] ** Dropped the ` getJSON ` option, and no json is saved by default.
54
+ The new behaviour is to use the ICSS ` :export ` syntax, which then can be
55
+ imported through css-loader. (The meta object is still passed down in the
56
+ postcss plugin messages in case it's needed.)
57
+ - ** [ BREAKING] ** Removed ` saveMeta ` .
58
+ - ** [ BREAKING] ** Moved ` getMetadataFromMessages ` from root to the lib/ folder.
59
+ - ` react-container-query `
60
+ - ` ContainerQuery ` no longer returns with a "null" size object when a function
61
+ is passed in as the children prop. Instead it returns with ` {width: 0, height: 0} `
62
+ initially, then updates with the observed container element.
63
+ - ** [ BREAKING] ** ` ContainerQuery ` now renders a div root node by default, inside
64
+ of which it renders all children. (Also accepts an ` as ` prop to change the
65
+ tag type.)
66
+ - ** [ BREAKING] ** ContainerQuery no longer returns an object for size, but width
67
+ and height as the first parameter of the child function
68
+ - ** [ BREAKING] ** ContainerQuery now returns 1x1 dimensions before the ResizeObserver
69
+ kicks in
70
+ - ` container-query `
71
+ - ** [ BREAKING] ** Set the pixel precision to be 0, so that whole numbers are
72
+ applied by default.
14
73
15
74
## [ 3.0.0-alpha.3]
16
75
0 commit comments