You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,13 @@
1
1
# extract-react-types
2
2
3
+
## 0.15.0
4
+
5
+
-**breaking:** We have changed how we approach types in a file. We try and resolve default exports, rather than resolving all react class componets in the file. This causes two breaking changes:
6
+
- instead of an array of classes, `Program` now has a single `component` property.
7
+
- Because of this, anything that relied on the `classes` attribute is invalid.
8
+
-**breaking** We now will attempt to resolve the default export before falling back its previous method of analyzing props (using the first component class in a file).
9
+
- 🎉 FEATURE 🎉: `extract-react-types` now supports functional components as default exports. We will resolve both the props and the default props as a best effort. Huge thanks to [Peter Gleeson](https://github.com/petegleeson) for working on this.
0 commit comments