-
Notifications
You must be signed in to change notification settings - Fork 163
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
feature request: option to disable TEXT_ENCODING env check #219
Comments
Thank you for your report. That's a good point. I would rather like to surround the env access with |
hmm that will still prompt the user for access to the var (unless they specifically pass |
Ah, that's a good point. So I'm willing to implement the feature to omit env accesses. FYI the env accesses are required to test the cases where TextEncoder is not implemented (https://caniuse.com/textencoder it's only IE!). Because I'm dropping IE support, removing the branch where TextEncoder is not implemented might be good enough. |
👍 well that would be good for me, I trust you will do whats best for your library! You could always drill down an option bag rather than use env vars like I had suggested in the initial message if you dont want to remove it entirely (I feel like nodejs still doesnt have a TextEncoder class?) |
Hi, I am using this library in deno, and I noticed part of the encode/decode flow checks for the
TEXT_ENCODING
environment variable. It seems like this is a useful env var for testing, but I do not need it in production. In deno, I have to allow access to this var explicitly, and will have to tell users of my library to do the same, which feels confusing if this is in fact a testing var. I was wondering if it would be possible to send along a flag likefor reference, this is the warning deno will share when I do not allow access to env with msgpack.
None of this is really a blocker for using this library, I just believe it could make usage a bit more friendly for the deno audience :)
The text was updated successfully, but these errors were encountered: