joiful-ts / joiful

TypeScript Declarative Validation for Joi
239 stars 18 forks source link

Update to Joi v15+ (the latest) #21

Closed laurence-myers closed 5 years ago

laurence-myers commented 5 years ago

tsdv-joi requires an old version of Joi and its type definitions, let's update to the latest.

This will introduce breaking changes. For example, Joi removed all "date" functionality from the core library, to remove the dependency on moment, thereby minimising the library footprint and making it easier to package for the browser. For tsdv-joi, this means we'd need a separate project to provide decorators for joi-date.

fider commented 5 years ago

Just a note, how about using @hapi/joi instead joi? It is marked as deprecated and not maintained for over 5 months.