Skip to content

Commit b6f6150

Browse files
committed
size-limit changes and react-container-query alpha hotfix
1 parent b214abf commit b6f6150

File tree

7 files changed

+10
-6029
lines changed

7 files changed

+10
-6029
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[
22
{
33
path: "dist/bundle.cjs.js",
4-
limit: "6.30KB"
4+
limit: "6.4KB"
55
},
66
{
77
path: "dist/bundle.esm.js",
8-
limit: "6.30KB"
8+
limit: "6.4KB"
99
}
1010
]

packages/container-query/.size-limit

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[
22
{
33
path: "dist/bundle.cjs.js",
4-
limit: "14.30KB"
4+
limit: "19KB"
55
},
66
{
77
path: "dist/bundle.esm.js",
8-
limit: "14.30KB"
8+
limit: "19KB"
99
},
1010
{
1111
path: "dist/bundle.umd.js",
12-
limit: "14.30KB"
12+
limit: "18KB"
1313
}
1414
]
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
[
22
{
33
path: "dist/bundle.cjs.js",
4-
limit: "20KB"
4+
limit: "22KB"
55
},
66
{
77
path: "dist/bundle.esm.js",
8-
limit: "20KB"
8+
limit: "22KB"
99
}
1010
]

packages/react-container-query/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
"dependencies": {
1919
"@zeecoder/container-query": "^2.6.0-alpha.97fec537",
2020
"es6-weak-map": "^2.0.2",
21-
"object-assign": "^4.1.1",
2221
"prop-types": "^15.6.0",
2322
"resize-observer-polyfill": "^1.5.0"
2423
},

packages/react-container-query/rollup/rollup.shared.js

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ export default {
99
"react-dom",
1010
"@zeecoder/container-query",
1111
"prop-types",
12-
"object-assign",
1312
"es6-weak-map",
1413
"resize-observer-polyfill"
1514
]

packages/react-container-query/src/ContainerQuery.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import React, { Component } from "react";
22
import ReactDOM from "react-dom";
33
import PropTypes from "prop-types";
44
import Container from "@zeecoder/container-query";
5-
import objectAssign from "object-assign";
65

76
export default class ContainerQuery extends Component {
87
constructor(props) {
@@ -12,7 +11,7 @@ export default class ContainerQuery extends Component {
1211

1312
this.handleResize = this.handleResize.bind(this);
1413

15-
this.containerOptions = objectAssign({}, this.props.options);
14+
this.containerOptions = { ...this.props.options };
1615

1716
// Listen to size changes only if needed
1817
if (
@@ -71,8 +70,8 @@ export default class ContainerQuery extends Component {
7170
}
7271

7372
ContainerQuery.defaultProps = {
74-
stats: {},
75-
meta: {},
73+
stats: null,
74+
meta: null,
7675
options: {}
7776
};
7877

0 commit comments

Comments
 (0)