Skip to content

Commit c7a55cc

Browse files
committed
container-query dep upgrades
1 parent df4970b commit c7a55cc

File tree

7 files changed

+1835
-1173
lines changed

7 files changed

+1835
-1173
lines changed

packages/container-query/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
"prepublish": "yarn build"
2323
},
2424
"devDependencies": {
25+
"babel-core": "6",
2526
"babel-plugin-external-helpers": "^6.22.0",
2627
"babel-plugin-lodash": "^3.2.11",
2728
"babel-plugin-transform-flow-strip-types": "^6.22.0",
2829
"babel-preset-env": "^1.6.0",
29-
"flow-bin": "^0.55.0",
30-
"jest": "^21.1.0",
30+
"flow-bin": "^0.66.0",
31+
"jest": "^22.4.2",
3132
"npm-run-all": "^4.1.2",
32-
"rollup": "^0.50.0",
33+
"rollup": "^0.56.2",
3334
"rollup-plugin-babel": "^3.0.2",
3435
"rollup-plugin-commonjs": "^8.0.2",
3536
"rollup-plugin-flow": "^1.1.1",
3637
"rollup-plugin-node-resolve": "^3.0.0",
37-
"rollup-plugin-uglify": "^2.0.1",
38-
"size-limit": "^0.14.0",
39-
"uglify-es": "^3.0.26"
38+
"rollup-plugin-uglify": "^3.0.0",
39+
"size-limit": "^0.15.1"
4040
},
4141
"dependencies": {
4242
"es6-weak-map": "^2.0.2",
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import uglify from "rollup-plugin-uglify";
21
import sharedConfig from "./rollup.shared";
32

43
sharedConfig.output = [
@@ -8,6 +7,4 @@ sharedConfig.output = [
87
}
98
];
109

11-
sharedConfig.plugins.push(uglify());
12-
1310
export default sharedConfig;
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import uglify from "rollup-plugin-uglify";
2-
import { minify } from "uglify-es";
31
import sharedConfig from "./rollup.shared";
42

53
sharedConfig.output = [
@@ -9,7 +7,4 @@ sharedConfig.output = [
97
}
108
];
119

12-
// @see https://www.npmjs.com/package/rollup-plugin-uglify#warning
13-
sharedConfig.plugins.push(uglify({}, minify));
14-
1510
export default sharedConfig;

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import flow from "rollup-plugin-flow";
22
import babel from "rollup-plugin-babel";
3+
import uglify from "rollup-plugin-uglify";
34

45
export default {
56
input: __dirname + "/../src/Container.js",
6-
plugins: [flow(), babel()],
7+
plugins: [flow(), babel(), uglify()],
78
external: [
89
"es6-weak-map",
910
"object-assign",

packages/container-query/rollup/rollup.umd.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import resolve from "rollup-plugin-node-resolve";
2-
import uglify from "rollup-plugin-uglify";
32
import sharedConfig from "./rollup.shared";
43
import commonjs from "rollup-plugin-commonjs";
54

@@ -11,9 +10,9 @@ sharedConfig.output = [
1110
}
1211
];
1312

14-
sharedConfig.plugins.unshift(commonjs());
15-
sharedConfig.plugins.unshift(resolve());
16-
sharedConfig.plugins.push(uglify());
13+
// flow plugin has to be the first one
14+
sharedConfig.plugins.splice(1, 0, commonjs());
15+
sharedConfig.plugins.splice(1, 0, resolve());
1716

1817
delete sharedConfig.external;
1918

packages/container-query/src/Container.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const mutationObserver = new MutationObserver(mutationRecords => {
4343
// Remove container element from registry and unobserve resize changes
4444
const removedNodesLength = mutationRecord.removedNodes.length;
4545
for (let i = 0; i < removedNodesLength; i++) {
46-
const node: Node = mutationRecord.removedNodes[i];
46+
const node: Element = mutationRecord.removedNodes[i];
4747

4848
if (containerRegistry.has(node)) {
4949
resizeObserver.unobserve(node);

0 commit comments

Comments
 (0)