Skip to content

Commit

Permalink
Update @types/mdast, unified, utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 15, 2023
1 parent 27268b2 commit b8cc334
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export default function remarkGfm(options = {}) {
const list = /** @type {unknown[]} */ (
// Other extensions
/* c8 ignore next 2 */
// @ts-expect-error: to do: remove when remark is released.
data[field] ? data[field] : (data[field] = [])
)

Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@
"index.js"
],
"dependencies": {
"@types/mdast": "^3.0.0",
"mdast-util-gfm": "^2.0.0",
"micromark-extension-gfm": "^2.0.0",
"unified": "^10.0.0"
"@types/mdast": "^4.0.0",
"mdast-util-gfm": "^3.0.0",
"micromark-extension-gfm": "^3.0.0",
"unified": "^11.0.0"
},
"devDependencies": {
"@types/tape": "^5.0.0",
Expand All @@ -53,7 +53,7 @@
"rimraf": "^3.0.0",
"string-width": "^6.0.0",
"tape": "^5.0.0",
"to-vfile": "^7.0.0",
"to-vfile": "^8.0.0",
"type-coverage": "^2.0.0",
"typescript": "^5.0.0",
"xo": "^0.56.0"
Expand Down
2 changes: 2 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import gfm from '../index.js'

test('gfm()', (t) => {
t.doesNotThrow(() => {
// @ts-expect-error: to do: remove when remark is released.
remark().use(gfm).freeze()
}, 'should not throw if not passed options')

Expand Down Expand Up @@ -50,6 +51,7 @@ test('fixtures', (t) => {
config = {stringLength: stringWidth}
}

// @ts-expect-error: to do: remove when remark is released.
const proc = remark().use(gfm, config).freeze()
const actual = proc.parse(file)
/** @type {Root} */
Expand Down

0 comments on commit b8cc334

Please sign in to comment.