hapijs / joi

The most powerful data validation library for JS
Other
20.88k stars 1.51k forks source link

Support for Bun javascript runtime #2921

Open vesamet opened 1 year ago

vesamet commented 1 year ago

Support plan

Context

What problem are you trying to solve?

As early as I can remember, I've always used Joi as my go-to library from input/args validations. I would be happy if Joi could work with Bun.

Right now any form of validation fails in Bun 0.5.6, and the error message is inconsistant.

Do you have a new or modified API suggestion to solve the problem?

Fallback to a polyfill for the methods not available in Bun ?

Marsup commented 1 year ago

Do you know what polyfills are missing?