Skip to content
This repository was archived by the owner on Feb 8, 2025. It is now read-only.

Commit fd59dc4

Browse files
authored
chore(deps): bump all unified dependencies (#683)
#### What this PR does / why we need it: As per title.
1 parent aec41ad commit fd59dc4

6 files changed

Lines changed: 283 additions & 379 deletions

File tree

packages/contented-pipeline-md/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -42,33 +42,33 @@
4242
"@contentedjs/contented-pipeline": "workspace:*",
4343
"@jsdevtools/rehype-toc": "^3.0.2",
4444
"@sindresorhus/slugify": "^2.2.1",
45-
"hast-util-to-string": "^2.0.0",
45+
"hast-util-to-string": "^3.0.0",
4646
"hastscript": "^8.0.0",
4747
"js-yaml": "^4.1.0",
4848
"lodash": "^4.17.21",
4949
"mdast-util-directive": "^3.0.0",
5050
"mdast-util-to-string": "^4.0.0",
5151
"minimatch": "^5.1.6",
5252
"rehype-autolink-headings": "^7.0.0",
53-
"rehype-external-links": "^2.1.0",
54-
"rehype-parse": "^8.0.5",
53+
"rehype-external-links": "^3.0.0",
54+
"rehype-parse": "^9.0.0",
5555
"rehype-slug": "^6.0.0",
56-
"rehype-stringify": "^9.0.4",
57-
"remark-directive": "^2.0.1",
56+
"rehype-stringify": "^10.0.0",
57+
"remark-directive": "^3.0.0",
5858
"remark-embed-images": "^4.0.0",
5959
"remark-frontmatter": "^5.0.0",
60-
"remark-gfm": "^3.0.1",
61-
"remark-parse": "^10.0.2",
62-
"remark-rehype": "^10.1.0",
60+
"remark-gfm": "^4.0.0",
61+
"remark-parse": "^11.0.0",
62+
"remark-rehype": "^11.0.0",
6363
"shiki": "^0.14.5",
64-
"to-vfile": "^7.2.4",
65-
"unified": "^10.1.2",
64+
"to-vfile": "^8.0.0",
65+
"unified": "^11.0.4",
6666
"unist-util-map": "^4.0.0",
6767
"unist-util-visit": "^5.0.0",
68-
"vfile": "^5.3.7"
68+
"vfile": "^6.0.1"
6969
},
7070
"devDependencies": {
71-
"@types/hast": "^2.3.7",
71+
"@types/hast": "^3.0.2",
7272
"@types/js-yaml": "^4.0.8",
7373
"@types/lodash": "^4.14.200",
7474
"@types/mdast": "^4.0.2",

packages/contented-pipeline-md/src/plugins/RemarkDirectiveRehype.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { h } from 'hastscript';
2-
import { Node } from 'mdast';
2+
import { Node, Parent } from 'mdast';
33
import { Directives } from 'mdast-util-directive';
4-
import { Plugin } from 'unified';
4+
import { Transformer } from 'unified';
55
import { map, MapFunction } from 'unist-util-map';
66

77
const isDirectiveNode = (node: Node): node is Directives => {
@@ -47,6 +47,6 @@ const mapDirectiveNode: MapFunction<Node> = (node: Node) => {
4747
return node;
4848
};
4949

50-
export function remarkDirectiveRehype(): Plugin {
51-
return (nodeTree) => map(nodeTree, mapDirectiveNode);
50+
export function remarkDirectiveRehype(): Transformer<Parent> {
51+
return (nodeTree: any) => map(nodeTree, mapDirectiveNode);
5252
}

packages/contented-pipeline-md/src/plugins/RemarkLink.unit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ it('should process RemarkLink.md', async () => {
3030
path: '/remark-link',
3131
fileId: expect.stringMatching(/[0-f]{64}/),
3232
modifiedDate: expect.any(Number),
33-
html: '<nav class="toc"><ol class="toc-level toc-level-1"><li class="toc-item toc-item-h1"><a class="toc-link toc-link-h1" href="#remarklinkts">RemarkLink.ts</a><ol class="toc-level toc-level-2"><li class="toc-item toc-item-h2"><a class="toc-link toc-link-h2" href="#test-links">Test Links</a></li></ol></li></ol></nav><h1 id="remarklinkts"><a aria-hidden="true" tabindex="-1" href="#remarklinkts"><span class="icon icon-link"></span></a><code>RemarkLink.ts</code></h1>\n<p><code>RemarkLink.ts</code> will automatically link to other markdown files in your repository.</p>\n<h2 id="test-links"><a aria-hidden="true" tabindex="-1" href="#test-links"><span class="icon icon-link"></span></a>Test Links</h2>\n<ul>\n<li><a href="heading/remark-linked">20-Heading/100-RemarkLinked.md</a></li>\n<li><a href="remark-linked">01-RemarkLinked.md</a></li>\n<li><a href="remark-link">RemarkLink.md</a></li>\n<li><a href="https://contented.dev" target="_blank" rel="nofollow">Contented</a></li>\n<li><a href="heading/remark-linked">20-Heading/100-RemarkLinked.md</a></li>\n<li><a href="heading/section-title/deep-link">20-Heading/40-Section Title/200-DeepLink.md</a></li>\n<li><a href="remark-linked">01-RemarkLinked.md</a></li>\n</ul>',
33+
html: '<nav class="toc"><ol class="toc-level toc-level-1"><li class="toc-item toc-item-h1"><a class="toc-link toc-link-h1" href="#remarklinkts">RemarkLink.ts</a><ol class="toc-level toc-level-2"><li class="toc-item toc-item-h2"><a class="toc-link toc-link-h2" href="#test-links">Test Links</a></li></ol></li></ol></nav><h1 id="remarklinkts"><a aria-hidden="true" tabindex="-1" href="#remarklinkts"><span class="icon icon-link"></span></a><code>RemarkLink.ts</code></h1>\n<p><code>RemarkLink.ts</code> will automatically link to other markdown files in your repository.</p>\n<h2 id="test-links"><a aria-hidden="true" tabindex="-1" href="#test-links"><span class="icon icon-link"></span></a>Test Links</h2>\n<ul>\n<li><a href="heading/remark-linked">20-Heading/100-RemarkLinked.md</a></li>\n<li><a href="remark-linked">01-RemarkLinked.md</a></li>\n<li><a href="remark-link">RemarkLink.md</a></li>\n<li><a href="https://contented.dev" rel="nofollow" target="_blank">Contented</a></li>\n<li><a href="heading/remark-linked">20-Heading/100-RemarkLinked.md</a></li>\n<li><a href="heading/section-title/deep-link">20-Heading/40-Section Title/200-DeepLink.md</a></li>\n<li><a href="remark-linked">01-RemarkLinked.md</a></li>\n</ul>',
3434
},
3535
]);
3636
});

packages/contented-pipeline/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@
4242
"@sindresorhus/slugify": "^2.2.1"
4343
},
4444
"devDependencies": {
45-
"@types/unist": "^2.0.9",
4645
"@workspace/jest-preset": "workspace:*",
4746
"@workspace/tsconfig": "workspace:*"
4847
}

packages/jest-preset/jest-preset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
preset: 'ts-jest',
55
reporters: ['default', 'github-actions'],
66
moduleNameMapper: {
7-
'(.+)\\.js': '$1',
7+
'(\\..+)\\.js': '$1',
88
},
99
transform: {
1010
'^.+\\.ts$': 'ts-jest',

0 commit comments

Comments
 (0)