Skip to content

Commit

Permalink
Change to require Node.js 16
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 27, 2023
1 parent bf5824f commit b67d714
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,7 @@ export function Markdown(options) {
}

for (const deprecation of deprecations) {
// To do: use `Object.hasOwn`.
if (own.call(options, deprecation.from)) {
if (Object.hasOwn(options, deprecation.from)) {
unreachable(
'Unexpected `' +
deprecation.from +
Expand Down
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Safe URL (`string`).

Filter elements (TypeScript type).

###### Fields
###### Parameters

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

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lib": ["dom", "es2022"],
"module": "node16",
"strict": true,
"target": "es2020"
"target": "es2022"
},
"exclude": ["coverage/", "node_modules/"],
"include": ["**/*.js", "**/*.jsx", "lib/complex-types.d.ts"]
Expand Down

0 comments on commit b67d714

Please sign in to comment.