2
2
3
3
All notable changes will be documented in this file.
4
4
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
6
43
7
44
### Add ` urlTransform `
8
45
@@ -12,7 +49,13 @@ you might want to change (or which might be unsafe so *we* make them safe).
12
49
And their name and APIs were a bit weird.
13
50
You can use the new ` urlTransform ` prop instead to change all your URLs.
14
51
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 `
16
59
17
60
The ` includeElementIndex ` option was removed, so ` index ` is never passed to
18
61
components.
@@ -39,13 +82,13 @@ function rehypePluginAddingIndex() {
39
82
}
40
83
```
41
84
42
- ### Remove ` rawSourcePos ` option
85
+ ### Remove ` rawSourcePos `
43
86
44
87
The ` rawSourcePos ` option was removed, so ` sourcePos ` is never passed to
45
88
components.
46
89
All components are passed ` node ` , so you can get ` node.position ` from them.
47
90
48
- ### Remove ` sourcePos ` option
91
+ ### Remove ` sourcePos `
49
92
50
93
The ` sourcePos ` option was removed, so ` data-sourcepos ` is never passed to
51
94
elements.
0 commit comments