v4.0.2
What's Changed
- Fix
ObjectId.fromHexString(…)on web by @JonasWanke in #5- Rewrote
ObjectId.fromHexStringto parse hex directly into bytes, avoiding 32-bit bitwise limitation on web and improving performance (~4x faster).
- Rewrote
- Fixed
ObjectId.fromValuesweb support by replacing>> 32with integer division intoProcessUniqueBytes. - Fixed
Random.secure()fallback inFallbackProcessUniqueto catch all exceptions, enabling Node.js compatibility. - Added CI pipeline with formatting, analysis, and tests on VM, Chrome, and Node.js.
New Contributors
- @JonasWanke made their first contribution in #5
Full Changelog: v4.0.1...v4.0.2