Update dependency react-docgen to v4 - autoclosed #27
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.0.0
->4.1.1
Release Notes
reactjs/react-docgen
v4.1.1
Compare Source
Bug Fixes
v4.1.0
Compare Source
New Features
This allows the new options
envName
,babelrc
,root
,rootMode
,configFile
andbabelrcRoots
in the programatic API. To see what this options do head over to the babel documentationThanks @jquense.
v4.0.1
Compare Source
Bug Fixes
elementType
in proptypes correctly (#330)Thanks to @eps1lon for fixing it.
v4.0.0
Compare Source
In this version we focused on allowing our internals to be more flexible when it comes to allowing different configurations for
@babel/parser
. This will make it easier to introduce support for different javascript flavors (like TypeScript 🎉) in the future.Thanks to @jquense for working on this changes.
BREAKING CHANGES
--legacy-decorators
and--decorators-before-export
. (#327)As a replacement react-docgen will read your babel config and pickup the correct configuration from there.
legacyDecorators
anddecoratorsBeforeExport
. (#327)This probably will only affect libraries or tools that integrate react-docgen and use the programmatic API. In most cases the automatic pickup of babel configuration files will already be enough to not make this a breaking change. With the new
parserOptions
option you could still set this configuration, for example:New Features
We now automatically check if a babel configuration already exists in your project and use it as configuration for the
@babel/parser
we use. This was a necessary step as a lot of recent proposals in babel have configuration options, so we cannot simply activate everything. This change is not breaking unless your babel configuration is broken and does not enable all necessary features (which should throw already in your project).If you are using react-docgen in the browser, ensure that
fs
,net
andmodule
are correctly mocked, as babel uses them. (see our website configuration)fileName
(#320)This is a new option which gets forwarded to babel in order to pick the correct configuration file. Library and tool authors are strongly recommended to set this option whenever possible. Not setting it might result in no or the wrong babel configuration being picked up.
cwd
(#320)This is a new option which gets forwarded to babel in order to pick the correct configuration file. This option is usually autodetected by babel itself using
process.cwd()
.This allows you to supply your own
@babel/parser
options through thereact-docgen
API with the newly added optionparserOptions
. See our README for more information.Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.