Skip to content

Commit b67d714

Browse files
committed
Change to require Node.js 16
1 parent bf5824f commit b67d714

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

lib/index.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,7 @@ export function Markdown(options) {
187187
}
188188

189189
for (const deprecation of deprecations) {
190-
// To do: use `Object.hasOwn`.
191-
if (own.call(options, deprecation.from)) {
190+
if (Object.hasOwn(options, deprecation.from)) {
192191
unreachable(
193192
'Unexpected `' +
194193
deprecation.from +

readme.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ Safe URL (`string`).
200200

201201
Filter elements (TypeScript type).
202202

203-
###### Fields
203+
###### Parameters
204204

205205
* `node` ([`Element` from `hast`][hast-element])
206206
— element to check
@@ -284,7 +284,7 @@ Configuration (TypeScript type).
284284
285285
Transform URLs (TypeScript type).
286286
287-
###### Fields
287+
###### Parameters
288288
289289
* `url` (`string`)
290290
— URL
@@ -554,8 +554,8 @@ versions of Node.js.
554554
555555
When we cut a new major release, we drop support for unmaintained versions of
556556
Node.
557-
This means we try to keep the current release line, `react-markdown@^8`,
558-
compatible with Node.js 12.
557+
This means we try to keep the current release line, `react-markdown@^9`,
558+
compatible with Node.js 16.
559559
560560
They work in all modern browsers (essentially: everything not IE 11).
561561
You can use a bundler (such as esbuild, webpack, or Rollup) to use this package
@@ -690,7 +690,7 @@ It lets you define your own schema of what is and isn’t allowed.
690690
* [`remark-gfm`][remark-gfm]
691691
— add support for GitHub flavored markdown support
692692
* [`react-remark`][react-remark]
693-
modern hook based alternative
693+
— hook based alternative
694694
* [`rehype-react`][rehype-react]
695695
— turn HTML into React elements
696696

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"lib": ["dom", "es2022"],
1010
"module": "node16",
1111
"strict": true,
12-
"target": "es2020"
12+
"target": "es2022"
1313
},
1414
"exclude": ["coverage/", "node_modules/"],
1515
"include": ["**/*.js", "**/*.jsx", "lib/complex-types.d.ts"]

0 commit comments

Comments
 (0)