Skip to content

Commit b09abaa

Browse files
release: 3.3.0 (#373)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4191845 commit b09abaa

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

.changeset/bright-trains-end.md

Lines changed: 0 additions & 15 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# types-react-codemod
22

3+
## 3.3.0
4+
5+
### Minor Changes
6+
7+
- Add `react-element-default-any-props` codemod ([#371](https://github.com/eps1lon/types-react-codemod/pull/371) [`4191845`](https://github.com/eps1lon/types-react-codemod/commit/41918453f8479d09f2ce8f9f0a6ca95a1b8f99d3) by [@eps1lon](https://github.com/eps1lon))
8+
9+
Opt-in codemod in `preset-19`.
10+
11+
```diff
12+
// implies `React.ReactElement<unknown>` in React 19 as opposed to `React.ReactElement<any>` in prior versions.
13+
-declare const element: React.ReactElement
14+
+declare const element: React.ReactElement<any>
15+
```
16+
17+
Only meant to migrate old code not a recommendation for how to type React elements.
18+
319
## 3.2.0
420

521
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "types-react-codemod",
3-
"version": "3.2.0",
3+
"version": "3.3.0",
44
"bin": "bin/types-react-codemod.cjs",
55
"scripts": {
66
"format": "prettier . --write",

0 commit comments

Comments
 (0)