Skip to content

Commit 306751a

Browse files
release: 3.5.1 (#457)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 70a1ea5 commit 306751a

File tree

4 files changed

+11
-13
lines changed

4 files changed

+11
-13
lines changed

.changeset/sharp-dancers-breathe.md

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

.changeset/wise-icons-wash.md

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

CHANGELOG.md

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

3+
## 3.5.1
4+
5+
### Patch Changes
6+
7+
- Avoid modifying import not from `'react'` when replacing types. ([#456](https://github.com/eps1lon/types-react-codemod/pull/456) [`5614a5f`](https://github.com/eps1lon/types-react-codemod/commit/5614a5f3964d1fb6614a9b72ff578f3225ff1656) by [@henryqdineen](https://github.com/henryqdineen))
8+
9+
- Fix a bug when replacing types in shorthand array type notations. ([#455](https://github.com/eps1lon/types-react-codemod/pull/455) [`70a1ea5`](https://github.com/eps1lon/types-react-codemod/commit/70a1ea5e3e402f5a9ff199dcb6a96b35398b7a89) by [@henryqdineen](https://github.com/henryqdineen))
10+
11+
For example, replacing `ReactText` in `ReactText[]` should now result in `(number | string)[]` instead of `number | string[]`.
12+
313
## 3.5.0
414

515
### 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.5.0",
3+
"version": "3.5.1",
44
"bin": "bin/types-react-codemod.cjs",
55
"scripts": {
66
"format": "prettier . --write",

0 commit comments

Comments
 (0)