Closed mofux closed 8 months ago
I could only track those two places.
There is another occurence in src/util.js
. Not sure if it also needs to be changed.
Thanks for the quick fix and maintaining this package ❤️ I can confirm that my problem is fixed now 🎉
I just upgraded to readable-stream@4.5.0 and I am now getting this error (using readable-stream in the browser):
global is not defined
I tracked these changes back to this commit, where there are many references to
global
that did not exist before. I'm wondering if they should be changed toglobalThis
instead, so it will not crash in browsers (global
is only globally defined in node).Here is one of the affected places for quick reference: https://github.com/nodejs/readable-stream/blob/700d28b674a440ee939d0d88491e9040c45de642/lib/ours/util.js#L5-L6