Skip to content

feat: export OrderByDirection type alias#325

Merged
G4brym merged 3 commits into
mainfrom
convenience-improvements
Feb 26, 2026
Merged

feat: export OrderByDirection type alias#325
G4brym merged 3 commits into
mainfrom
convenience-improvements

Conversation

@G4brym

@G4brym G4brym commented Feb 26, 2026

Copy link
Copy Markdown
Member

Summary

  • Adds an exported OrderByDirection type alias ("asc" | "desc") to src/types.ts, so consumers can import type { OrderByDirection } from "chanfana" instead of inlining literal unions or using as const.
  • Replaces all 6 inline "asc" | "desc" unions across source, tests, and docs with the new type.

@pkg-pr-new

pkg-pr-new Bot commented Feb 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/cloudflare/chanfana@325

commit: d7d98c3

@github-actions

github-actions Bot commented Feb 26, 2026

Copy link
Copy Markdown
Contributor

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 94.42% 695 / 736
🔵 Statements 94.54% 711 / 752
🔵 Functions 91.51% 151 / 165
🔵 Branches 87.23% 417 / 478
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
src/openapi.ts 89.53% 85% 80.95% 89.41% 61, 249, 254-270, 349-367
src/route.ts 98.75% 94% 100% 98.71% 268
src/adapters/hono.ts 90.62% 95.65% 81.81% 90.47% 88-93, 131-135, 225
src/endpoints/list.ts 95% 82.6% 80% 95% 41, 146-148
src/endpoints/types.ts 100% 100% 100% 100%
src/endpoints/d1/base.ts 96.36% 93.47% 100% 96.29% 192, 196
Generated in workflow #664 for commit d7d98c3 by the Vitest Coverage Report Action

Adds a router-level passthroughErrors flag that makes errors propagate
as raw exceptions to the framework's error handler (e.g. Hono's onError)
without any chanfana processing — no handleError(), no formatChanfanaError(),
no HTTPException wrapping.
@G4brym
G4brym merged commit c182e59 into main Feb 26, 2026
8 checks passed
@G4brym
G4brym deleted the convenience-improvements branch February 26, 2026 20:30
@github-actions github-actions Bot mentioned this pull request Feb 26, 2026
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.

1 participant