Skip to content

Commit f6f714d

Browse files
committed
upgraded dependencies
1 parent f534d52 commit f6f714d

File tree

12 files changed

+77
-36
lines changed

12 files changed

+77
-36
lines changed

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ jobs:
88
matrix:
99
node-version:
1010
- 14.x
11-
- 16.x
12-
- 17.x
11+
- 18.x
12+
- 19.x
1313
steps:
1414
- uses: actions/checkout@v3
1515
- uses: actions/setup-node@v3

lib/bundle/bundler.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module.exports = function generateBundle(entryPoint, config, cache) {
1414
return bundle.generate(writeConfig);
1515
}).
1616
then(({ output }) => {
17+
output = output.filter(item => item.type !== "asset"); // XXX: simplistic?
1718
if(output.length !== 1) { // just to be safe
1819
throw new Error("unexpected chunking");
1920
}

lib/bundle/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ function determineCompacting(type = true) {
153153
abort(`unknown compacting option ${type}`);
154154
}
155155

156-
let { terser } = loadExtension("rollup-plugin-terser",
156+
let terser = loadExtension("@rollup/plugin-terser",
157157
"failed to activate minification", "faucet-pipeline-jsmin");
158158
return terser(options);
159159
}

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
"lint": "eslint --cache --ext .js --ext .jsx lib bin/validate-dependencies test/unit samples pkg && echo ✓"
2424
},
2525
"engines": {
26-
"node": ">=8"
26+
"node": ">=14"
2727
},
2828
"dependencies": {
29-
"@rollup/plugin-commonjs": "~21.0.2",
30-
"@rollup/plugin-node-resolve": "~13.1.3",
31-
"faucet-pipeline-core": "^1.4.0",
32-
"rollup": "^2.70.0",
29+
"@rollup/plugin-commonjs": "~24.0.0",
30+
"@rollup/plugin-node-resolve": "~15.0.1",
31+
"faucet-pipeline-core": "^2.0.0",
32+
"rollup": "^3.10.0",
3333
"rollup-plugin-cleanup": "~3.2.1"
3434
},
3535
"devDependencies": {
@@ -38,8 +38,8 @@
3838
"faucet-pipeline-jsmin": "file:pkg/faucet-pipeline-jsmin",
3939
"faucet-pipeline-jsx": "file:pkg/faucet-pipeline-jsx",
4040
"faucet-pipeline-typescript": "file:pkg/faucet-pipeline-typescript",
41-
"json-diff": "^0.7.2",
42-
"mocha": "^9.2.1",
41+
"json-diff": "^1.0.0",
42+
"mocha": "^10.2.0",
4343
"npm-run-all": "^4.1.5",
4444
"release-util-fnd": "^3.0.0"
4545
}

pkg/faucet-pipeline-esnext/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
"url": "https://github.com/faucet-pipeline/faucet-pipeline-js/issues"
1414
},
1515
"dependencies": {
16-
"@babel/core": "~7.17.5",
17-
"@babel/preset-env": "~7.16.11",
18-
"@rollup/plugin-babel": "~5.3.1",
16+
"@babel/core": "~7.20.12",
17+
"@babel/preset-env": "~7.20.2",
18+
"@rollup/plugin-babel": "~6.0.3",
1919
"faucet-pipeline-js": "2.1.8"
2020
}
2121
}

pkg/faucet-pipeline-jsmin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
"url": "https://github.com/faucet-pipeline/faucet-pipeline-js/issues"
1414
},
1515
"dependencies": {
16-
"rollup-plugin-terser": "^7.0.2"
16+
"@rollup/plugin-terser": "^0.3.0"
1717
}
1818
}

pkg/faucet-pipeline-jsx/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"url": "https://github.com/faucet-pipeline/faucet-pipeline-js/issues"
1414
},
1515
"dependencies": {
16-
"@babel/plugin-transform-react-jsx": "~7.17.3",
16+
"@babel/plugin-transform-react-jsx": "~7.20.7",
1717
"faucet-pipeline-esnext": "2.1.8"
1818
}
1919
}

