Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider making it compatible with browsers #40

Open
fmvilas opened this issue Jul 11, 2019 · 4 comments
Open

Consider making it compatible with browsers #40

fmvilas opened this issue Jul 11, 2019 · 4 comments
Projects
Milestone

Comments

@fmvilas
Copy link

fmvilas commented Jul 11, 2019

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?

@torifat
Copy link
Collaborator

torifat commented Jul 23, 2019

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.

@fmvilas
Copy link
Author

fmvilas commented Jul 24, 2019

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.

@torifat torifat added this to the v1.1 milestone Sep 9, 2019
@torifat torifat added this to To do in v1.1 Sep 9, 2019
@buremba
Copy link

buremba commented Jan 17, 2020

Are there any plans for this feature request?

@jrebmann
Copy link

jrebmann commented Dec 7, 2020

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.

orgads pushed a commit to orgads/better-ajv-errors that referenced this issue Oct 18, 2021
chore(deps): update dependency prettier to v2.3.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
v1.1
  
To do
Status: To do
Development

No branches or pull requests

4 participants