Skip to content

Commit d5c2d20

Browse files
committed
upgraded dependencies
* switching to new plugin API, though that's not strictly necessary thanks to backwards compatibility (i.e. there shouldn't be any user-facing issues) * release-util-fnd now provides a `realpath` function * various minor tweaks
1 parent 5892840 commit d5c2d20

File tree

28 files changed

+60
-126
lines changed

28 files changed

+60
-126
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
node-version:
10-
- 8.x
10+
- 10.x
1111
- 12.x
1212
steps:
1313
- uses: actions/checkout@v1

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.0
6+
------
7+
8+
_2020-03-16_
9+
10+
maintenance release to update dependencies; no significant changes
11+
12+
513
v2.0.10
614
-------
715

bin/release

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
set -eu
44

5-
root=`dirname $0`
6-
root=`node -r fs -p "fs.realpathSync(process.argv[1]);" "$root/.."`
7-
85
. ./node_modules/release-util-fnd/lib.sh
96

7+
root=`dirname $0`
8+
root=`realpath "$root/.."`
9+
1010
skip=${SKIP_UPDATES:-""}
1111
if [ -z "$skip" ]; then
1212
"$root/bin/update-pkg"

bin/update-pkg

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
set -eu
44

5-
baseDir=`dirname $0`
6-
baseDir="$baseDir/../pkg"
7-
baseDir=`node -r fs -p "fs.realpathSync(process.argv[1]);" "$baseDir"`
5+
root=`dirname $0`
6+
root="$root/.."
7+
root=`node -r fs -p "fs.realpathSync(process.argv[1]);" "$root"`
88

99
abort() {
1010
message="$@"
@@ -16,9 +16,9 @@ abort() {
1616
which ncu || abort "ERROR: npm-check-updates missing"
1717

1818
echo "==== updating faucet-pipeline-js ====" >&2
19-
(cd "$baseDir/.."; ncu -u)
19+
(cd "$root"; ncu -u)
2020

21-
for dir in `find "$baseDir" -type d -d 1`; do
21+
for dir in `find "$root/pkg" -type d -d 1`; do
2222
echo "==== updating `basename $dir` ====" >&2
2323
(cd "$dir"; ncu -u)
2424
done

lib/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,19 @@ let Bundle = require("./bundle");
44
let { abort, repr } = require("faucet-pipeline-core/lib/util");
55
let path = require("path");
66

7-
module.exports = (config, assetManager, { browsers, compact, sourcemaps } = {}) => {
7+
module.exports = {
8+
key: "js",
9+
bucket: "scripts",
10+
plugin: faucetJS
11+
};
12+
13+
function faucetJS(config, assetManager, { browsers, compact, sourcemaps } = {}) {
814
let bundlers = config.map(bundleConfig => makeBundler(bundleConfig,
915
assetManager, { browsers, compact, sourcemaps }));
1016

1117
return filepaths => Promise.all(bundlers.
1218
map(bundler => bundler(filepaths)));
13-
};
19+
}
1420

1521
function makeBundler(bundleConfig, assetManager, { browsers, compact, sourcemaps } = {}) {
1622
// NB: bundle-specific configuration can override global 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.0.10",
3+
"version": "2.1.0",
44
"description": "JavaScript module bundling for faucet-pipeline",
55
"author": "FND",
66
"contributors": [
@@ -26,8 +26,8 @@
2626
"node": ">=8"
2727
},
2828
"dependencies": {
29-
"faucet-pipeline-core": "^1.2.2",
30-
"rollup": "^1.31.0",
29+
"faucet-pipeline-core": "^1.4.0",
30+
"rollup": "^2.0.6",
3131
"rollup-plugin-cleanup": "~3.1.1",
3232
"@rollup/plugin-commonjs": "~11.0.2",
3333
"@rollup/plugin-node-resolve": "~7.1.1"
@@ -39,8 +39,8 @@
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.0.1",
42+
"mocha": "^7.1.0",
4343
"npm-run-all": "^4.1.5",
44-
"release-util-fnd": "^1.1.1"
44+
"release-util-fnd": "^2.0.0"
4545
}
4646
}

pkg/faucet-pipeline-esnext/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-esnext",
3-
"version": "2.0.10",
3+
"version": "2.1.0",
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.8.4",
17-
"@babel/preset-env": "~7.8.4",
18-
"faucet-pipeline-js": "2.0.10",
16+
"@babel/core": "~7.8.7",
17+
"@babel/preset-env": "~7.8.7",
18+
"faucet-pipeline-js": "2.1.0",
1919
"rollup-plugin-babel": "~4.3.3"
2020
}
2121
}

pkg/faucet-pipeline-jsmin/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-jsmin",
3-
"version": "2.0.10",
3+
"version": "2.1.0",
44
"description": "JavaScript minification for faucet-pipeline",
55
"author": "FND",
66
"license": "Apache-2.0",
@@ -13,6 +13,6 @@
1313
"url": "https://github.com/faucet-pipeline/faucet-pipeline-js/issues"
1414
},
1515
"dependencies": {
16-
"rollup-plugin-terser": "^5.2.0"
16+
"rollup-plugin-terser": "^5.3.0"
1717
}
1818
}

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.0.10",
3+
"version": "2.1.0",
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.8.3",
17-
"faucet-pipeline-esnext": "2.0.10"
17+
"faucet-pipeline-esnext": "2.1.0"
1818
}
1919
}

pkg/faucet-pipeline-typescript/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "faucet-pipeline-typescript",
3-
"version": "2.0.10",
3+
"version": "2.1.0",
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.0.10",
19+
"faucet-pipeline-js": "2.1.0",
2020
"rollup-plugin-typescript2": "~0.26.0",
21-
"typescript": "~3.7.5"
21+
"typescript": "~3.8.3"
2222
}
2323
}

0 commit comments

Comments
 (0)