Skip to content

Commit 36cbe71

Browse files
authored
Merge pull request #230 from TracerBench/update-remark
[chore] update remark
2 parents 80ab5df + 56eef2e commit 36cbe71

File tree

5 files changed

+187
-260
lines changed

5 files changed

+187
-260
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ designed with automation in mind.
99

1010
## Table of Contents
1111

12-
- [Features](#features)
12+
* [Features](#features)
1313

14-
- [Examples](#examples)
14+
* [Examples](#examples)
1515

16-
- [Print URL as PDF](#print-url-as-pdf)
17-
- [Node Debugging](#node-debugging)
16+
* [Print URL as PDF](#print-url-as-pdf)
17+
* [Node Debugging](#node-debugging)
1818

1919
## Features
2020

21-
- Promise API for async/await (most debugger commands are meant to be sequential).
22-
- TypeScript support and uses "devtools-protocol" types, allowing you to pick a protocol version.
23-
- Launches Chrome with a new temp user data folder so Chrome launches an isolated instance.
21+
* Promise API for async/await (most debugger commands are meant to be sequential).
22+
* TypeScript support and uses "devtools-protocol" types, allowing you to pick a protocol version.
23+
* Launches Chrome with a new temp user data folder so Chrome launches an isolated instance.
2424
(regardless if you already have Chrome open).
25-
- Opens Chrome with a pipe message transport to the browser connection and supports
25+
* Opens Chrome with a pipe message transport to the browser connection and supports
2626
attaching flattened session connections to targets.
27-
- Supports cancellation in a way that avoids unhandled rejections, and allows you to add combine
27+
* Supports cancellation in a way that avoids unhandled rejections, and allows you to add combine
2828
additional cancellation concerns.
29-
- Supports seeing protocol debug messages with `DEBUG=chrome-debugging-client:*`
30-
- Use with race-cancellation library to add timeouts or other cancellation concerns to tasks
29+
* Supports seeing protocol debug messages with `DEBUG=chrome-debugging-client:*`
30+
* Use with race-cancellation library to add timeouts or other cancellation concerns to tasks
3131
using the connection.
32-
- The library was designed to be careful about not floating promises (promises are
32+
* The library was designed to be careful about not floating promises (promises are
3333
chained immediately after being created, combining concurrent promises with all
3434
or race), this avoids unhandled rejections.
3535

chrome-debugging-client/README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,27 +9,27 @@ designed with automation in mind.
99

1010
## Table of Contents
1111

12-
- [Features](#features)
12+
* [Features](#features)
1313

14-
- [Examples](#examples)
14+
* [Examples](#examples)
1515

16-
- [Print URL as PDF](#print-url-as-pdf)
17-
- [Node Debugging](#node-debugging)
16+
* [Print URL as PDF](#print-url-as-pdf)
17+
* [Node Debugging](#node-debugging)
1818

1919
## Features
2020

21-
- Promise API for async/await (most debugger commands are meant to be sequential).
22-
- TypeScript support and uses "devtools-protocol" types, allowing you to pick a protocol version.
23-
- Launches Chrome with a new temp user data folder so Chrome launches an isolated instance.
21+
* Promise API for async/await (most debugger commands are meant to be sequential).
22+
* TypeScript support and uses "devtools-protocol" types, allowing you to pick a protocol version.
23+
* Launches Chrome with a new temp user data folder so Chrome launches an isolated instance.
2424
(regardless if you already have Chrome open).
25-
- Opens Chrome with a pipe message transport to the browser connection and supports
25+
* Opens Chrome with a pipe message transport to the browser connection and supports
2626
attaching flattened session connections to targets.
27-
- Supports cancellation in a way that avoids unhandled rejections, and allows you to add combine
27+
* Supports cancellation in a way that avoids unhandled rejections, and allows you to add combine
2828
additional cancellation concerns.
29-
- Supports seeing protocol debug messages with `DEBUG=chrome-debugging-client:*`
30-
- Use with race-cancellation library to add timeouts or other cancellation concerns to tasks
29+
* Supports seeing protocol debug messages with `DEBUG=chrome-debugging-client:*`
30+
* Use with race-cancellation library to add timeouts or other cancellation concerns to tasks
3131
using the connection.
32-
- The library was designed to be careful about not floating promises (promises are
32+
* The library was designed to be careful about not floating promises (promises are
3333
chained immediately after being created, combining concurrent promises with all
3434
or race), this avoids unhandled rejections.
3535

scripts/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
},
1010
"dependencies": {
1111
"@types/node": "^18.16.0",
12-
"remark": "^12.0.0",
13-
"remark-parse": "^8.0.2",
14-
"remark-stringify": "^8.0.0",
15-
"remark-toc": "^7.0.0",
12+
"remark": "^14.0.2",
13+
"remark-parse": "^10.0.1",
14+
"remark-stringify": "^10.0.2",
15+
"remark-toc": "^8.0.1",
1616
"shell-split": "^1.0.0",
1717
"unified": "^9.0.0",
1818
"unist-util-visit": "^2.0.0",

scripts/readme.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@
22
const fs = require("fs");
33
const path = require("path");
44
const unified = require("unified");
5-
const parse = require("remark-parse");
6-
const stringify = require("remark-stringify");
7-
const toc = require("remark-toc");
85
const vfile = require("vfile");
96

107
const importCode = require("./import-code");
118

129
void main();
1310

1411
async function main() {
12+
const { default: parse } = await import("remark-parse");
13+
const { default: stringify } = await import("remark-stringify");
14+
const { default: toc } = await import("remark-toc");
1515
const processor = unified()
1616
.use(parse)
1717
.use(toc)

0 commit comments

Comments
 (0)