From ac7e228b25d653bcefe153c4aa53f0ce3db52c54 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 10 Dec 2022 20:42:19 +0000 Subject: [PATCH] chore: release main --- .release-please-manifest.json | 4 +-- packages/react-docgen-cli/CHANGELOG.md | 35 +++++++++++++++++++ packages/react-docgen-cli/package.json | 4 +-- packages/react-docgen/CHANGELOG.md | 48 ++++++++++++++++++++++++++ packages/react-docgen/package.json | 2 +- yarn.lock | 28 ++++++++++++--- 6 files changed, 112 insertions(+), 9 deletions(-) create mode 100644 packages/react-docgen-cli/CHANGELOG.md diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b848bae0795..f88abb8af22 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,4 +1,4 @@ { - "packages/react-docgen": "6.0.0-alpha.3", - "packages/react-docgen-cli": "1.0.0-alpha.0" + "packages/react-docgen": "6.0.0-alpha.4", + "packages/react-docgen-cli": "6.0.0-alpha.4" } diff --git a/packages/react-docgen-cli/CHANGELOG.md b/packages/react-docgen-cli/CHANGELOG.md new file mode 100644 index 00000000000..4ae5b05b0f1 --- /dev/null +++ b/packages/react-docgen-cli/CHANGELOG.md @@ -0,0 +1,35 @@ +# Changelog + +## [6.0.0-alpha.4](https://github.com/reactjs/react-docgen/compare/cli-v1.0.0-alpha.0...cli-v6.0.0-alpha.4) (2022-12-10) + + +### ⚠ BREAKING CHANGES + +* The lowest supported version of Node.js is now 14.17.0 + +### Features + +* Introduce new CLI ([3b28f6e](https://github.com/reactjs/react-docgen/commit/3b28f6ee864fddbd872441035b21ad416ae7f417)) +* migrate react-docgen to ESM and vitest ([#688](https://github.com/reactjs/react-docgen/issues/688)) ([2c8cdb6](https://github.com/reactjs/react-docgen/commit/2c8cdb6ca51c83807d3cfa496c94d2f0b65c07ae)) + + +### Bug Fixes + +* **deps:** pin dependencies ([b570fc1](https://github.com/reactjs/react-docgen/commit/b570fc1adf667d529d6e3c15abd19e5622fa7b3f)) +* **deps:** update dependency commander to v9.4.1 ([d4bff01](https://github.com/reactjs/react-docgen/commit/d4bff01688eb7909d01da576c95d3399cc0e5ae6)) +* Relax Node.js requirement to 14.15.0 as minimum ([28323a7](https://github.com/reactjs/react-docgen/commit/28323a764c9f001f3e785cd41119e31a345aa98e)) +* remove neo-async instead of Promises ([1b94566](https://github.com/reactjs/react-docgen/commit/1b945664ff16064cc11634fc4b26c406eacb38a1)) +* Remove node-dir and switch to glob ([cabfcd1](https://github.com/reactjs/react-docgen/commit/cabfcd13da9bef1a45b253e2ce68e80871a67dcc)) +* Update commander.js to version 9 ([234bcc1](https://github.com/reactjs/react-docgen/commit/234bcc1af06af0cce6df37dcb4410d86072bb77a)) + + +### Miscellaneous Chores + +* Link versions for both packages ([fc81d1d](https://github.com/reactjs/react-docgen/commit/fc81d1de8188c440baa2c0ea5a630386b1a94cbc)) + + +### Dependencies + +* The following workspace dependencies were updated + * dependencies + * react-docgen bumped from 6.0.0-alpha.3 to 6.0.0-alpha.4 diff --git a/packages/react-docgen-cli/package.json b/packages/react-docgen-cli/package.json index ef7a451faaf..df5f469bdf6 100644 --- a/packages/react-docgen-cli/package.json +++ b/packages/react-docgen-cli/package.json @@ -1,6 +1,6 @@ { "name": "@react-docgen/cli", - "version": "1.0.0-alpha.0", + "version": "6.0.0-alpha.4", "description": "A CLI and toolkit to extract information from React components for documentation generation.", "repository": "reactjs/react-docgen", "type": "module", @@ -31,7 +31,7 @@ "commander": "^9.4.1", "debug": "^4.3.4", "fast-glob": "^3.2.12", - "react-docgen": "6.0.0-alpha.3", + "react-docgen": "6.0.0-alpha.4", "slash": "^5.0.0" }, "devDependencies": { diff --git a/packages/react-docgen/CHANGELOG.md b/packages/react-docgen/CHANGELOG.md index f9711995f79..e777182fe11 100644 --- a/packages/react-docgen/CHANGELOG.md +++ b/packages/react-docgen/CHANGELOG.md @@ -1,5 +1,53 @@ # Changelog +## [6.0.0-alpha.4](https://github.com/reactjs/react-docgen/compare/react-docgen-v6.0.0-alpha.3...react-docgen-v6.0.0-alpha.4) (2022-12-10) + + +### ⚠ BREAKING CHANGES + +* The lowest supported version of Node.js is now 14.17.0 +* The main API changed and now includes only 2 arguments. Read MIGRATE.md for more info. + +### Features + +* Add code to errors to easily detect them ([3b342f4](https://github.com/reactjs/react-docgen/commit/3b342f4aeb378a0e2023b5d0e7078eb124d1c29e)) +* Add support for resolving destructuring in resolveToValue ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Add support for useImperativeHandle ([8521445](https://github.com/reactjs/react-docgen/commit/852144505c48bb9645ff05c1792c13de2b27c74c)) +* Improve performance by creating all visitors only once ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Introduce new CLI ([3b28f6e](https://github.com/reactjs/react-docgen/commit/3b28f6ee864fddbd872441035b21ad416ae7f417)) +* migrate react-docgen to ESM and vitest ([#688](https://github.com/reactjs/react-docgen/issues/688)) ([2c8cdb6](https://github.com/reactjs/react-docgen/commit/2c8cdb6ca51c83807d3cfa496c94d2f0b65c07ae)) +* Migrate to babel toolchain ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* New main API ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Provide a default importer in parallel to the factory ([5bdc615](https://github.com/reactjs/react-docgen/commit/5bdc61594011df068bebb57614636353ebc91d3b)) +* rename flowTypeHandler to codeTypeHandler ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Treat functions returning React.Children.map as Components ([c2e0679](https://github.com/reactjs/react-docgen/commit/c2e06796021df5d8f6e1bc7bc92a20e4e00ab02b)) + + +### Bug Fixes + +* Add `.cts` and `.mts` support for typescript ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Add support for TSAsExpressions when trying to stringify expressions ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Correctly handle ObjectProperties in isReactComponentMethod ([91b85f6](https://github.com/reactjs/react-docgen/commit/91b85f6fd1f12c58836ee77a4cfc5c83bebc4c7a)) +* Filter out estree plugin ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Handle React.forwardRef calls without a function ([f2d9ac0](https://github.com/reactjs/react-docgen/commit/f2d9ac0e6d5a96b7730dd41a94c627913d801488)) +* Handle some edge cases in resolveToValue ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Relax Node.js requirement to 14.15.0 as minimum ([28323a7](https://github.com/reactjs/react-docgen/commit/28323a764c9f001f3e785cd41119e31a345aa98e)) +* remove trailing comma and semi from raw value ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* rename exports and fix exports of importers ([#690](https://github.com/reactjs/react-docgen/issues/690)) ([0c2891d](https://github.com/reactjs/react-docgen/commit/0c2891d341796a05062276ab08ef1207de6770d6)) +* require node 14.18 or later ([#664](https://github.com/reactjs/react-docgen/issues/664)) ([f41b034](https://github.com/reactjs/react-docgen/commit/f41b0349c33314a516566914de68a871ceb42240)) +* Simplify resolveObjectValuesToArray and remove type handling ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Support all literal types in typescript ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Support all possible kinds of functions in the `displayNameHandler` ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* Support class and function declarations without identifier ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* support qualified type names ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) +* **ts:** parse jsdoc comment for ts structs ([#663](https://github.com/reactjs/react-docgen/issues/663)) ([8cc081e](https://github.com/reactjs/react-docgen/commit/8cc081e71b8c740105fd95f673c68abedc4fbd63)) +* Update default babel options ([4e9e437](https://github.com/reactjs/react-docgen/commit/4e9e4370ab1fe3775c0ebbfe57bedb03669868bf)) + + +### Miscellaneous Chores + +* Link versions for both packages ([fc81d1d](https://github.com/reactjs/react-docgen/commit/fc81d1de8188c440baa2c0ea5a630386b1a94cbc)) + ## [6.0.0-alpha.3](https://github.com/reactjs/react-docgen/compare/v6.0.0-alpha.2...v6.0.0-alpha.3) (2022-06-13) ### Bug Fixes diff --git a/packages/react-docgen/package.json b/packages/react-docgen/package.json index 5a70292f9fd..dc58a2b6158 100644 --- a/packages/react-docgen/package.json +++ b/packages/react-docgen/package.json @@ -1,6 +1,6 @@ { "name": "react-docgen", - "version": "6.0.0-alpha.3", + "version": "6.0.0-alpha.4", "description": "A library to extract information from React components for documentation generation.", "repository": "reactjs/react-docgen", "type": "module", diff --git a/yarn.lock b/yarn.lock index be2bbaf9ae7..9f391f100ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1619,7 +1619,7 @@ __metadata: commander: ^9.4.1 debug: ^4.3.4 fast-glob: ^3.2.12 - react-docgen: 6.0.0-alpha.3 + react-docgen: 6.0.0-alpha.4 slash: ^5.0.0 bin: react-docgen: bin/react-docgen.js @@ -7139,7 +7139,27 @@ __metadata: languageName: node linkType: hard -"react-docgen6pre@npm:react-docgen@6.0.0-alpha.3, react-docgen@6.0.0-alpha.3, react-docgen@workspace:packages/react-docgen": +"react-docgen6pre@npm:react-docgen@6.0.0-alpha.3": + version: 6.0.0-alpha.3 + resolution: "react-docgen@npm:6.0.0-alpha.3" + dependencies: + "@babel/core": ^7.7.5 + "@babel/generator": ^7.12.11 + ast-types: ^0.14.2 + commander: ^2.19.0 + doctrine: ^3.0.0 + estree-to-babel: ^3.1.0 + neo-async: ^2.6.1 + node-dir: ^0.1.10 + resolve: ^1.17.0 + strip-indent: ^3.0.0 + bin: + react-docgen: bin/react-docgen.js + checksum: db4c300910e2ef7b854ccf4f454bd701875b787d0bc0f444f89415223e7c288a5808d6cd0f7ef6346332c9de2d068d648bc801d16b6b07a1699c3e10670c4801 + languageName: node + linkType: hard + +"react-docgen@6.0.0-alpha.4, react-docgen@workspace:packages/react-docgen": version: 0.0.0-use.local resolution: "react-docgen@workspace:packages/react-docgen" dependencies: @@ -7367,7 +7387,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.14.2, resolve@npm:^1.20.0, resolve@npm:^1.22.1": +"resolve@npm:^1.14.2, resolve@npm:^1.17.0, resolve@npm:^1.20.0, resolve@npm:^1.22.1": version: 1.22.1 resolution: "resolve@npm:1.22.1" dependencies: @@ -7380,7 +7400,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@^1.14.2#~builtin, resolve@patch:resolve@^1.20.0#~builtin, resolve@patch:resolve@^1.22.1#~builtin": +"resolve@patch:resolve@^1.14.2#~builtin, resolve@patch:resolve@^1.17.0#~builtin, resolve@patch:resolve@^1.20.0#~builtin, resolve@patch:resolve@^1.22.1#~builtin": version: 1.22.1 resolution: "resolve@patch:resolve@npm%3A1.22.1#~builtin::version=1.22.1&hash=c3c19d" dependencies: