hckhanh
what-the-fetch
BlogDocsChangelog

Refactor data validation utilities and improve type safety

#31Merged
Comparing
new-features
(
e1c9409
) with
main
(
7a020a1
)
CodSpeed Performance Gauge
-13%
Regressions
2
Untouched
2
Skipped
157

Benchmarks

Skipped (157)

Failed

POST request with body
benchmark/createFetch.bench.ts::createFetch benchmarks
Regression
CodSpeed Performance Gauge
-13%
100.8 µs116.4 µs
GET request with shared init
benchmark/createFetch.bench.ts::createFetch benchmarks
Regression
CodSpeed Performance Gauge
-11%
122.9 µs137.7 µs

Passed

GET request with params and query
benchmark/createFetch.bench.ts::createFetch benchmarks
CodSpeed Performance Gauge
-6%
200.1 µs213.8 µs
GET request without options
benchmark/createFetch.bench.ts::createFetch benchmarks
CodSpeed Performance Gauge
-7%
107.1 µs115.1 µs

Commits

Click on a commit to change the comparison range
Base
main
7a020a1
-13.55%
Update `deno.lock` to include versions for `arktype`, `valibot`, `zod`, and `syncpack` dependencies.
de89d4f
7 days ago
by hckhanh
-0.06%
Add comprehensive tests and documentation for ApiData type and validateRequestData utility (#32) * Initial plan * Add comprehensive tests for validateRequestData and validateData utilities Co-authored-by: hckhanh <6380436+hckhanh@users.noreply.github.com> * Update documentation to reflect new ApiData type and validation behavior Co-authored-by: hckhanh <6380436+hckhanh@users.noreply.github.com> * Refactor API schema typing and validation to enhance type safety, streamline request validation, and improve flexibility in `createFetch`. --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: hckhanh <6380436+hckhanh@users.noreply.github.com> Co-authored-by: Khánh Hoàng <hi@khanh.id>
6085111
7 days ago
by Copilot
+0.12%
Refactor `validateData`, `validateRequestData`, and `createFetch` to improve type safety, enhance schema validation, and unify request validation logic.
7b0093b
7 days ago
by hckhanh
+0.15%
Update tests and improve type safety for validateRequestData (#33) * Initial plan * Fix validateRequestData to return object and address review comments Co-authored-by: hckhanh <6380436+hckhanh@users.noreply.github.com> * Revert validateRequestData to return array as requested Co-authored-by: hckhanh <6380436+hckhanh@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: hckhanh <6380436+hckhanh@users.noreply.github.com>
e1c9409
7 days ago
by Copilot
© 2025 CodSpeed Technology
Home Terms Privacy Docs