Skip to content

Commit

Permalink
Update dependencies (#69)
Browse files Browse the repository at this point in the history
This updates *most* of the dependencies to their latest versions. Notes and exceptions:

- The fixtures are updated because the newer Chromium version used by Playwright reformats the pasted HTML slightly differently. (At some point, it might be better to store separate “copy” fixtures for each of the major browsers, but that’s way outside the scope of this change.)

- I dropped geckodriver since it’s now a hard dependency of wdio-geckodriver-service.

- I updated remark-stringify to v8 (1 major version), but not v9 or v10, which is the latest. v9 includes signficant structural changes that I should probably read up more about before using (that said, tests pass!), and v10 has changes that break tests (and *look* like they may be bugs, but again, needs more investigation). I filed #70 to capture follow-up on this.
  • Loading branch information
Mr0grog authored Jun 21, 2023
1 parent b280436 commit 9847b03
Show file tree
Hide file tree
Showing 14 changed files with 3,158 additions and 3,141 deletions.
6,244 changes: 3,131 additions & 3,113 deletions package-lock.json

Large diffs are not rendered by default.

31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,29 +34,28 @@
"download-fixtures": "node scripts/download-fixtures.js"
},
"devDependencies": {
"@wdio/browser-runner": "^8.8.6",
"@wdio/cli": "^8.8.6",
"@wdio/local-runner": "^8.8.8",
"@wdio/mocha-framework": "^8.8.6",
"@wdio/spec-reporter": "^8.8.6",
"@wdio/browser-runner": "^8.11.2",
"@wdio/cli": "^8.11.2",
"@wdio/local-runner": "^8.11.2",
"@wdio/mocha-framework": "^8.11.0",
"@wdio/spec-reporter": "^8.11.2",
"chromedriver": "^114.0.2",
"copy-webpack-plugin": "^10.2.4",
"geckodriver": "^3.2.0",
"hastscript": "^7.0.2",
"copy-webpack-plugin": "^11.0.0",
"hastscript": "^7.2.0",
"mocha": "^10.2.0",
"path-browserify": "^1.0.1",
"playwright": "^1.32.3",
"playwright": "^1.35.1",
"rehype-dom-parse": "^4.0.2",
"rehype-remark": "^9.1.2",
"remark-stringify": "^7.0.4",
"remark-stringify": "^8.1.1",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.0",
"unist-util-visit": "^4.1.2",
"wdio-chromedriver-service": "^8.1.1",
"wdio-geckodriver-service": "^4.1.1",
"wdio-geckodriver-service": "^5.0.1",
"wdio-safaridriver-service": "^2.1.0",
"webpack": "^5.79.0",
"webpack-bundle-analyzer": "^4.8.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.13.3"
"webpack": "^5.87.0",
"webpack-bundle-analyzer": "^4.9.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
}
}
2 changes: 1 addition & 1 deletion test/fixtures/code-blocks-mixed.copy.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<span id="docs-internal-guid-dddddddd-dddd-dddd-dddd-123456789abc"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">This is a test of block-level code formatting where block level elements have mixed code and non-code lines.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">This is plain text in a paragraph…</span><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;"><br></span><span style="font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">// With some lines</span><span style="font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;"><br></span><span style="font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">// That are code</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">And how about code in a list?</span></p><ul style="margin-top:0;margin-bottom:0;padding-inline-start:48px;"><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">Normal text</span></p></li><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">// An item that is one line of code</span></p></li><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">// An item with multiple lines</span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;"><br></span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">// That are all code</span></p></li><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">Some non-code description and:</span><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;"><br></span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">// Some lines of code</span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;"><br></span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">// in the list item</span></p></li></ul><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre-wrap;">OK?</span></p><br></span>
<span id="docs-internal-guid-dddddddd-dddd-dddd-dddd-123456789abc"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;">This is a test of block-level code formatting where block level elements have mixed code and non-code lines.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;">This is plain text in a paragraph…</span><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;"><br></span><span style="font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;">// With some lines</span><span style="font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;"><br></span><span style="font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;">// That are code</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;">And how about code in a list?</span></p><ul style="margin-top:0;margin-bottom:0;padding-inline-start:48px;"><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;">Normal text</span></p></li><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;">// An item that is one line of code</span></p></li><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;">// An item with multiple lines</span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;"><br></span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;">// That are all code</span></p></li><li dir="ltr" style="list-style-type: disc; font-size: 11pt; font-family: &quot;Roboto Mono&quot;, monospace; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space: pre;" aria-level="1"><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;" role="presentation"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;">Some non-code description and:</span><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;"><br></span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;">// Some lines of code</span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;"><br></span><span style="font-size: 11pt; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; text-wrap: wrap;">// in the list item</span></p></li></ul><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt;"><span style="font-size: 11pt; font-family: Arial; font-variant-numeric: normal; font-variant-east-asian: normal; font-variant-alternates: normal; vertical-align: baseline; white-space-collapse: preserve;">OK?</span></p><br></span>
Loading

0 comments on commit 9847b03

Please sign in to comment.