Skip to content

Commit 5266311

Browse files
authored
Update JS and PY deps, misc tweaks (#33903)
- Update all updateable dependencies - Add a few more unupgradable ones to updates blocklist - Adapt to breaking changes - Update to typescript 5.8, enable `erasableSyntaxOnly` which necessitated a change because of forbidden syntax - Misc cleanups - Tested htmx, easymde, swagger, chart.js
1 parent c88e71c commit 5266311

10 files changed

+1246
-1286
lines changed

.eslintrc.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ module.exports = {
104104
'@vitest/no-disabled-tests': [0],
105105
'@vitest/no-done-callback': [0],
106106
'@vitest/no-duplicate-hooks': [0],
107-
'@vitest/no-focused-tests': [0],
107+
'@vitest/no-focused-tests': [2],
108108
'@vitest/no-hooks': [0],
109109
'@vitest/no-identical-title': [2],
110110
'@vitest/no-interpolation-in-snapshots': [0],
@@ -155,7 +155,7 @@ module.exports = {
155155
'eslint-plugin-vue-scoped-css',
156156
],
157157
extends: [
158-
'plugin:vue/vue3-recommended',
158+
'plugin:vue/recommended',
159159
'plugin:vue-scoped-css/vue3-recommended',
160160
],
161161
rules: {

package-lock.json

+1,196-1,242
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+25-25
Original file line numberDiff line numberDiff line change
@@ -12,47 +12,47 @@
1212
"@github/relative-time-element": "4.4.5",
1313
"@github/text-expander-element": "2.9.1",
1414
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
15-
"@primer/octicons": "19.15.0",
15+
"@primer/octicons": "19.15.1",
1616
"@silverwind/vue3-calendar-heatmap": "2.0.6",
1717
"add-asset-webpack-plugin": "3.0.0",
1818
"ansi_up": "6.0.2",
1919
"asciinema-player": "3.9.0",
20-
"chart.js": "4.4.7",
20+
"chart.js": "4.4.8",
2121
"chartjs-adapter-dayjs-4": "1.0.4",
2222
"chartjs-plugin-zoom": "2.2.0",
2323
"clippie": "4.1.5",
2424
"cropperjs": "1.6.2",
2525
"css-loader": "7.1.2",
2626
"dayjs": "1.11.13",
2727
"dropzone": "6.0.0-beta.2",
28-
"easymde": "2.18.0",
28+
"easymde": "2.20.0",
2929
"esbuild-loader": "4.3.0",
3030
"escape-goat": "4.0.0",
3131
"fast-glob": "3.3.3",
3232
"htmx.org": "2.0.4",
33-
"idiomorph": "0.4.0",
33+
"idiomorph": "0.7.3",
3434
"jquery": "3.7.1",
3535
"katex": "0.16.21",
3636
"license-checker-webpack-plugin": "0.2.1",
37-
"mermaid": "11.4.1",
37+
"mermaid": "11.5.0",
3838
"mini-css-extract-plugin": "2.9.2",
3939
"minimatch": "10.0.1",
4040
"monaco-editor": "0.52.2",
4141
"monaco-editor-webpack-plugin": "7.1.0",
4242
"pdfobject": "2.3.1",
4343
"perfect-debounce": "1.0.0",
44-
"postcss": "8.5.2",
44+
"postcss": "8.5.3",
4545
"postcss-loader": "8.1.1",
4646
"postcss-nesting": "13.0.1",
4747
"sortablejs": "1.15.6",
48-
"swagger-ui-dist": "5.18.3",
48+
"swagger-ui-dist": "5.20.1",
4949
"tailwindcss": "3.4.17",
5050
"throttle-debounce": "5.0.2",
5151
"tinycolor2": "1.6.0",
5252
"tippy.js": "6.3.7",
5353
"toastify-js": "1.12.0",
5454
"tributejs": "5.1.3",
55-
"typescript": "5.7.3",
55+
"typescript": "5.8.2",
5656
"uint8-to-base64": "0.2.0",
5757
"vanilla-colorful": "0.7.2",
5858
"vue": "3.5.13",
@@ -66,7 +66,7 @@
6666
"devDependencies": {
6767
"@eslint-community/eslint-plugin-eslint-comments": "4.4.1",
6868
"@playwright/test": "1.49.1",
69-
"@stoplight/spectral-cli": "6.14.2",
69+
"@stoplight/spectral-cli": "6.14.3",
7070
"@stylistic/eslint-plugin-js": "3.1.0",
7171
"@stylistic/stylelint-plugin": "3.1.2",
7272
"@types/dropzone": "5.7.9",
@@ -79,41 +79,41 @@
7979
"@types/throttle-debounce": "5.0.2",
8080
"@types/tinycolor2": "1.4.6",
8181
"@types/toastify-js": "1.12.3",
82-
"@typescript-eslint/eslint-plugin": "8.24.0",
83-
"@typescript-eslint/parser": "8.24.0",
82+
"@typescript-eslint/eslint-plugin": "8.26.1",
83+
"@typescript-eslint/parser": "8.26.1",
8484
"@vitejs/plugin-vue": "5.2.1",
85-
"@vitest/eslint-plugin": "1.1.31",
85+
"@vitest/eslint-plugin": "1.1.37",
8686
"eslint": "8.57.0",
87-
"eslint-import-resolver-typescript": "3.8.0",
87+
"eslint-import-resolver-typescript": "3.9.0",
8888
"eslint-plugin-array-func": "4.0.0",
8989
"eslint-plugin-github": "5.0.2",
90-
"eslint-plugin-import-x": "4.6.1",
91-
"eslint-plugin-no-jquery": "3.1.0",
90+
"eslint-plugin-import-x": "4.7.2",
91+
"eslint-plugin-no-jquery": "3.1.1",
9292
"eslint-plugin-no-use-extend-native": "0.5.0",
9393
"eslint-plugin-playwright": "2.2.0",
9494
"eslint-plugin-regexp": "2.7.0",
9595
"eslint-plugin-sonarjs": "3.0.2",
9696
"eslint-plugin-unicorn": "56.0.1",
97-
"eslint-plugin-vue": "9.32.0",
97+
"eslint-plugin-vue": "10.0.0",
9898
"eslint-plugin-vue-scoped-css": "2.9.0",
99-
"eslint-plugin-wc": "2.2.0",
100-
"happy-dom": "17.1.0",
99+
"eslint-plugin-wc": "2.2.1",
100+
"happy-dom": "17.4.4",
101101
"markdownlint-cli": "0.44.0",
102102
"material-icon-theme": "5.20.0",
103-
"nolyfill": "1.0.43",
103+
"nolyfill": "1.0.44",
104104
"postcss-html": "1.8.0",
105-
"stylelint": "16.14.1",
105+
"stylelint": "16.16.0",
106106
"stylelint-config-recommended": "15.0.0",
107107
"stylelint-declaration-block-no-ignored-properties": "2.8.0",
108-
"stylelint-declaration-strict-value": "1.10.7",
109-
"stylelint-define-config": "16.14.1",
108+
"stylelint-declaration-strict-value": "1.10.11",
109+
"stylelint-define-config": "16.15.0",
110110
"stylelint-value-no-unknown-custom-properties": "6.0.1",
111111
"svgo": "3.3.2",
112-
"type-fest": "4.34.1",
112+
"type-fest": "4.37.0",
113113
"updates": "16.4.2",
114114
"vite-string-plugin": "1.4.4",
115-
"vitest": "3.0.5",
116-
"vue-tsc": "2.2.2"
115+
"vitest": "3.0.8",
116+
"vue-tsc": "2.2.8"
117117
},
118118
"browserslist": [
119119
"defaults"

poetry.lock

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ python = "^3.10"
66

77
[tool.poetry.group.dev.dependencies]
88
djlint = "1.36.4"
9-
yamllint = "1.35.1"
9+
yamllint = "1.36.1"
1010

1111
[tool.djlint]
1212
profile="golang"

tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@
1818
"allowJs": true,
1919
"allowSyntheticDefaultImports": true,
2020
"alwaysStrict": true,
21+
"erasableSyntaxOnly": true,
2122
"esModuleInterop": true,
2223
"isolatedModules": true,
24+
"libReplacement": false,
2325
"noEmit": true,
2426
"resolveJsonModule": true,
2527
"skipLibCheck": true,

updates.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
export default {
22
exclude: [
33
'@mcaptcha/vanilla-glue', // breaking changes in rc versions need to be handled
4+
'@stylistic/eslint-plugin-js', // need to migrate to eslint 9
45
'eslint', // need to migrate to eslint flat config first
56
'eslint-plugin-array-func', // need to migrate to eslint flat config first
67
'eslint-plugin-github', // need to migrate to eslint 9 - https://github.com/github/eslint-plugin-github/issues/585
78
'eslint-plugin-no-use-extend-native', // need to migrate to eslint flat config first
9+
'eslint-plugin-unicorn', // need to migrate to eslint 9
810
'eslint-plugin-vitest', // need to migrate to eslint flat config first
11+
'tailwindcss', // need to migrate
912
],
1013
};

web_src/js/features/repo-issue-sidebar-combolist.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,11 @@ class IssueSidebarComboList {
3030
elList: HTMLElement;
3131
elComboValue: HTMLInputElement;
3232
initialValues: string[];
33+
container: HTMLElement;
3334

34-
constructor(private container: HTMLElement) {
35-
this.updateUrl = this.container.getAttribute('data-update-url');
35+
constructor(container: HTMLElement) {
36+
this.container = container;
37+
this.updateUrl = container.getAttribute('data-update-url');
3638
this.updateAlgo = container.getAttribute('data-update-algo');
3739
this.selectionMode = container.getAttribute('data-selection-mode');
3840
if (!['single', 'multiple'].includes(this.selectionMode)) throw new Error(`Invalid data-update-on: ${this.selectionMode}`);

web_src/js/htmx.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {showErrorToast} from './modules/toast.ts';
2-
import 'idiomorph/dist/idiomorph-ext.js'; // https://github.com/bigskysoftware/idiomorph#htmx
2+
import 'idiomorph/htmx';
33
import type {HtmxResponseInfo} from 'htmx.org';
44

55
type HtmxEvent = Event & {detail: HtmxResponseInfo};

webpack.config.js

-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ export default {
249249
},
250250
override: {
251251
'khroma@*': {licenseName: 'MIT'}, // https://github.com/fabiospampinato/khroma/pull/33
252-
'[email protected]': {licenseName: 'BSD-2-Clause'}, // https://github.com/bigskysoftware/idiomorph/pull/37
253252
},
254253
emitError: true,
255254
allow: '(Apache-2.0 OR 0BSD OR BSD-2-Clause OR BSD-3-Clause OR MIT OR ISC OR CPAL-1.0 OR Unlicense OR EPL-1.0 OR EPL-2.0)',

0 commit comments

Comments
 (0)