joi icon indicating copy to clipboard operation
joi copied to clipboard

Support for Bun javascript runtime

Open vesamet opened this issue 2 years ago • 1 comments

Support plan

  • is this issue currently blocking your project? (yes/no): yes
  • is this issue affecting a production system? (yes/no): no

Context

  • node version: I use Bun 0.5.6
  • module version:
  • environment (e.g. node, browser, native): bun
  • used with (e.g. hapi application, another framework, standalone, ...): standalone
  • any other relevant information:

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 ?

vesamet avatar Feb 23 '23 14:02 vesamet

Do you know what polyfills are missing?

Marsup avatar Mar 07 '23 23:03 Marsup