turkerdev / fastify-type-provider-zod

MIT License
413 stars 25 forks source link

What's the new preferred way of accessing `ResponseValidationError`? #94

Closed erunion closed 2 months ago

erunion commented 4 months ago

With the 2.0.0 release ResponseValidationError is no longer exported from the main export, instead only from dist/ResponseValidationError:

import { ResponseValidationError } from 'fastify-type-provider-zod/dist/ResponseValidationError';

Is loading it from here the new preferred way of accessing this error class or can/should it be added back into the main export?

kibertoad commented 4 months ago

This is a bug. I'll restore it, thanks!

erunion commented 4 months ago

Brilliant, thank you!

MunifTanjim commented 2 months ago

Any updates on this?

kibertoad commented 2 months ago

Fix released in 2.1.0