Skip to content

Commit 96be0cb

Browse files
Update JS dependencies, Require Node.js 16 (#23528)
- Update all JS dependencies - Require Node.js 16 as dictated by `esbuild-loader` - Regenerate SVG - Adapt to `esbuild-loader` breaking changes - Minor refactor in `webpack.config.js` - Tested build, monaco and swagger-ui --------- Co-authored-by: techknowlogick <[email protected]>
1 parent 12ddc48 commit 96be0cb

23 files changed

+1521
-1410
lines changed

.drone.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ steps:
726726

727727
# TODO: We should probably build all dependencies into a test image
728728
- name: test-e2e
729-
image: mcr.microsoft.com/playwright:v1.29.2-focal
729+
image: mcr.microsoft.com/playwright:v1.31.2-focal
730730
commands:
731731
- curl -sLO https://go.dev/dl/go1.20.linux-amd64.tar.gz && tar -C /usr/local -xzf go1.20.linux-amd64.tar.gz
732732
- groupadd --gid 1001 gitea && useradd -m --gid 1001 --uid 1001 gitea

package-lock.json

Lines changed: 1477 additions & 1379 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,42 @@
44
"private": true,
55
"type": "module",
66
"engines": {
7-
"node": ">= 14.0.0"
7+
"node": ">= 16.0.0"
88
},
99
"dependencies": {
1010
"@citation-js/core": "0.6.5",
11-
"@citation-js/plugin-bibtex": "0.6.5",
12-
"@citation-js/plugin-csl": "0.6.5",
11+
"@citation-js/plugin-bibtex": "0.6.6",
12+
"@citation-js/plugin-csl": "0.6.7",
1313
"@citation-js/plugin-software-formats": "0.6.0",
1414
"@claviska/jquery-minicolors": "2.3.6",
1515
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
16-
"@primer/octicons": "17.10.2",
17-
"@vue/compiler-sfc": "3.2.45",
16+
"@primer/octicons": "18.2.0",
17+
"@vue/compiler-sfc": "3.2.47",
1818
"add-asset-webpack-plugin": "2.0.1",
1919
"ansi-to-html": "0.7.2",
20-
"asciinema-player": "3.0.1",
20+
"asciinema-player": "3.2.0",
2121
"css-loader": "6.7.3",
2222
"dropzone": "6.0.0-beta.2",
2323
"easymde": "2.18.0",
24-
"esbuild-loader": "2.21.0",
24+
"esbuild-loader": "3.0.1",
2525
"escape-goat": "4.0.0",
2626
"fast-glob": "3.2.12",
2727
"font-awesome": "4.7.0",
28-
"jquery": "3.6.3",
28+
"jquery": "3.6.4",
2929
"jquery.are-you-sure": "1.9.0",
3030
"katex": "0.16.4",
3131
"license-checker-webpack-plugin": "0.2.1",
3232
"mermaid": "10.0.2",
3333
"mini-css-extract-plugin": "2.7.4",
34-
"monaco-editor": "0.34.1",
34+
"monaco-editor": "0.36.1",
3535
"monaco-editor-webpack-plugin": "7.0.1",
3636
"pretty-ms": "8.0.0",
3737
"sortablejs": "1.15.0",
38-
"swagger-ui-dist": "4.15.5",
38+
"swagger-ui-dist": "4.18.1",
3939
"tippy.js": "6.3.7",
4040
"tributejs": "5.1.3",
4141
"uint8-to-base64": "0.2.0",
42-
"vue": "3.2.45",
42+
"vue": "3.2.47",
4343
"vue-bar-graph": "2.0.0",
4444
"vue-loader": "17.0.1",
4545
"vue3-calendar-heatmap": "2.0.0",
@@ -48,25 +48,25 @@
4848
"workbox-routing": "6.5.4",
4949
"workbox-strategies": "6.5.4",
5050
"worker-loader": "3.0.8",
51-
"wrap-ansi": "8.0.1"
51+
"wrap-ansi": "8.1.0"
5252
},
5353
"devDependencies": {
54-
"@playwright/test": "1.29.2",
54+
"@playwright/test": "1.31.2",
5555
"@rollup/pluginutils": "5.0.2",
5656
"@stoplight/spectral-cli": "6.6.0",
57-
"eslint": "8.32.0",
57+
"eslint": "8.36.0",
5858
"eslint-plugin-import": "2.27.5",
5959
"eslint-plugin-jquery": "1.5.1",
6060
"eslint-plugin-sonarjs": "0.18.0",
61-
"eslint-plugin-unicorn": "45.0.2",
61+
"eslint-plugin-unicorn": "46.0.0",
6262
"eslint-plugin-vue": "9.9.0",
63-
"jsdom": "21.0.0",
63+
"jsdom": "21.1.1",
6464
"markdownlint-cli": "0.33.0",
65-
"stylelint": "15.2.0",
65+
"stylelint": "15.3.0",
6666
"stylelint-declaration-strict-value": "1.9.2",
6767
"svgo": "3.0.2",
68-
"updates": "13.2.7",
69-
"vitest": "0.27.2"
68+
"updates": "13.2.9",
69+
"vitest": "0.29.3"
7070
},
7171
"browserslist": [
7272
"defaults",
Lines changed: 1 addition & 1 deletion
Loading

public/img/svg/octicon-chevron-up.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

public/img/svg/octicon-download.svg

Lines changed: 1 addition & 1 deletion
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 1 deletion
Loading

public/img/svg/octicon-issue-tracked-in.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading
Lines changed: 1 addition & 0 deletions
Loading

public/img/svg/octicon-upload.svg

Lines changed: 1 addition & 1 deletion
Loading

public/img/svg/octicon-zoom-in.svg

Lines changed: 1 addition & 0 deletions
Loading

public/img/svg/octicon-zoom-out.svg

Lines changed: 1 addition & 0 deletions
Loading

webpack.config.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import webpack from 'webpack';
1111
import {fileURLToPath} from 'node:url';
1212
import {readFileSync} from 'node:fs';
1313

14-
const {ESBuildMinifyPlugin} = EsBuildLoader;
15-
const {SourceMapDevToolPlugin} = webpack;
14+
const {EsbuildPlugin} = EsBuildLoader;
15+
const {SourceMapDevToolPlugin, DefinePlugin} = webpack;
1616
const formatLicenseText = (licenseText) => wrapAnsi(licenseText || '', 80).trim();
1717

1818
const glob = (pattern) => fastGlob.sync(pattern, {
@@ -90,7 +90,7 @@ export default {
9090
optimization: {
9191
minimize: isProduction,
9292
minimizer: [
93-
new ESBuildMinifyPlugin({
93+
new EsbuildPlugin({
9494
target: 'es2015',
9595
minify: true,
9696
css: true,
@@ -130,7 +130,8 @@ export default {
130130
{
131131
loader: 'esbuild-loader',
132132
options: {
133-
target: 'es2015'
133+
loader: 'js',
134+
target: 'es2015',
134135
},
135136
},
136137
],
@@ -173,7 +174,7 @@ export default {
173174
],
174175
},
175176
plugins: [
176-
new webpack.DefinePlugin({
177+
new DefinePlugin({
177178
__VUE_OPTIONS_API__: true, // at the moment, many Vue components still use the Vue Options API
178179
__VUE_PROD_DEVTOOLS__: false, // do not enable devtools support in production
179180
}),

0 commit comments

Comments
 (0)