Skip to content

Commit 12de72b

Browse files
committed
Update dev-dependencies
1 parent e15e733 commit 12de72b

File tree

4 files changed

+54
-54
lines changed

4 files changed

+54
-54
lines changed

.github/workflows/main.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ jobs:
77
name: ${{matrix.node}}
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: actions/setup-node@v3
10+
- uses: actions/checkout@v4
11+
- uses: actions/setup-node@v4
1212
with:
1313
node-version: ${{matrix.node}}
1414
- run: npm install
1515
- run: npm test
16-
- uses: codecov/codecov-action@v3
16+
- uses: codecov/codecov-action@v4
1717
strategy:
1818
matrix:
1919
node:
2020
- lts/gallium
21-
- node
21+
- lts/iron

package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -44,28 +44,28 @@
4444
},
4545
"devDependencies": {
4646
"@types/node": "^20.0.0",
47-
"c8": "^8.0.0",
47+
"c8": "^9.0.0",
4848
"is-hidden": "^2.0.0",
49-
"mdast-util-from-markdown": "^1.0.0",
50-
"mdast-util-frontmatter": "^1.0.0",
51-
"mdast-util-gfm": "^2.0.0",
52-
"micromark-extension-frontmatter": "^1.0.0",
53-
"micromark-extension-gfm": "^2.0.0",
54-
"parse-dutch": "^6.0.0",
55-
"parse-english": "^6.0.0",
56-
"parse-latin": "^6.0.0",
57-
"prettier": "^2.0.0",
58-
"remark-cli": "^11.0.0",
59-
"remark-preset-wooorm": "^9.0.0",
49+
"mdast-util-from-markdown": "^2.0.0",
50+
"mdast-util-frontmatter": "^2.0.0",
51+
"mdast-util-gfm": "^3.0.0",
52+
"micromark-extension-frontmatter": "^2.0.0",
53+
"micromark-extension-gfm": "^3.0.0",
54+
"parse-dutch": "^7.0.0",
55+
"parse-english": "^7.0.0",
56+
"parse-latin": "^7.0.0",
57+
"prettier": "^3.0.0",
58+
"remark-cli": "^12.0.0",
59+
"remark-preset-wooorm": "^10.0.0",
6060
"to-vfile": "^8.0.0",
6161
"type-coverage": "^2.0.0",
6262
"typescript": "^5.0.0",
63-
"xo": "^0.54.0"
63+
"xo": "^0.58.0"
6464
},
6565
"scripts": {
6666
"prepack": "npm run build && npm run format",
6767
"build": "tsc --build --clean && tsc --build && type-coverage",
68-
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --loglevel warn && xo --fix",
68+
"format": "remark . -qfo --ignore-pattern test/ && prettier . -w --log-level warn && xo --fix",
6969
"test-api": "node --conditions development test/index.js",
7070
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
7171
"test": "npm run build && npm run format && npm run test-coverage"
@@ -81,6 +81,7 @@
8181
"xo": {
8282
"prettier": true,
8383
"rules": {
84+
"unicorn/prefer-at": "off",
8485
"unicorn/prefer-switch": "off"
8586
},
8687
"overrides": [

readme.md

+34-34
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212

1313
## Contents
1414

15-
* [What is this?](#what-is-this)
16-
* [When should I use this?](#when-should-i-use-this)
17-
* [Install](#install)
18-
* [Use](#use)
19-
* [API](#api)
20-
* [`toNlcst(tree, file, Parser[, options])`](#tonlcsttree-file-parser-options)
21-
* [`Options`](#options)
22-
* [`ParserConstructor`](#parserconstructor)
23-
* [`ParserInstance`](#parserinstance)
24-
* [Types](#types)
25-
* [Compatibility](#compatibility)
26-
* [Security](#security)
27-
* [Related](#related)
28-
* [Contribute](#contribute)
29-
* [License](#license)
15+
* [What is this?](#what-is-this)
16+
* [When should I use this?](#when-should-i-use-this)
17+
* [Install](#install)
18+
* [Use](#use)
19+
* [API](#api)
20+
* [`toNlcst(tree, file, Parser[, options])`](#tonlcsttree-file-parser-options)
21+
* [`Options`](#options)
22+
* [`ParserConstructor`](#parserconstructor)
23+
* [`ParserInstance`](#parserinstance)
24+
* [Types](#types)
25+
* [Compatibility](#compatibility)
26+
* [Security](#security)
27+
* [Related](#related)
28+
* [Contribute](#contribute)
29+
* [License](#license)
3030

3131
## What is this?
3232

@@ -122,15 +122,15 @@ Turn an mdast tree into an nlcst tree.
122122
123123
###### Parameters
124124

125-
* `tree` ([`MdastNode`][mdast-node])
126-
— mdast tree to transform
127-
* `file` ([`VFile`][vfile])
128-
— virtual file
129-
* `Parser` ([`ParserConstructor`][api-parser-constructor] or
130-
[`ParserInstance`][api-parser-instance])
131-
— parser to use
132-
* `options` ([`Options`][api-options], optional)
133-
— configuration
125+
* `tree` ([`MdastNode`][mdast-node])
126+
— mdast tree to transform
127+
* `file` ([`VFile`][vfile])
128+
— virtual file
129+
* `Parser` ([`ParserConstructor`][api-parser-constructor] or
130+
[`ParserInstance`][api-parser-instance])
131+
— parser to use
132+
* `options` ([`Options`][api-options], optional)
133+
— configuration
134134

135135
###### Returns
136136

@@ -265,16 +265,16 @@ openings for [cross-site scripting (XSS)][xss] attacks.
265265
266266
## Related
267267
268-
* [`mdast-util-to-hast`](https://github.com/syntax-tree/mdast-util-to-hast)
269-
— transform mdast to hast
270-
* [`hast-util-to-nlcst`](https://github.com/syntax-tree/hast-util-to-nlcst)
271-
— transform hast to nlcst
272-
* [`hast-util-to-mdast`](https://github.com/syntax-tree/hast-util-to-mdast)
273-
— transform hast to mdast
274-
* [`hast-util-to-xast`](https://github.com/syntax-tree/hast-util-to-xast)
275-
— transform hast to xast
276-
* [`hast-util-sanitize`](https://github.com/syntax-tree/hast-util-sanitize)
277-
— sanitize hast nodes
268+
* [`mdast-util-to-hast`](https://github.com/syntax-tree/mdast-util-to-hast)
269+
— transform mdast to hast
270+
* [`hast-util-to-nlcst`](https://github.com/syntax-tree/hast-util-to-nlcst)
271+
— transform hast to nlcst
272+
* [`hast-util-to-mdast`](https://github.com/syntax-tree/hast-util-to-mdast)
273+
— transform hast to mdast
274+
* [`hast-util-to-xast`](https://github.com/syntax-tree/hast-util-to-xast)
275+
— transform hast to xast
276+
* [`hast-util-sanitize`](https://github.com/syntax-tree/hast-util-sanitize)
277+
— sanitize hast nodes
278278
279279
## Contribute
280280

test/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -270,8 +270,7 @@ test('fixtures', async function (t) {
270270
config.extensions.push(frontmatter())
271271
}
272272

273-
// To do: remove cast when `from-markdown` releases.
274-
const mdast = /** @type {Root} */ (fromMarkdown(String(input), config))
273+
const mdast = fromMarkdown(String(input), config)
275274

276275
assert.deepEqual(toNlcst(mdast, input, ParseLatin, options), expected)
277276
})

0 commit comments

Comments
 (0)