Skip to content

Commit 235089a

Browse files
Merge pull request #149 from RobotlegsJS/upgrade-dependencies
Update dependencies to latest version 🚀
2 parents e552fe7 + 35bae02 commit 235089a

File tree

7 files changed

+924
-1861
lines changed

7 files changed

+924
-1861
lines changed

.mocharc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recursive": true,
3+
"full-trace": true,
4+
"bail": true,
5+
"spec": "./test/**/*.test.ts"
6+
}

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ Types of changes:
4747

4848
- Migrate to `eslint` (see #148).
4949

50-
- Update `tslib` to version `2.0.3` (see #144).
50+
- Update `tslib` to version `2.2.0` (see #149).
5151

5252
- Update dev dependencies to latest version.
5353

dist/signals.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"compile:src": "tsc -d --importHelpers",
1818
"compile:test": "tsc -p tsconfig.test.json -d --importHelpers",
1919
"dev": "webpack",
20-
"build": "webpack --env.production",
20+
"build": "webpack --env production",
2121
"prepare": "npm run clean-up && npm run compile:src",
2222
"prepublishOnly": "publish-please guard",
2323
"publish-please": "npm run lint && npm run autoformat && npm run clean-up && npm run build && npm run test && publish-please"
@@ -34,7 +34,8 @@
3434
".ts"
3535
],
3636
"require": [
37-
"ts-node/register"
37+
"ts-node/register",
38+
"source-map-support/register"
3839
],
3940
"reporter": [
4041
"text-summary",
@@ -72,20 +73,20 @@
7273
"lib": "./lib"
7374
},
7475
"dependencies": {
75-
"tslib": "^2.0.3"
76+
"tslib": "^2.2.0"
7677
},
7778
"devDependencies": {
7879
"@istanbuljs/nyc-config-typescript": "^1.0.1",
79-
"@types/bluebird": "^3.5.33",
80-
"@types/chai": "^4.2.14",
81-
"@types/mocha": "^8.2.0",
82-
"@types/sinon": "^9.0.9",
80+
"@types/bluebird": "^3.5.35",
81+
"@types/chai": "^4.2.18",
82+
"@types/mocha": "^8.2.2",
83+
"@types/sinon": "^10.0.0",
8384
"@types/webpack-env": "^1.16.0",
8485
"@typescript-eslint/eslint-plugin": "^4.24.0",
8586
"@typescript-eslint/parser": "^4.24.0",
8687
"bluebird": "^3.7.2",
8788
"browserify-versionify": "^1.0.6",
88-
"chai": "^4.2.0",
89+
"chai": "^4.3.4",
8990
"es6-map": "^0.1.5",
9091
"es6-symbol": "^3.1.3",
9192
"eslint": "^7.27.0",
@@ -96,35 +97,35 @@
9697
"eslint-plugin-react": "^7.23.2",
9798
"eslint-plugin-unicorn": "^32.0.1",
9899
"glslify": "^7.1.1",
99-
"imports-loader": "^0.8.0",
100+
"imports-loader": "^3.0.0",
100101
"istanbul-instrumenter-loader": "^3.0.1",
101-
"karma": "^4.4.1",
102+
"karma": "^6.3.2",
102103
"karma-chai-sinon": "^0.1.5",
103104
"karma-chrome-launcher": "^3.1.0",
104-
"karma-coverage-istanbul-reporter": "^2.1.1",
105+
"karma-coverage-istanbul-reporter": "^3.0.3",
105106
"karma-es6-shim": "^1.0.0",
106-
"karma-mocha": "^1.3.0",
107+
"karma-mocha": "^2.0.1",
107108
"karma-mocha-reporter": "^2.2.5",
108109
"karma-sinon-chai": "^2.0.2",
109110
"karma-sourcemap-loader": "^0.3.8",
110111
"karma-sourcemap-writer": "^0.1.2",
111-
"karma-webpack": "^4.0.2",
112-
"mocha": "^7.2.0",
112+
"karma-webpack": "^5.0.0",
113+
"mocha": "^8.4.0",
113114
"nyc": "^15.1.0",
114115
"prettier": "^2.3.0",
115116
"publish-please": "^5.5.2",
116-
"puppeteer": "^5.5.0",
117+
"puppeteer": "^9.1.1",
117118
"reflect-metadata": "^0.1.13",
118119
"rimraf": "^3.0.2",
119-
"sinon": "^9.2.2",
120-
"sinon-chai": "^3.5.0",
120+
"sinon": "^10.0.0",
121+
"sinon-chai": "^3.6.0",
121122
"source-map-support": "^0.5.19",
122-
"terser-webpack-plugin": "^2.3.5",
123-
"ts-loader": "^8.0.12",
123+
"terser-webpack-plugin": "^5.1.2",
124+
"ts-loader": "^9.2.1",
124125
"ts-node": "^9.1.1",
125-
"typescript": "^4.1.3",
126-
"webpack": "^4.44.2",
127-
"webpack-cli": "^3.3.12",
128-
"webpack-dev-server": "^3.11.0"
126+
"typescript": "^4.2.4",
127+
"webpack": "^5.37.1",
128+
"webpack-cli": "^4.7.0",
129+
"webpack-dev-server": "^3.11.2"
129130
}
130131
}

test/mocha.opts

Lines changed: 0 additions & 6 deletions
This file was deleted.

webpack.config.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const webpack = require("webpack");
22
const path = require("path");
33
const TerserPlugin = require("terser-webpack-plugin");
44

5-
module.exports = env => {
5+
module.exports = (env) => {
66
if (!env) env = { production: false, karma: false };
77

88
let mode = env.production ? "production" : "development";
@@ -31,14 +31,11 @@ module.exports = env => {
3131
rules: [
3232
{
3333
test: /\.ts$/,
34-
loader: "ts-loader?configFile=" + tsconfig
34+
use: [{ loader: "ts-loader", options: { configFile: tsconfig } }]
3535
},
3636
{
3737
test: env.production /* disable this loader for production builds */ ? /^$/ : /^.*(src).*\.ts$/,
3838
loader: "istanbul-instrumenter-loader",
39-
query: {
40-
embedSource: true
41-
},
4239
enforce: "post"
4340
}
4441
]
@@ -52,10 +49,10 @@ module.exports = env => {
5249
minimize: true,
5350
minimizer: [
5451
new TerserPlugin({
55-
cache: true,
5652
parallel: 4,
53+
extractComments: false,
5754
terserOptions: {
58-
output: {
55+
format: {
5956
comments: false
6057
}
6158
}

0 commit comments

Comments
 (0)