Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages ready to publish #847

Merged
merged 1 commit into from
Oct 19, 2023
Merged

Packages ready to publish #847

merged 1 commit into from
Oct 19, 2023

Conversation

danez-bot
Copy link
Collaborator

@danez-bot danez-bot commented Sep 17, 2023

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

react-docgen@7.0.0

Major Changes

  • #846
    82154c3
    Thanks @danez! - getTypeFromReactComponent now
    returns an array of paths to types instead of just one. This can appear when
    multiple type definitions are found for a component, for example:

    const Component: React.FC<Props> = (props: { some: string }) => {};

    In this example both the Props definition as well as { some: string } are
    now found and used.

    Here is a simple diff to illustrate the change when using
    getTypeFromReactComponent:

    const type = getTypeFromReactComponent(path)
    
    -if (type) {
    +if (type.length > 0) {
        // do smth
    }
    
  • #848
    dda8915
    Thanks @danez! - Drop support for Node.js
    version 14.

    The minimum supported version is now 16.14.0

  • #846
    62e692f
    Thanks @danez! - resolveToValue will not resolve
    to ImportDeclaration anymore but instead to one of the possible specifiers
    (ImportSpecifier, ImportDefaultSpecifier or ImportNamespaceSpecifier).
    This gives better understanding to which specifier exactly resolveToValue
    did resolve a NodePath to.

    Here is a possible easy fix for this in a code snippet that uses
    resolveToValue

    const resolved = resolveToValue(path);
    
    -if (resolved.isImportDeclaration()) {
    +if (resolved.parentPath?.isImportDeclaration()) {
        // do smth
    }

Minor Changes

  • #862
    40ebb00
    Thanks @danez! - Support PropsWithoutRef,
    PropsWithRef and PropsWithChildren in TypeScript.

    Component props are now detected correctly when these builtin types are used,
    but they do currently not add any props to the documentation.

  • #846
    82154c3
    Thanks @danez! - Add support for React.FC in
    TypeScript.

Patch Changes

  • 6312f2f
    Thanks @renovate[bot]! - update
    dependency @types/doctrine to ^0.0.7

  • #846
    c01d1a0
    Thanks @danez! - Fix detection of react class
    components when super class is imported via named import.

  • #861
    74b6680
    Thanks @renovate! - update dependency
    @types/doctrine to ^0.0.8

  • #846
    0641700
    Thanks @danez! - Remove unnecessary call to
    resolveToValue when trying to find props type from react components.

  • #858
    3be404e
    Thanks @danez! - Fix detection of React.Children
    with ESM imports

@react-docgen/cli@2.0.0

Major Changes

  • #848
    dda8915
    Thanks @danez! - Drop support for Node.js
    version 14.

    The minimum supported version is now 16.14.0

Minor Changes

Patch Changes

@netlify
Copy link

netlify bot commented Sep 17, 2023

Deploy Preview for react-docgen ready!

Name Link
🔨 Latest commit 69ccc87
🔍 Latest deploy log https://app.netlify.com/sites/react-docgen/deploys/65314337a4e2b90008ad5d54
😎 Deploy Preview https://deploy-preview-847--react-docgen.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@danez-bot danez-bot force-pushed the changeset-release/main branch 26 times, most recently from 95f722b to d4fbf74 Compare September 24, 2023 10:40
@danez-bot danez-bot force-pushed the changeset-release/main branch 3 times, most recently from 4aa73fb to 691203d Compare September 25, 2023 22:04
@danez-bot danez-bot force-pushed the changeset-release/main branch 7 times, most recently from c4d7e25 to 77cc459 Compare October 11, 2023 06:56
@danez-bot danez-bot force-pushed the changeset-release/main branch 2 times, most recently from 00dba8c to 1d232e7 Compare October 12, 2023 20:53
@shilman
Copy link

shilman commented Oct 13, 2023

@danez is there a prerelease somewhere i can kick the tires on?

@danez-bot danez-bot force-pushed the changeset-release/main branch 15 times, most recently from 15c3f96 to 030e1a0 Compare October 19, 2023 14:50
@danez danez merged commit de7b230 into main Oct 19, 2023
15 checks passed
@danez danez deleted the changeset-release/main branch October 19, 2023 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants