22
33All notable changes will be documented in this file.
44
5- ## 9.0.0 - unreleased
5+ ## 9.0.0 - 2023-09-27
6+
7+ * [ ` b67d714 ` ] ( https://github.com/remarkjs/react-markdown/commit/b67d714 )
8+ Change to require Node.js 16\
9+ ** migrate** : update too
10+ * [ ` ec2b134 ` ] ( https://github.com/remarkjs/react-markdown/commit/ec2b134 )
11+ Change to require React 18\
12+ ** migrate** : update too
13+ * [ ` bf5824f ` ] ( https://github.com/remarkjs/react-markdown/commit/bf5824f )
14+ Change to use ` exports ` \
15+ ** migrate** : don’t use private APIs
16+ * [ ` c383a45 ` ] ( https://github.com/remarkjs/react-markdown/commit/c383a45 )
17+ Update ` @types/hast ` , utilities, plugins, etc\
18+ ** migrate** : update too
19+ * [ ` eca5e6b ` ] ( https://github.com/remarkjs/react-markdown/commit/eca5e6b )
20+ [ ` 08ead9e ` ] ( https://github.com/remarkjs/react-markdown/commit/08ead9e )
21+ Replace ` transformImageUri ` , ` transformLinkUri ` w/ ` urlTransform ` \
22+ ** migrate** : see “Add ` urlTransform ` ” below
23+ * [ ` de29396 ` ] ( https://github.com/remarkjs/react-markdown/commit/de29396 )
24+ Remove ` linkTarget ` option\
25+ ** migrate** : see “Remove ` linkTarget ` ” below
26+ * [ ` 4346276 ` ] ( https://github.com/remarkjs/react-markdown/commit/4346276 )
27+ Remove support for passing custom props to components\
28+ ** migrate** : see “Remove ` includeElementIndex ` ”, “Remove ` rawSourcePos ` ”,
29+ “Remove ` sourcePos ` ”, “Remove extra props passed to certain components”
30+ below
31+ * [ ` c0dfbd6 ` ] ( https://github.com/remarkjs/react-markdown/commit/c0dfbd6 )
32+ Remove UMD bundle from package\
33+ ** migrate** : use ` esm.sh ` or a CDN or so
34+ * [ ` e12b5e9 ` ] ( https://github.com/remarkjs/react-markdown/commit/e12b5e9 )
35+ Remove ` prop-types ` \
36+ ** migrate** : use TypeScript
37+ * [ ` 4eb7aa0 ` ] ( https://github.com/remarkjs/react-markdown/commit/4eb7aa0 )
38+ Change to throw errors for removed props\
39+ ** migrate** : don’t pass options that don’t do things
40+ * [ ` 8aabf74 ` ] ( https://github.com/remarkjs/react-markdown/commit/8aabf74 )
41+ Change to improve error messages\
42+ ** migrate** : expect better messages
643
744### Add ` urlTransform `
845
@@ -12,7 +49,13 @@ you might want to change (or which might be unsafe so *we* make them safe).
1249And their name and APIs were a bit weird.
1350You can use the new ` urlTransform ` prop instead to change all your URLs.
1451
15- ### Remove ` includeElementIndex ` option
52+ ### Remove ` linkTarget `
53+
54+ The ` linkTarget ` option was removed; you should likely not set targets.
55+ If you want to, use
56+ [ ` rehype-external-links ` ] ( https://github.com/rehypejs/rehype-external-links ) .
57+
58+ ### Remove ` includeElementIndex `
1659
1760The ` includeElementIndex ` option was removed, so ` index ` is never passed to
1861components.
@@ -39,13 +82,13 @@ function rehypePluginAddingIndex() {
3982}
4083```
4184
42- ### Remove ` rawSourcePos ` option
85+ ### Remove ` rawSourcePos `
4386
4487The ` rawSourcePos ` option was removed, so ` sourcePos ` is never passed to
4588components.
4689All components are passed ` node ` , so you can get ` node.position ` from them.
4790
48- ### Remove ` sourcePos ` option
91+ ### Remove ` sourcePos `
4992
5093The ` sourcePos ` option was removed, so ` data-sourcepos ` is never passed to
5194elements.
0 commit comments