Skip to content

Commit 1a45a5b

Browse files
committed
Update all dependencies
1 parent 862090b commit 1a45a5b

File tree

5 files changed

+3187
-4560
lines changed

5 files changed

+3187
-4560
lines changed

package.json

Lines changed: 46 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
11
{
22
"private": true,
33
"dependencies": {
4-
"@emotion/react": "^11.4.1",
5-
"@emotion/styled": "^11.3.0",
6-
"@fortawesome/fontawesome-svg-core": "^1.2.36",
7-
"@fortawesome/free-solid-svg-icons": "^5.15.4",
8-
"@fortawesome/react-fontawesome": "^0.1.15",
9-
"@octokit/plugin-throttling": "^3.6.2",
10-
"@octokit/rest": "^18.9.0",
11-
"@types/lodash": "^4.14.172",
4+
"@emotion/react": "^11.10.0",
5+
"@emotion/styled": "^11.10.0",
6+
"@fortawesome/fontawesome-svg-core": "^6.1.2",
7+
"@fortawesome/free-solid-svg-icons": "^6.1.2",
8+
"@fortawesome/react-fontawesome": "^0.2.0",
9+
"@octokit/plugin-throttling": "^4.1.0",
10+
"@octokit/rest": "^19.0.3",
11+
"@types/lodash": "^4.14.182",
1212
"assert-never": "^1.2.1",
13-
"bootstrap": "^4",
14-
"graphql": "^15.5.1",
15-
"graphql-request": "^3.5.0",
13+
"bootstrap": "^5.2.0",
14+
"graphql": "^16.5.0",
15+
"graphql-request": "^4.3.0",
1616
"lodash": "^4.17.21",
17-
"mobx": "^6.3.2",
18-
"mobx-react-lite": "^3.2.0",
19-
"moment": "^2.29.1",
20-
"react": "^17.0.2",
21-
"react-bootstrap": "^1.6.1",
22-
"react-dom": "^17.0.2",
23-
"react-spinners": "^0.11.0"
17+
"mobx": "^6.6.1",
18+
"mobx-react-lite": "^3.4.0",
19+
"moment": "^2.29.4",
20+
"react": "^18.2.0",
21+
"react-bootstrap": "^2.4.0",
22+
"react-dom": "^18.2.0",
23+
"react-spinners": "^0.13.4"
2424
},
2525
"devDependencies": {
26-
"@babel/core": "^7.15.0",
27-
"@babel/preset-env": "^7.15.0",
28-
"@octokit/core": "^3.5.1",
29-
"@types/chrome": "^0.0.154",
30-
"@types/jest": "^26.0.24",
31-
"@types/node": "^16.4.13",
32-
"@types/react": "^17.0.15",
33-
"@types/react-dom": "^17.0.9",
34-
"@typescript-eslint/eslint-plugin": "^4.28.5",
35-
"@typescript-eslint/parser": "^4.29.0",
36-
"babel-loader": "^8.2.2",
37-
"copy-webpack-plugin": "^9.0.1",
38-
"css-loader": "^6.2.0",
39-
"eslint": "^7.32.0",
40-
"eslint-config-prettier": "^7",
41-
"eslint-plugin-prettier": "^3.4.0",
42-
"eslint-plugin-react": "^7.24.0",
43-
"html-webpack-plugin": "^5.3.2",
44-
"jest": "^27.0.6",
45-
"prettier": "^2.3.2",
46-
"style-loader": "^3.2.1",
47-
"ts-jest": "^27.0.4",
48-
"ts-loader": "^9.2.5",
49-
"typescript": "^4.3.5",
50-
"webpack": "^5.49.0",
51-
"webpack-bundle-analyzer": "^4.4.2",
52-
"webpack-cli": "^4.7.2",
53-
"webpack-dev-server": "^3.11.2"
26+
"@babel/core": "^7.18.10",
27+
"@babel/preset-env": "^7.18.10",
28+
"@octokit/core": "^4.0.4",
29+
"@types/chrome": "^0.0.193",
30+
"@types/jest": "^28.1.6",
31+
"@types/node": "^18.6.3",
32+
"@types/react": "^18.0.15",
33+
"@types/react-dom": "^18.0.6",
34+
"@typescript-eslint/eslint-plugin": "^5.32.0",
35+
"@typescript-eslint/parser": "^5.32.0",
36+
"babel-loader": "^8.2.5",
37+
"copy-webpack-plugin": "^11.0.0",
38+
"css-loader": "^6.7.1",
39+
"eslint": "^8.21.0",
40+
"eslint-config-prettier": "^8.5.0",
41+
"eslint-plugin-prettier": "^4.2.1",
42+
"eslint-plugin-react": "^7.30.1",
43+
"html-webpack-plugin": "^5.5.0",
44+
"jest": "^28.1.3",
45+
"prettier": "^2.7.1",
46+
"style-loader": "^3.3.1",
47+
"ts-jest": "^28.0.7",
48+
"ts-loader": "^9.3.1",
49+
"typescript": "^4.7.4",
50+
"webpack": "^5.74.0",
51+
"webpack-bundle-analyzer": "^4.5.0",
52+
"webpack-cli": "^4.10.0",
53+
"webpack-dev-server": "^4.9.3"
5454
},
5555
"scripts": {
5656
"start": "webpack serve",

src/components/Popup.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export const Popup = observer((props: PopupProps) => {
106106
{props.core.filteredPullRequests && (
107107
<Badge
108108
pill
109-
variant={
109+
bg={
110110
props.core.filteredPullRequests.incoming.length > 0
111111
? "danger"
112112
: "secondary"
@@ -124,7 +124,7 @@ export const Popup = observer((props: PopupProps) => {
124124
<>
125125
Muted{" "}
126126
{props.core.filteredPullRequests && (
127-
<Badge variant="secondary">
127+
<Badge bg="secondary">
128128
{props.core.filteredPullRequests.muted.length}
129129
</Badge>
130130
)}
@@ -137,7 +137,7 @@ export const Popup = observer((props: PopupProps) => {
137137
<>
138138
Already reviewed{" "}
139139
{props.core.filteredPullRequests && (
140-
<Badge variant="secondary">
140+
<Badge bg="secondary">
141141
{props.core.filteredPullRequests.reviewed.length}
142142
</Badge>
143143
)}
@@ -150,7 +150,7 @@ export const Popup = observer((props: PopupProps) => {
150150
<>
151151
My PRs{" "}
152152
{props.core.filteredPullRequests && (
153-
<Badge variant="secondary">
153+
<Badge bg="secondary">
154154
{props.core.filteredPullRequests.mine.length}
155155
</Badge>
156156
)}

src/state/core.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { EnrichedPullRequest } from "../filtering/enriched-pull-request";
55
import {
66
Filter,
77
FilteredPullRequests,
8-
filterPullRequests,
8+
filterPullRequests
99
} from "../filtering/filters";
1010
import { PullRequestReference, RepoReference } from "../github-api/api";
1111
import { LoadedState, PullRequest } from "../storage/loaded-state";
@@ -16,7 +16,7 @@ import {
1616
NOTHING_MUTED,
1717
removeOwnerMute,
1818
removePullRequestMute,
19-
removeRepositoryMute,
19+
removeRepositoryMute
2020
} from "../storage/mute-configuration";
2121

2222
export class Core {
@@ -107,7 +107,7 @@ export class Core {
107107
);
108108
await this.saveNotifiedPullRequests(notifyAboutPullRequests);
109109
this.saveError(null);
110-
} catch (e) {
110+
} catch (e: any) {
111111
this.saveError(e.message);
112112
throw e;
113113
} finally {

webpack.config.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
const path = require("path");
22
const webpack = require("webpack");
3-
const BundleAnalyzerPlugin = require("webpack-bundle-analyzer")
4-
.BundleAnalyzerPlugin;
3+
const BundleAnalyzerPlugin =
4+
require("webpack-bundle-analyzer").BundleAnalyzerPlugin;
55
const CopyPlugin = require("copy-webpack-plugin");
66
const HtmlWebpackPlugin = require("html-webpack-plugin");
77

@@ -56,7 +56,10 @@ module.exports = {
5656
inject: true,
5757
chunks: ["popup"],
5858
}),
59-
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
59+
new webpack.IgnorePlugin({
60+
resourceRegExp: /^\.\/locale$/,
61+
contextRegExp: /moment$/,
62+
}),
6063
new CopyPlugin({
6164
patterns: [
6265
{ from: "manifest.json", to: "." },

0 commit comments

Comments
 (0)