Skip to content

Commit

Permalink
release: 3.3.0 (#373)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] committed Mar 21, 2024
1 parent 4191845 commit b09abaa
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .changeset/bright-trains-end.md

This file was deleted.

16 changes: 16 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,21 @@
# types-react-codemod

## 3.3.0

### Minor Changes

- 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))

Opt-in codemod in `preset-19`.

```diff
// implies `React.ReactElement<unknown>` in React 19 as opposed to `React.ReactElement<any>` in prior versions.
-declare const element: React.ReactElement
+declare const element: React.ReactElement<any>
```

Only meant to migrate old code not a recommendation for how to type React elements.

## 3.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "types-react-codemod",
"version": "3.2.0",
"version": "3.3.0",
"bin": "bin/types-react-codemod.cjs",
"scripts": {
"format": "prettier . --write",
Expand Down

0 comments on commit b09abaa

Please sign in to comment.