Skip to content

docs: move output.extension onto the parser#103

Merged
stijnvanhulle merged 3 commits into
mainfrom
claude/output-extension-refactor-ipj92c
Jul 9, 2026
Merged

docs: move output.extension onto the parser#103
stijnvanhulle merged 3 commits into
mainfrom
claude/output-extension-refactor-ipj92c

Conversation

@stijnvanhulle

Copy link
Copy Markdown
Contributor

🎯 Changes

Documents the kubb change that moves import and export extension rewriting from output.extension onto the parser.

  • Add an extension option section to the @kubb/parser-ts page and correct the note that claimed the parsers take no configuration.
  • Drop the output.extension entry from the configuration reference and point to the parser option instead.
  • Update the defineParser parse signature and every code example to call the parser factories (parserTs(), parserTsx(), parserMd()).

The generated docs/5.x/changelog.md is left untouched.

✅ Checklist

  • I have followed the steps in the Contributing guide.
  • I am using USA English (serialize, color, center, canceled, analyze, license).
  • I ran the humanizer check on any new documentation I wrote.

🤖 Generated with Claude Code

https://claude.ai/code/session_01M1vHsoHZJrQLbLWeZtUJ9F


Generated by Claude Code

Document the extension option on parserTs and parserTsx, drop the
output.extension config section, and update every example to call the parser
factories (parserTs(), parserTsx(), parserMd()).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1vHsoHZJrQLbLWeZtUJ9F
@changeset-bot

changeset-bot Bot commented Jul 8, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c7717c5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

claude added 2 commits July 9, 2026 00:09
defineParser now wraps a factory like definePlugin, so update the custom-parser
examples to `defineParser(() => ({ ... }))` and drop the notes that called
parsers plain objects.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01M1vHsoHZJrQLbLWeZtUJ9F
…on-refactor-ipj92c

# Conflicts:
#	docs/5.x/guide/recipes.md
#	docs/5.x/reference/configuration.md
#	docs/5.x/reference/kit.md
#	parsers/parser-ts/index.md
@stijnvanhulle stijnvanhulle merged commit e149f22 into main Jul 9, 2026
1 check passed
@github-actions github-actions Bot deleted the claude/output-extension-refactor-ipj92c branch July 9, 2026 01:32
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.

2 participants