Skip to content
Compare
Choose a tag to compare
@seek-oss-ci seek-oss-ci released this 31 Oct 20:01
· 228 commits to master since this release
faad236

Patch Changes

  • The Braid Provider contains some code to check that it's running in a browser context (otherwise a BraidTestProvider should be used). (#1382)

    Part of this check was looking to see if there was a navigator object, which was not available in Node.
    If there were, it would check the userAgent to determine if it was inside jsdom.

    Node 21 has a navigator object, but it doesn't have a userAgent property, so this check was failing (cannot read property 'indexOf' of undefined).

    The "are we in JSDom" check in the BraidProvider has now been reworked slightly to account for the potentially existing but empty navigator object.