Skip to content

chore: update Zod import examples to use namespace imports#4715

Merged
yusukebe merged 1 commit intohonojs:mainfrom
sorafujitani:issue1738/validate-doc-nameed-import
Feb 11, 2026
Merged

chore: update Zod import examples to use namespace imports#4715
yusukebe merged 1 commit intohonojs:mainfrom
sorafujitani:issue1738/validate-doc-nameed-import

Conversation

@sorafujitani
Copy link
Copy Markdown
Contributor

@sorafujitani sorafujitani commented Feb 11, 2026

Update Zod import examples to use namespace imports (import * as z from 'zod') to align with the official Zod documentation.

Changes

  • src/validator/validator.test.ts: Consolidate import type { ZodSchema } and import { z } into import * as z from 'zod', update ZodSchema references to z.ZodSchema
  • docs/MIGRATION.md: Update Zod import example to namespace import style

Related

The author should do the following, if applicable

  • Add tests
  • Run tests
  • bun run format:fix && bun run lint:fix to format the code
  • Add TSDoc/JSDoc to document the code

@yusukebe yusukebe changed the title docs: update Zod import examples to use namespace imports chore: update Zod import examples to use namespace imports Feb 11, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 11, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.43%. Comparing base (69ad885) to head (3b6d2df).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4715   +/-   ##
=======================================
  Coverage   91.43%   91.43%           
=======================================
  Files         173      173           
  Lines       11382    11382           
  Branches     3302     3301    -1     
=======================================
  Hits        10407    10407           
  Misses        974      974           
  Partials        1        1           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown
Member

@yusukebe yusukebe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@yusukebe
Copy link
Copy Markdown
Member

@fs0414 Thanks!

@yusukebe yusukebe merged commit 4b29780 into honojs:main Feb 11, 2026
20 checks passed
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