Skip to content

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Feb 15, 2019

This PR contains the following updates:

Package Type Update Change
react-docgen devDependencies major 3.0.0 -> 4.1.1

Release Notes

reactjs/react-docgen

v4.1.1

Compare Source

Bug Fixes

  • Resolve spread properties in object type (#​339)
  • Ignore lifecycle methods of latest react updates
  • Ignore private class properties (#​347)
  • Fix resolving of more than two Flow Utility types (#​345)

v4.1.0

Compare Source

New Features

  • Support all the config resolving related babel options (#​334)
    This allows the new options envName, babelrc, root, rootMode, configFile and babelrcRoots in the programatic API. To see what this options do head over to the babel documentation

Thanks @​jquense.

v4.0.1

Compare Source

Bug Fixes

  • Support 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

  • Removed cli arguments --legacy-decorators and --decorators-before-export. (#​327)
    As a replacement react-docgen will read your babel config and pickup the correct configuration from there.
  • Removed API options legacyDecorators and decoratorsBeforeExport. (#​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:
 react-docgen.parse(code, null, null, {
-  decoratorsBeforeExport: true
+  parserOptions: {
+    plugins: [
+      ["decorators", { decoratorsBeforeExport: true }],
+    ],
+  },
 });

New Features

  • Use local babel config if it exists (#​320)
    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 and module are correctly mocked, as babel uses them. (see our website configuration)
  • New configuration option 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.
  • New configuration option 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().
  • Support forwardRef for all resolvers (#​324)
  • Support custom parser options in programmatic API (#​327)
    This allows you to supply your own @babel/parser options through the react-docgen API with the newly added option parserOptions. 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.


  • If you want to rebase/retry this PR, check this box

Newsflash: Renovate has joined WhiteSource, and is now free for all use. Learn more or view updated terms and privacy policies.

@renovate renovate bot requested a review from vforge as a code owner February 15, 2019 08:17
@renovate renovate bot force-pushed the renovate/react-docgen-4.x branch from bec05ea to 3f4bdba Compare February 25, 2019 17:58
@renovate renovate bot force-pushed the renovate/react-docgen-4.x branch 2 times, most recently from 3ec2fad to df6316b Compare March 11, 2019 10:20
@renovate renovate bot force-pushed the renovate/react-docgen-4.x branch from df6316b to 184c4ea Compare April 23, 2019 13:22
@renovate renovate bot force-pushed the renovate/react-docgen-4.x branch from 184c4ea to fa7248f Compare May 3, 2019 23:50
@JoshuaRogan JoshuaRogan added wip Work in progress panda-ignore and removed wip Work in progress labels Aug 12, 2019
@renovate renovate bot force-pushed the renovate/react-docgen-4.x branch from fa7248f to cc6529e Compare September 6, 2019 17:35
@renovate renovate bot changed the title Update dependency react-docgen to v4 Update dependency react-docgen to v4 - autoclosed Dec 14, 2019
@renovate renovate bot closed this Dec 14, 2019
@renovate renovate bot deleted the renovate/react-docgen-4.x branch December 14, 2019 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants