Skip to content

Commit 96d6e9e

Browse files
committed
Add changesets
1 parent db1eb48 commit 96d6e9e

24 files changed

+139
-0
lines changed

Diff for: .changeset/bright-rivers-swim.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': major
3+
---
4+
5+
Rename `flowTypeHandler` to `codeTypeHandler` because it handles Flow and TypeScript

Diff for: .changeset/clean-cooks-attend.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Add support for `.cts` and `.mts` extension when using typescript

Diff for: .changeset/giant-apricots-compete.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Treat functions returning `React.Children.map` as components

Diff for: .changeset/great-rice-rush.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Improve performance by creating all visitors only once

Diff for: .changeset/grumpy-falcons-rhyme.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Support all possible kinds of functions in the `displayNameHandler`

Diff for: .changeset/grumpy-hotels-admire.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': patch
3+
---
4+
5+
Handle `React.forwardRef` calls without a function

Diff for: .changeset/honest-boxes-behave.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'react-docgen': major
3+
---
4+
5+
Simplify `resolveObjectValuesToArray` and remove type handling. None of the code that was handling types was actually used.
6+
The return values of `resolveObjectValuesToArray` are now in the order they are defined in the source code.

Diff for: .changeset/late-cats-design.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Support all literal types in typescript

Diff for: .changeset/loud-spiders-divide.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': patch
3+
---
4+
5+
Handle some edge cases in resolveToValue

Diff for: .changeset/many-ligers-kneel.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': patch
3+
---
4+
5+
Remove trailing commas and semicolons from raw values in the documentation

Diff for: .changeset/mean-glasses-chew.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Support flow qualified type names

Diff for: .changeset/mighty-kids-report.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Support class and function declarations without identifier

Diff for: .changeset/nervous-humans-shave.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': major
3+
---
4+
5+
Migrate react-docgen to ES modules. Please read [this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)

Diff for: .changeset/nine-vans-bow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Support resolving of destructurings in `resolveToValue`

Diff for: .changeset/rotten-mugs-walk.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': patch
3+
---
4+
5+
Parse jsdoc comments for TypeScript structs

Diff for: .changeset/selfish-ducks-mate.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Improve performance drastically by making changes to AST traversal
6+
7+
Visitors are now pre-exploded and are cached in the module scope instead of creating them on every call.
8+
This change brought the benchmark from 170ops/s to 225ops/sec

Diff for: .changeset/silent-swans-melt.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
'react-docgen': major
3+
---
4+
5+
Main `parse` API was changed
6+
7+
The main API changed and now includes only 2 arguments.
8+
9+
```diff
10+
-parse(src, resolver, handlers, importer, options)
11+
+parse(src, { resolver, handlers, importers, ... })
12+
```

Diff for: .changeset/silly-ears-search.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Add codes to errors to be able to easily detect them
6+
7+
There is a new export `ERROR_CODES` that contains all possible error codes.
8+
The two errors that have codes right now are:
9+
10+
- `MISSING_DEFINITION`: No component found in file
11+
- `ERROR_CODES.MULTIPLE_DEFINITIONS`: Multiple components found in one files

Diff for: .changeset/smart-eagles-shop.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': patch
3+
---
4+
5+
Correctly handle ObjectProperties in `isReactComponentMethod`

Diff for: .changeset/smart-waves-refuse.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': minor
3+
---
4+
5+
Support handling `useImperativeHandle` correctly

Diff for: .changeset/strong-horses-build.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'react-docgen': major
3+
---
4+
5+
Renamed `handlers` to `builtinHandlers`
6+
Renamed `resolver` to `builtinResolvers`
7+
Renamed `importers` to `builtinImporters`

Diff for: .changeset/strong-pillows-visit.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': patch
3+
---
4+
5+
Add support for TSAsExpressions when trying to stringify expressions

Diff for: .changeset/tricky-shoes-check.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': major
3+
---
4+
5+
Migrate to babel toolchain

Diff for: .changeset/weak-numbers-bow.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-docgen': major
3+
---
4+
5+
Changed the minimum Node.js version to 14.17.0

0 commit comments

Comments
 (0)