Skip to content

Commit

Permalink
Update JS dependencies (#26586)
Browse files Browse the repository at this point in the history
- Update all JS dependencies
- Adapt `ansi_up` import for ESM
- Tested Mermaid and Ansi rendering
  • Loading branch information
silverwind authored Aug 19, 2023
1 parent 8f93648 commit 5feef6d
Show file tree
Hide file tree
Showing 11 changed files with 224 additions and 216 deletions.
410 changes: 205 additions & 205 deletions package-lock.json

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
"@github/relative-time-element": "4.3.0",
"@github/text-expander-element": "2.5.0",
"@mcaptcha/vanilla-glue": "0.1.0-alpha-3",
"@primer/octicons": "19.5.0",
"@primer/octicons": "19.6.0",
"@webcomponents/custom-elements": "1.6.0",
"add-asset-webpack-plugin": "2.0.1",
"ansi_up": "5.2.1",
"ansi_up": "6.0.0",
"asciinema-player": "3.5.0",
"clippie": "4.0.6",
"css-loader": "6.8.1",
Expand All @@ -30,15 +30,15 @@
"katex": "0.16.8",
"license-checker-webpack-plugin": "0.2.1",
"lightningcss-loader": "2.1.0",
"mermaid": "10.3.0",
"mermaid": "10.3.1",
"mini-css-extract-plugin": "2.7.6",
"minimatch": "9.0.3",
"monaco-editor": "0.41.0",
"monaco-editor-webpack-plugin": "7.1.0",
"pdfobject": "2.2.12",
"pretty-ms": "8.0.0",
"sortablejs": "1.15.0",
"swagger-ui-dist": "5.3.1",
"swagger-ui-dist": "5.4.2",
"throttle-debounce": "5.0.0",
"tinycolor2": "1.6.0",
"tippy.js": "6.3.7",
Expand All @@ -55,10 +55,10 @@
},
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "4.1.0",
"@playwright/test": "1.36.2",
"@playwright/test": "1.37.1",
"@stoplight/spectral-cli": "6.10.1",
"@vitejs/plugin-vue": "4.2.3",
"eslint": "8.46.0",
"@vitejs/plugin-vue": "4.3.1",
"eslint": "8.47.0",
"eslint-plugin-array-func": "3.1.8",
"eslint-plugin-custom-elements": "0.0.8",
"eslint-plugin-import": "2.28.0",
Expand All @@ -73,14 +73,14 @@
"jsdom": "22.1.0",
"markdownlint-cli": "0.35.0",
"postcss-html": "1.5.0",
"stylelint": "15.10.2",
"stylelint": "15.10.3",
"stylelint-declaration-block-no-ignored-properties": "2.7.0",
"stylelint-declaration-strict-value": "1.9.2",
"stylelint-stylistic": "0.4.3",
"svgo": "3.0.2",
"updates": "14.3.5",
"vite-string-plugin": "1.1.2",
"vitest": "0.34.1"
"vitest": "0.34.2"
},
"browserslist": [
"defaults",
Expand Down
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-issue-closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-issue-draft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-issue-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-plus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-public.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-pull-request-closed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-pull-request-draft.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/assets/img/svg/octicon-feed-pull-request-open.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions web_src/js/render/ansi.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import AnsiUp from 'ansi_up';
import {AnsiUp} from 'ansi_up';

const replacements = [
[/\x1b\[\d+[A-H]/g, ''], // Move cursor, treat them as no-op
Expand All @@ -10,7 +10,7 @@ export function renderAnsi(line) {
// create a fresh ansi_up instance because otherwise previous renders can influence
// the output of future renders, because ansi_up is stateful and remembers things like
// unclosed opening tags for colors.
const ansi_up = new (AnsiUp.default || AnsiUp)();
const ansi_up = new AnsiUp();
ansi_up.use_classes = true;

if (line.endsWith('\r\n')) {
Expand Down

0 comments on commit 5feef6d

Please sign in to comment.