|
1 | 1 | # extract-react-types |
2 | 2 |
|
| 3 | +## 0.19.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- [minor][d232e30](https://github.com/atlassian/extract-react-types/commit/d232e30): |
| 8 | + Implement stub for TSConditionalType |
| 9 | + |
3 | 10 | ## 0.18.0 |
| 11 | + |
4 | 12 | ### Minor Changes |
5 | 13 |
|
6 | | -- [minor] [907688c](https://github.com/atlassian/extract-react-types/commit/907688c): |
| 14 | +- [minor][907688c](https://github.com/atlassian/extract-react-types/commit/907688c): |
7 | 15 | sets 'all' option in flow parser to true |
8 | 16 |
|
9 | 17 | ### Patch Changes |
10 | 18 |
|
11 | | -- [patch] [e4c1b4b](https://github.com/atlassian/extract-react-types/commit/e4c1b4b): |
| 19 | +- [patch][e4c1b4b](https://github.com/atlassian/extract-react-types/commit/e4c1b4b): |
12 | 20 | - Changed the babel-explode-module to be referenced from @aparna036/babel-explode-module which has the opaque type |
13 | 21 | variable declaration support. |
14 | 22 |
|
15 | 23 | ## 0.17.0 |
| 24 | + |
16 | 25 | ### Minor Changes |
17 | 26 |
|
18 | | -- [minor] [e682bbb](https://github.com/atlassian/extract-react-types/commit/e682bbb): |
| 27 | +- [minor][e682bbb](https://github.com/atlassian/extract-react-types/commit/e682bbb): |
19 | 28 | Changes default export of `extract-react-types` to a named export. See below for changes. |
20 | 29 |
|
21 | 30 | ```diff |
|
26 | 35 | +const { extractReactTypes } = require('extract-react-types'); |
27 | 36 | ``` |
28 | 37 |
|
29 | | - |
30 | 38 | ### Patch Changes |
31 | 39 |
|
32 | | -- [patch] [4b3b4a4](https://github.com/atlassian/extract-react-types/commit/4b3b4a4): |
| 40 | +- [patch][4b3b4a4](https://github.com/atlassian/extract-react-types/commit/4b3b4a4): |
33 | 41 | - Add logicalExpression converter |
34 | 42 |
|
35 | 43 | ## 0.16.1 |
36 | | -- [patch] [e401ba8](https://github.com/atlassian/extract-react-types/commit/e401ba8): |
| 44 | + |
| 45 | +- [patch][e401ba8](https://github.com/atlassian/extract-react-types/commit/e401ba8): |
| 46 | + |
37 | 47 | - Add converter for typeCastExpression |
38 | 48 |
|
39 | | -- [patch] [6769531](https://github.com/atlassian/extract-react-types/commit/6769531): |
| 49 | +- [patch][6769531](https://github.com/atlassian/extract-react-types/commit/6769531): |
40 | 50 | - Decorators should work again |
41 | 51 | - Allow default props to be missing |
42 | 52 | - Return correct names for nested properties in an object |
43 | 53 | - Add `key` field to arrays (missing previously) |
44 | 54 |
|
45 | 55 | ## 0.16.0 |
46 | | -- [minor] [277b0be](https://github.com/atlassian/extract-react-types/commit/277b0be): |
| 56 | + |
| 57 | +- [minor][277b0be](https://github.com/atlassian/extract-react-types/commit/277b0be): |
| 58 | + |
47 | 59 | - Add findExportedComponents function |
48 | 60 |
|
49 | | -- [minor] [8f04dad](https://github.com/atlassian/extract-react-types/commit/8f04dad): |
| 61 | +- [minor][8f04dad](https://github.com/atlassian/extract-react-types/commit/8f04dad): |
| 62 | + |
50 | 63 | - Add name to function components like class components |
51 | 64 |
|
52 | | -- [minor] [6bc521c](https://github.com/atlassian/extract-react-types/commit/6bc521c): |
| 65 | +- [minor][6bc521c](https://github.com/atlassian/extract-react-types/commit/6bc521c): |
53 | 66 | - Support memo, forwardRef and function expressions |
54 | 67 |
|
55 | 68 | ## 0.15.1 |
|
59 | 72 | ## 0.15.0 |
60 | 73 |
|
61 | 74 | - **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: |
62 | | - - instead of an array of classes, `Program` now has a single `component` property. |
63 | | - - Because of this, anything that relied on the `classes` attribute is invalid. |
| 75 | + - instead of an array of classes, `Program` now has a single `component` property. |
| 76 | + - Because of this, anything that relied on the `classes` attribute is invalid. |
64 | 77 | - **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). |
65 | 78 | - 🎉 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. |
66 | 79 |
|
|
77 | 90 | - Do not throw an error when prop types contain a generic spread |
78 | 91 | - Update generic converter to convert utility types - at this time only $Exact, with the intent to add more. |
79 | 92 | $Exact<T> is now converted to T directly to make object spreading |
80 | | - easier to work with as we do not care about exactness when spreading |
81 | | - from a prop documentation perspective. |
| 93 | + easier to work with as we do not care about exactness when spreading |
| 94 | + from a prop documentation perspective. |
82 | 95 | - Gitignore vscode metadata |
83 | 96 | - Add referenceIdName to identifiers converted in type mode |
84 | | - This provides a name that can be used when wanting to print the name of |
85 | | - a generic or similar, which is what we're doing with the typeof node. |
| 97 | + This provides a name that can be used when wanting to print the name of |
| 98 | + a generic or similar, which is what we're doing with the typeof node. |
86 | 99 | - Update typeof to use referenceIdName if name does not exist |
87 | 100 |
|
88 | | - |
89 | 101 | ## 0.14.4 |
| 102 | + |
90 | 103 | - `getProp` recursive function now relies on `resolveFromGeneric` to escape from intersections, allowing for nested interrsections to find props. |
91 | 104 |
|
92 | 105 | ## 0.14.3 |
|
0 commit comments