Skip to content

Commit d5cdd1c

Browse files
committed
updated dependencies
all official plugins now reside in a common npm scope; cf. 5892840 in the process, switched to official TypeScript plugin (not sure whether that makes a difference nowadays, but it's worth a try - after all, TypeScript support is still considered experimental anyway)
1 parent aa813bc commit d5cdd1c

File tree

9 files changed

+55
-47
lines changed

9 files changed

+55
-47
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ faucet-pipeline-js version history
22
==================================
33

44

5+
v2.1.3
6+
------
7+
8+
_2020-05-15_
9+
10+
maintenance release to update dependencies; no significant changes
11+
12+
513
v2.1.2
614
------
715

lib/bundle/babel.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ module.exports = function generateTranspiler({ esnext, jsx, exclude }, { browser
4040
settings.plugins = plugins;
4141
}
4242

43-
let babel = loadExtension("rollup-plugin-babel",
43+
let babel = loadExtension("@rollup/plugin-babel",
4444
"failed to activate ESNext transpiler", "faucet-pipeline-esnext");
4545
return {
46-
plugin: babel(settings),
46+
plugin: babel.default(settings),
4747
extensions
4848
};
4949
};

lib/bundle/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ function generateConfig({ extensions = [], // eslint-disable-next-line indent
8686
plugins.push(plugin);
8787
}
8888
if(typescript) {
89-
let ts = loadExtension("rollup-plugin-typescript2",
89+
let ts = loadExtension("@rollup/plugin-typescript",
9090
"failed to activate TypeScript", "faucet-pipeline-typescript");
9191
extensions.push(".ts");
9292
// TODO: provide defaults and abstractions for low-level options?

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline-js",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "JavaScript module bundling for faucet-pipeline",
55
"author": "FND",
66
"contributors": [
@@ -27,10 +27,10 @@
2727
},
2828
"dependencies": {
2929
"faucet-pipeline-core": "^1.4.0",
30-
"rollup": "^2.3.4",
30+
"rollup": "^2.10.2",
3131
"rollup-plugin-cleanup": "~3.1.1",
32-
"@rollup/plugin-commonjs": "~11.0.2",
33-
"@rollup/plugin-node-resolve": "~7.1.1"
32+
"@rollup/plugin-commonjs": "~11.1.0",
33+
"@rollup/plugin-node-resolve": "~7.1.3"
3434
},
3535
"devDependencies": {
3636
"eslint-config-fnd-jsx": "^1.8.0",
@@ -39,7 +39,7 @@
3939
"faucet-pipeline-typescript": "file:pkg/faucet-pipeline-typescript",
4040
"faucet-pipeline-jsmin": "file:pkg/faucet-pipeline-jsmin",
4141
"json-diff": "^0.5.4",
42-
"mocha": "^7.1.1",
42+
"mocha": "^7.1.2",
4343
"npm-run-all": "^4.1.5",
4444
"release-util-fnd": "^2.0.0"
4545
}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline-esnext",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "ES6 and beyond for faucet-pipeline",
55
"author": "FND",
66
"license": "Apache-2.0",
@@ -13,9 +13,9 @@
1313
"url": "https://github.com/faucet-pipeline/faucet-pipeline-js/issues"
1414
},
1515
"dependencies": {
16-
"@babel/core": "~7.9.0",
17-
"@babel/preset-env": "~7.9.5",
18-
"faucet-pipeline-js": "2.1.2",
19-
"rollup-plugin-babel": "~4.4.0"
16+
"@babel/core": "~7.9.6",
17+
"@babel/preset-env": "~7.9.6",
18+
"@rollup/plugin-babel": "~5.0.0",
19+
"faucet-pipeline-js": "2.1.3"
2020
}
2121
}

pkg/faucet-pipeline-jsmin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline-jsmin",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "JavaScript minification for faucet-pipeline",
55
"author": "FND",
66
"license": "Apache-2.0",

pkg/faucet-pipeline-jsx/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline-jsx",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "JSX for faucet-pipeline",
55
"author": "FND",
66
"license": "Apache-2.0",
@@ -14,6 +14,6 @@
1414
},
1515
"dependencies": {
1616
"@babel/plugin-transform-react-jsx": "~7.9.4",
17-
"faucet-pipeline-esnext": "2.1.2"
17+
"faucet-pipeline-esnext": "2.1.3"
1818
}
1919
}

pkg/faucet-pipeline-typescript/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline-typescript",
3-
"version": "2.1.2",
3+
"version": "2.1.3",
44
"description": "TypeScript for faucet-pipeline",
55
"author": "FND",
66
"contributors": [
@@ -16,8 +16,8 @@
1616
"url": "https://github.com/faucet-pipeline/faucet-pipeline-js/issues"
1717
},
1818
"dependencies": {
19-
"faucet-pipeline-js": "2.1.2",
20-
"rollup-plugin-typescript2": "~0.27.0",
21-
"typescript": "~3.8.3"
19+
"@rollup/plugin-typescript": "~4.1.1",
20+
"faucet-pipeline-js": "2.1.3",
21+
"typescript": "~3.9.2"
2222
}
2323
}
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
(function () {
22
'use strict';
33

4-
var LogLevel;
5-
(function (LogLevel) {
6-
LogLevel[LogLevel["Debug"] = 0] = "Debug";
7-
LogLevel[LogLevel["Info"] = 1] = "Info";
8-
LogLevel[LogLevel["Critical"] = 2] = "Critical";
9-
})(LogLevel || (LogLevel = {}));
10-
function log(level, msg) {
11-
if (level === LogLevel.Critical) {
12-
console.error(msg);
13-
}
14-
else {
15-
console.log(msg);
16-
}
4+
var LogLevel;
5+
(function (LogLevel) {
6+
LogLevel[LogLevel["Debug"] = 0] = "Debug";
7+
LogLevel[LogLevel["Info"] = 1] = "Info";
8+
LogLevel[LogLevel["Critical"] = 2] = "Critical";
9+
})(LogLevel || (LogLevel = {}));
10+
function log(level, msg) {
11+
if (level === LogLevel.Critical) {
12+
console.error(msg);
13+
}
14+
else {
15+
console.log(msg);
16+
}
1717
}
1818

19-
var generateArticle = function (params) {
20-
var title = params.title, authors = params.authors;
21-
if (typeof title !== "string") {
22-
log(LogLevel.Debug, "auto-generating title");
23-
title = title.main + ": " + title.sub;
24-
}
25-
return title + "\n" + authors.join(", ");
26-
};
27-
generateArticle({
28-
title: {
29-
main: "Hello World",
30-
sub: "sup"
31-
},
32-
authors: ["foo", "bar"]
19+
var generateArticle = function (params) {
20+
var title = params.title, authors = params.authors;
21+
if (typeof title !== "string") {
22+
log(LogLevel.Debug, "auto-generating title");
23+
title = title.main + ": " + title.sub;
24+
}
25+
return title + "\n" + authors.join(", ");
26+
};
27+
generateArticle({
28+
title: {
29+
main: "Hello World",
30+
sub: "sup"
31+
},
32+
authors: ["foo", "bar"]
3333
});
3434

3535
}());

0 commit comments

Comments
 (0)