pkg/faucet-pipeline-typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
"url": "https://github.com/faucet-pipeline/faucet-pipeline-js/issues"
1717
},
1818
"dependencies": {
19-
"@rollup/plugin-typescript": "~8.3.1",
19+
"@rollup/plugin-typescript": "~11.0.0",
2020
"faucet-pipeline-js": "2.1.8",
21-
"tslib": "~2.3.1",
22-
"typescript": "~4.6.2"
21+
"tslib": "~2.4.1",
22+
"typescript": "~4.9.4"
2323
}
2424
}

test/cli/test_browserslist/expected_legacy.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ function _classCallCheck(instance, Constructor) {
33
throw new TypeError("Cannot call a class as a function");
44
}
55
}
6-
76
function _defineProperties(target, props) {
87
for (var i = 0; i < props.length; i++) {
98
var descriptor = props[i];
109
descriptor.enumerable = descriptor.enumerable || false;
1110
descriptor.configurable = true;
1211
if ("value" in descriptor) descriptor.writable = true;
13-
Object.defineProperty(target, descriptor.key, descriptor);
12+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
1413
}
1514
}
16-
1715
function _createClass(Constructor, protoProps, staticProps) {
1816
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1917
if (staticProps) _defineProperties(Constructor, staticProps);
@@ -22,6 +20,20 @@ function _createClass(Constructor, protoProps, staticProps) {
2220
});
2321
return Constructor;
2422
}
23+
function _toPrimitive(input, hint) {
24+
if (typeof input !== "object" || input === null) return input;
25+
var prim = input[Symbol.toPrimitive];
26+
if (prim !== undefined) {
27+
var res = prim.call(input, hint || "default");
28+
if (typeof res !== "object") return res;
29+
throw new TypeError("@@toPrimitive must return a primitive value.");
30+
}
31+
return (hint === "string" ? String : Number)(input);
32+
}
33+
function _toPropertyKey(arg) {
34+
var key = _toPrimitive(arg, "string");
35+
return typeof key === "symbol" ? key : String(key);
36+
}
2537

2638
var Util = /*#__PURE__*/_createClass(function Util() {
2739
_classCallCheck(this, Util);

test/cli/test_jsx/expected.js

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,15 @@ function _classCallCheck(instance, Constructor) {
33
throw new TypeError("Cannot call a class as a function");
44
}
55
}
6-
76
function _defineProperties(target, props) {
87
for (var i = 0; i < props.length; i++) {
98
var descriptor = props[i];
109
descriptor.enumerable = descriptor.enumerable || false;
1110
descriptor.configurable = true;
1211
if ("value" in descriptor) descriptor.writable = true;
13-
Object.defineProperty(target, descriptor.key, descriptor);
12+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
1413
}
1514
}
16-
1715
function _createClass(Constructor, protoProps, staticProps) {
1816
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1917
if (staticProps) _defineProperties(Constructor, staticProps);
@@ -22,6 +20,20 @@ function _createClass(Constructor, protoProps, staticProps) {
2220
});
2321
return Constructor;
2422
}
23+
function _toPrimitive(input, hint) {
24+
if (typeof input !== "object" || input === null) return input;
25+
var prim = input[Symbol.toPrimitive];
26+
if (prim !== undefined) {
27+
var res = prim.call(input, hint || "default");
28+
if (typeof res !== "object") return res;
29+
throw new TypeError("@@toPrimitive must return a primitive value.");
30+
}
31+
return (hint === "string" ? String : Number)(input);
32+
}
33+
function _toPropertyKey(arg) {
34+
var key = _toPrimitive(arg, "string");
35+
return typeof key === "symbol" ? key : String(key);
36+
}
2537

2638
var MyComponent = /*#__PURE__*/_createClass(function MyComponent() {
2739
_classCallCheck(this, MyComponent);

0 commit comments

Comments
 (0)