|
1 | 1 | # Release Notes
|
2 | 2 |
|
| 3 | +## 7.1.1 |
| 4 | + |
| 5 | +### Patch Changes |
| 6 | + |
| 7 | +- [#969](https://github.com/reactjs/react-docgen/pull/969) |
| 8 | + [`639bf37`](https://github.com/reactjs/react-docgen/commit/639bf3799bd74c46c2163841fefd9f3cc847dce9) |
| 9 | + Thanks [@christon88](https://github.com/christon88)! - Expose more TypeScript |
| 10 | + types |
| 11 | + |
| 12 | +## 7.1.0 |
| 13 | + |
| 14 | +### Minor Changes |
| 15 | + |
| 16 | +- [#923](https://github.com/reactjs/react-docgen/pull/923) |
| 17 | + [`3033ca0`](https://github.com/reactjs/react-docgen/commit/3033ca0908eb53f6ae2ee8a40eb4ef96840ff7ad) |
| 18 | + Thanks [@rvetere](https://github.com/rvetere)! - Support generic types on |
| 19 | + `React.forwardRef` calls. |
| 20 | + |
| 21 | + Example: |
| 22 | + |
| 23 | + `react-docgen` will now find `IButtonProps`. |
| 24 | + |
| 25 | + ```ts |
| 26 | + export const FullWidthButton = forwardRef<HTMLButtonElement, IButtonProps>( |
| 27 | + () => {}, |
| 28 | + ); |
| 29 | + ``` |
| 30 | + |
3 | 31 | ## 7.0.3
|
4 | 32 |
|
5 | 33 | ### Patch Changes
|
6 | 34 |
|
7 |
| -- [#890](https://github.com/reactjs/react-docgen/pull/890) [`afe8d02`](https://github.com/reactjs/react-docgen/commit/afe8d022d058a5d49c6fc144fb165c02f4a764d9) Thanks [@danez](https://github.com/danez)! - Do not throw error when using namespace specifiers in export statements |
| 35 | +- [#890](https://github.com/reactjs/react-docgen/pull/890) |
| 36 | + [`afe8d02`](https://github.com/reactjs/react-docgen/commit/afe8d022d058a5d49c6fc144fb165c02f4a764d9) |
| 37 | + Thanks [@danez](https://github.com/danez)! - Do not throw error when using |
| 38 | + namespace specifiers in export statements |
8 | 39 |
|
9 | 40 | ## 7.0.2
|
10 | 41 |
|
11 | 42 | ### Patch Changes
|
12 | 43 |
|
13 |
| -- [`64bf1aa`](https://github.com/reactjs/react-docgen/commit/64bf1aa078148b4d44f8634252e5b726e24b8ee5) Thanks [@danez](https://github.com/danez)! - Fix handling of template literals |
| 44 | +- [`64bf1aa`](https://github.com/reactjs/react-docgen/commit/64bf1aa078148b4d44f8634252e5b726e24b8ee5) |
| 45 | + Thanks [@danez](https://github.com/danez)! - Fix handling of template literals |
14 | 46 |
|
15 | 47 | ## 7.0.1
|
16 | 48 |
|
|
341 | 373 | allows multiple resolvers to be chained.
|
342 | 374 |
|
343 | 375 | ```ts
|
344 |
| - import { builtinResolvers } from "react-docgen"; |
| 376 | + import { builtinResolvers } from 'react-docgen'; |
345 | 377 |
|
346 | 378 | const { ChainResolver } = builtinResolvers;
|
347 | 379 | const resolver = new ChainResolver([resolver1, resolver2], {
|
|
370 | 402 | addition to functions.
|
371 | 403 |
|
372 | 404 | ```ts
|
373 |
| - import type { ResolverClass, ResolverFunction } from "react-docgen"; |
| 405 | + import type { ResolverClass, ResolverFunction } from 'react-docgen'; |
374 | 406 |
|
375 | 407 | // This was the only option until now
|
376 | 408 | const functionResolver: ResolverFunction = (file: FileState) => {
|
|
625 | 657 | chained.
|
626 | 658 |
|
627 | 659 | ```ts
|
628 |
| - import { builtinResolvers } from "react-docgen"; |
| 660 | + import { builtinResolvers } from 'react-docgen'; |
629 | 661 |
|
630 | 662 | const { ChainResolver } = builtinResolvers;
|
631 | 663 | const resolver = new ChainResolver([resolver1, resolver2], {
|
|
636 | 668 | - 80e4c74: Allow resolvers to be classes in addition to functions.
|
637 | 669 |
|
638 | 670 | ```ts
|
639 |
| - import type { ResolverClass, ResolverFunction } from "react-docgen"; |
| 671 | + import type { ResolverClass, ResolverFunction } from 'react-docgen'; |
640 | 672 |
|
641 | 673 | // This was the only option until now
|
642 | 674 | const functionResolver: ResolverFunction = (file: FileState) => {
|
|
0 commit comments