Releases: exogen/graphql-markdown
v7.3.0
v7.2.0
New Features
-
Individual fields within a type are now linkable via an
idwithin each field’s table row. For example, if the typeMessageInputhas a fieldauthor, you can link to the corresponding table row with the fragment#messageinput.author.Additionally, fields can now appear in the Table of Contents, nested under their parent type, with the new
--toc-fieldsCLI option ortocFieldTypesoption torenderSchema.You can show fields in the TOC for specific types (comma-separated):
--toc-fields "Query,Mutation,Subscription"…or for all types with the special string
*. This will include query, mutation, subscription, object, input, and interface types.--toc-fields "*"Note that fields always get an anchor ID and are thus always linkable, regardless of whether they appear in the TOC.
(#104, thanks @cyberwombat and @fmontorsi-equinix for the initial work and discussion!)
Full Changelog: v7.1.0...v7.2.0
v7.1.0
New Features
- Render top-level Subscription type alongside Query and Mutation. (#70, thanks @amalfatti!)
Fixed
Full Changelog: v7.0.1...v7.1.0
v7.0.1
Fixed
- Fix missing
<tr>elements in Enum and Union<thead>. (#100, thanks @InesAguas!)
Full Changelog: v7.0.0...v7.0.1
v7.0.0
Breaking Change
- The minimum supported Node.js version has been bumped to 14.0.0.
- All dependencies have been bumped where possible; these may come with their own new system requirements (e.g. minimum Node.js version).
Internal
- Adopt standard Prettier config rather than less popular "Standard" config.
v6.1.0
v6.0.0
Breaking Change
- The introspection query is now obtained via
.getIntrospectionQuery()rather than.introspectionQuery, which means versions ofgraphqlprior to its introduction in v0.12 are no longer supported. - The
graphqlpackage was moved fromdependenciestopeerDependencies, so it will no longer be automatically installed with this package. This should mean that there won't potentially be multiple versions ofgraphqlinstalled innode_modulesand this package should just inherit whichever you already use (even though it should have already anyway due to it being resolved withresolve-from).
New Feature
- Support for
graphqlv15, which removed the deprecated.introspectionQueryAPI in favor of.getIntrospectionQuery(). (#65, @aisapatino) - Support for rendering
UNIONtypes. (#53, @nextdude)
v5.2.0
v5.1.0
New Feature
- The new
--headerCLI param allows you to add arbitrary HTTP headers to the request when fetching a remote GraphQL schema (#40). Thanks to @johannespfeiffer and @ruben-podadera for the original idea.