better-ajv-errors icon indicating copy to clipboard operation
better-ajv-errors copied to clipboard

Consider making it compatible with browsers

Open fmvilas opened this issue 6 years ago • 4 comments

Hi, I like this package a lot but I've seen there are many dependencies that while they may be compatible with a browser through Browserify or similar, it makes the package unnecessarily big for such environment.

Have you considered making a lightweight browser-compatible version?

fmvilas avatar Jul 11 '19 12:07 fmvilas

We didn't think about it since we mostly built it to use it in backend. But most of bloats are coming from dependencies we use to make things look nicer in cli. So, it's possible to split things in smaller packages so that people can use only the parsing logic in browser. Thanks for raising it. I will give it shot.

torifat avatar Jul 23 '19 10:07 torifat

This would be amazing. I would like to help with this but I'd lie if I tell you I'll have time 😄. In case it helps, we'd like to use it as part of our AsyncAPI Javascript parser which must be browser-compatible for apps like playground.asyncapi.io.

fmvilas avatar Jul 24 '19 07:07 fmvilas

Are there any plans for this feature request?

buremba avatar Jan 17 '20 17:01 buremba

This function would be very nice. I want to use the ajv-json validation in my browser application, and better-ajv-errors is a very nice way to embellish the error messages for my end users.

Also, I don't see any reason why the framework shouldn't be usable in the browser as well, since no system resources need to be accessed. Furthermore ajv is browser compatible, so better-ajv-errors would cover a much wider range of applications.

jrebmann avatar Dec 07 '20 09:12 jrebmann