Skip to content

Commit 965180a

Browse files
committed
Update dev-dependencies
1 parent 6575d99 commit 965180a

File tree

4 files changed

+59
-57
lines changed

4 files changed

+59
-57
lines changed

.github/workflows/main.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
name: main
2-
on:
3-
- pull_request
4-
- push
51
jobs:
62
main:
73
name: ${{matrix.node}}
@@ -17,5 +13,9 @@ jobs:
1713
strategy:
1814
matrix:
1915
node:
20-
- lts/gallium
16+
- lts/hydrogen
2117
- node
18+
name: main
19+
on:
20+
- pull_request
21+
- push

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,18 @@
5050
"vfile-message": "^4.0.0"
5151
},
5252
"devDependencies": {
53-
"@types/node": "^20.0.0",
53+
"@types/node": "^22.0.0",
5454
"acorn": "^8.0.0",
55-
"c8": "^9.0.0",
55+
"c8": "^10.0.0",
5656
"micromark-extension-mdx-jsx": "^3.0.0",
5757
"micromark-extension-mdx-md": "^2.0.0",
5858
"prettier": "^3.0.0",
59-
"remark-cli": "^11.0.0",
60-
"remark-preset-wooorm": "^9.0.0",
59+
"remark-cli": "^12.0.0",
60+
"remark-preset-wooorm": "^10.0.0",
6161
"type-coverage": "^2.0.0",
6262
"typescript": "^5.0.0",
6363
"unist-util-remove-position": "^5.0.0",
64-
"xo": "^0.58.0"
64+
"xo": "^0.59.0"
6565
},
6666
"scripts": {
6767
"prepack": "npm run build && npm run format",

readme.md

+47-47
Original file line numberDiff line numberDiff line change
@@ -12,32 +12,32 @@
1212

1313
## Contents
1414

15-
* [What is this?](#what-is-this)
16-
* [When to use this](#when-to-use-this)
17-
* [Install](#install)
18-
* [Use](#use)
19-
* [API](#api)
20-
* [`mdxJsxFromMarkdown()`](#mdxjsxfrommarkdown)
21-
* [`mdxJsxToMarkdown(options?)`](#mdxjsxtomarkdownoptions)
22-
* [`MdxJsxAttribute`](#mdxjsxattribute)
23-
* [`MdxJsxAttributeValueExpression`](#mdxjsxattributevalueexpression)
24-
* [`MdxJsxExpressionAttribute`](#mdxjsxexpressionattribute)
25-
* [`MdxJsxFlowElement`](#mdxjsxflowelement)
26-
* [`MdxJsxFlowElementHast`](#mdxjsxflowelementhast)
27-
* [`MdxJsxTextElement`](#mdxjsxtextelement)
28-
* [`MdxJsxTextElementHast`](#mdxjsxtextelementhast)
29-
* [`ToMarkdownOptions`](#tomarkdownoptions)
30-
* [HTML](#html)
31-
* [Syntax](#syntax)
32-
* [Syntax tree](#syntax-tree)
33-
* [Nodes](#nodes)
34-
* [Mixin](#mixin)
35-
* [Content model](#content-model)
36-
* [Types](#types)
37-
* [Compatibility](#compatibility)
38-
* [Related](#related)
39-
* [Contribute](#contribute)
40-
* [License](#license)
15+
* [What is this?](#what-is-this)
16+
* [When to use this](#when-to-use-this)
17+
* [Install](#install)
18+
* [Use](#use)
19+
* [API](#api)
20+
* [`mdxJsxFromMarkdown()`](#mdxjsxfrommarkdown)
21+
* [`mdxJsxToMarkdown(options?)`](#mdxjsxtomarkdownoptions)
22+
* [`MdxJsxAttribute`](#mdxjsxattribute)
23+
* [`MdxJsxAttributeValueExpression`](#mdxjsxattributevalueexpression)
24+
* [`MdxJsxExpressionAttribute`](#mdxjsxexpressionattribute)
25+
* [`MdxJsxFlowElement`](#mdxjsxflowelement)
26+
* [`MdxJsxFlowElementHast`](#mdxjsxflowelementhast)
27+
* [`MdxJsxTextElement`](#mdxjsxtextelement)
28+
* [`MdxJsxTextElementHast`](#mdxjsxtextelementhast)
29+
* [`ToMarkdownOptions`](#tomarkdownoptions)
30+
* [HTML](#html)
31+
* [Syntax](#syntax)
32+
* [Syntax tree](#syntax-tree)
33+
* [Nodes](#nodes)
34+
* [Mixin](#mixin)
35+
* [Content model](#content-model)
36+
* [Types](#types)
37+
* [Compatibility](#compatibility)
38+
* [Related](#related)
39+
* [Contribute](#contribute)
40+
* [License](#license)
4141

4242
## What is this?
4343

@@ -256,8 +256,8 @@ overwrite them!
256256

257257
###### Parameters
258258

259-
* `options` ([`ToMarkdownOptions`][api-to-markdown-options])
260-
— configuration
259+
* `options` ([`ToMarkdownOptions`][api-to-markdown-options])
260+
— configuration
261261

262262
###### Returns
263263

@@ -388,19 +388,19 @@ Configuration (TypeScript type).
388388

389389
##### Fields
390390

391-
* `quote` (`'"'` or `"'"`, default: `'"'`)
392-
— preferred quote to use around attribute values
393-
* `quoteSmart` (`boolean`, default: `false`)
394-
— use the other quote if that results in less bytes
395-
* `tightSelfClosing` (`boolean`, default: `false`)
396-
— do not use an extra space when closing self-closing elements: `<img/>`
397-
instead of `<img />`
398-
* `printWidth` (`number`, default: `Infinity`)
399-
— try and wrap syntax at this width.
400-
When set to a finite number (say, `80`), the formatter will print
401-
attributes on separate lines when a tag doesn’t fit on one line.
402-
The normal behavior is to print attributes with spaces between them instead
403-
of line endings
391+
* `quote` (`'"'` or `"'"`, default: `'"'`)
392+
— preferred quote to use around attribute values
393+
* `quoteSmart` (`boolean`, default: `false`)
394+
— use the other quote if that results in less bytes
395+
* `tightSelfClosing` (`boolean`, default: `false`)
396+
— do not use an extra space when closing self-closing elements: `<img/>`
397+
instead of `<img />`
398+
* `printWidth` (`number`, default: `Infinity`)
399+
— try and wrap syntax at this width.
400+
When set to a finite number (say, `80`), the formatter will print
401+
attributes on separate lines when a tag doesn’t fit on one line.
402+
The normal behavior is to print attributes with spaces between them instead
403+
of line endings
404404

405405
## HTML
406406

@@ -590,12 +590,12 @@ This utility works with `mdast-util-from-markdown` version 2+ and
590590

591591
## Related
592592

593-
* [`micromark/micromark-extension-mdx-jsx`][micromark-extension-mdx-jsx]
594-
— support MDX JSX in micromark
595-
* [`syntax-tree/mdast-util-mdx`][mdast-util-mdx]
596-
— support MDX in mdast
597-
* [`remarkjs/remark-mdx`][remark-mdx]
598-
— support MDX in remark
593+
* [`micromark/micromark-extension-mdx-jsx`][micromark-extension-mdx-jsx]
594+
— support MDX JSX in micromark
595+
* [`syntax-tree/mdast-util-mdx`][mdast-util-mdx]
596+
— support MDX in mdast
597+
* [`remarkjs/remark-mdx`][remark-mdx]
598+
— support MDX in remark
599599

600600
## Contribute
601601

test.js

+2
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,7 @@ test('mdxJsxFromMarkdown', async function (t) {
415415

416416
removePosition(tree, {force: true})
417417

418+
// eslint-disable-next-line unicorn/prefer-structured-clone -- needed to turn instances into plain objects
418419
tree = JSON.parse(JSON.stringify(tree))
419420

420421
assert.deepEqual(tree, {
@@ -505,6 +506,7 @@ test('mdxJsxFromMarkdown', async function (t) {
505506

506507
removePosition(tree, {force: true})
507508

509+
// eslint-disable-next-line unicorn/prefer-structured-clone -- needed to turn instances into plain objects
508510
tree = JSON.parse(JSON.stringify(tree))
509511

510512
assert.deepEqual(tree, {

0 commit comments

Comments
 (0)