Update dependency @graphql-markdown/docusaurus to v1.34.0#11386
Merged
Conversation
Contributor
Code Coverage Report: Only Changed Files listed
Minimum allowed coverage is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
1.30.3→1.34.0Release Notes
graphql-markdown/graphql-markdown (@graphql-markdown/docusaurus)
v1.34.0Compare Source
This release is a spring-cleaning pass across GraphQL-Markdown: clearing cobwebs from the tooling attic, tightening the generation pipeline, and shipping a few practical improvements along the way.
What's New
beforeComposePageTypeHook- Control page section layoutA new lifecycle hook lets you reorder, filter, or hide sections on any generated page before it is rendered. This supersedes the deprecated boolean options
codeSection,relatedTypeSection, andexampleSection.See the Hook Recipes documentation for usage examples.
Namespace wrapping in code snippets
Operations that belong to a namespace (introduced in 1.33.0) now render their code snippets wrapped in the correct namespace block, giving a more accurate representation of the schema structure.
Runtime deprecation warnings
Using deprecated CLI flags or config options (
--noCode,--noRelatedType,--noExample,codeSection,relatedTypeSection) now emits a visible warning at runtime to help with migration.Docusaurus
<details>MDX implementation updateThe Docusaurus package updates its MDX handling for
<details>blocks to align with the current implementation.Bug Fixes
Mutationfield returningMutation) were incorrectly classified as namespace containers. This caused those fields to be omitted from operation lists and the root type to be stripped from the objects map. Fixed in@graphql-markdown/graphql.Breaking / Deprecations
relatedTypeSectionis deprecated - usebeforeComposePageTypeHookto hide the related-types section.codeSectionand booleanexampleSectionare deprecated - usebeforeComposePageTypeHookinstead.options.runOnBuildis deprecated and will be removed in a future release. Use thegraphql-to-docCLI command instead.PrinterEventenum is deprecated in favour ofICancellableEvent.PageSectionobjects instead of raw strings.Internal / Architecture
CancellableEvent,DataEvent,DataOutputEvent) moved from@graphql-markdown/core->@graphql-markdown/utils, making them available to downstream consumers.PrintCodeEvent,PrintTypeEvent,BeforeComposePageTypeEvent) moved to@graphql-markdown/printer-legacy.@graphql-markdown/typespromoted fromdevDependencies->dependenciesacross all packages.Package Versions
@graphql-markdown/docusaurus1.34.0@graphql-markdown/core1.20.0@graphql-markdown/printer-legacy1.15.0@graphql-markdown/types1.12.0@graphql-markdown/utils1.11.0@graphql-markdown/graphql1.2.1@graphql-markdown/cli0.7.1@graphql-markdown/diff1.1.14@graphql-markdown/helpers1.0.13@graphql-markdown/logger1.0.6Full Changelog: graphql-markdown/graphql-markdown@1.33.0...1.34.0
[Changes][1.34.0]
v1.33.0Compare Source
🌻 Your GraphQL docs are getting better with a 1st class support for namespaced operations and improved section permalink anchors.
What's New
Nested operation namespaces are now supported, allowing operation trees to be rendered with dotted namespaces and structured output (#2717).
Section links can now use predefined header IDs through
docOptions.sectionHeaderId(enabled by default), with CLI opt-out vianoSectionId(#2713).Full Changelog: graphql-markdown/graphql-markdown@1.32.1...1.33.0
[Changes][1.33.0]
v1.32.1Compare Source
🐛 This release fixes broken packages from 1.32.0 due to issues with introducing
bunin the development flow.[Changes][1.32.1]
v1.31.2🐛 This release fixes broken packages from 1.31.0
[Changes][1.31.2]
v1.31.0Compare Source
🎯 New Feature: Custom Category Sorting
We're excited to introduce the
categorySortoption, giving you full control over how your GraphQL documentation categories are organized in the sidebar!What's New
The new
categorySortoption allows you to define custom ordering for auto-generated documentation categories. Choose between:"natural"- Alphabetical sorting of categoriesArray.sort())Bonus: When
categorySortis enabled, folder names are automatically prefixed with zero-padded order numbers (e.g.,01-objects,02-queries,03-mutations), ensuring consistent ordering across your file explorer, IDE, and documentation sidebar.Usage Examples
Simple Alphabetical Sorting
Result: Categories are sorted alphabetically and folders are prefixed:
Custom Sort Function
Define your own category ordering logic:
Result: Custom-ordered categories with auto-prefixes:
Works with Group-by-Directive
The
categorySortoption integrates seamlessly with thegroupByDirectivefeature:Result: Custom groups are sorted and prefixed:
Why Use Category Sorting?
Documentation
For complete details and advanced use cases, see:
🎣 Preview: Enhanced Hooks & Event System
We're excited to introduce the foundation of a more extensible GraphQL-Markdown! This release migrates to native Node.js events and lays the groundwork for comprehensive hooks at every stage of the documentation generation lifecycle.
What's Here Now
EventEmitterWhat's Coming Next
This is just the beginning! Future releases will expose more hooks and events throughout the entire documentation generation process:
Our goal is to give you complete control over the documentation generation lifecycle, enabling deep customization at every step.
What You Can Do Today
The current hooks system allows you to:
Example
Create custom index.md files using the new hooks:
Configure in your Docusaurus plugin:
Documentation
For complete hook recipes and API reference:
📦 Package Versions
This release includes updates to the following packages:
@graphql-markdown/docusaurus@1.31.0@graphql-markdown/core@1.17.0@graphql-markdown/types@1.9.0@graphql-markdown/cli@0.5.0@graphql-markdown/printer-legacy@1.12.4@graphql-markdown/utils@1.9.1Full Changelog: graphql-markdown/graphql-markdown@1.30.3...1.31.0
[Changes][1.31.0]
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.