Skip to content

@react-docgen/cli@1.0.0

Compare
Choose a tag to compare
@danez-bot danez-bot released this 16 Jun 20:58
· 710 commits to main since this release
7c1e9f1

Major Changes

  • #693
    3b28f6e
    Thanks @danez! - Introducing the new CLI package
    @react-docgen/cli which was extracted from react-docgen and is a complete
    rewrite. Compared to the old CLI these are some of the major differences:

    • Does not support input via stdin anymore
    • The path argument is now a glob
    • -x, --extension was removed in favor of globs
    • -e, --exclude was removed
    • -i, --ignore now accepts a glob
    • --handler added
    • --importer added
    • --failOnWarning added

    Check out https://react-docgen.dev/docs/getting-started/cli for the
    documentation.

  • #714
    80e4c74
    Thanks @danez! - Renamed --handlers option to
    --handler. This unifies all options to be singular.

Minor Changes

  • #714
    80e4c74
    Thanks @danez! - --resolver option can now be
    used multiple times.

    If used multiple times the resolvers will be chained in the defined order and
    all components from all resolvers will be used.

  • #753
    217a005
    Thanks @danez! - Add support for the
    FindAnnotatedDefinitionsResolver.

    Can be used with

    react-docgen --resolver find-all-annotated-components
    

Patch Changes