With v2.1.0 this package was converted from CJS to ESM, which is a breaking change and should be released as 3.0.0. It appears to be intentional with the changes in 517e47b, but that is not captured in the documentation and the examples were not updated to reflect the change to ESM (the current CJS examples no longer work).
With v2.1.0 this package was converted from CJS to ESM, which is a breaking change and should be released as 3.0.0. It appears to be intentional with the changes in 517e47b, but that is not captured in the documentation and the examples were not updated to reflect the change to ESM (the current CJS examples no longer work).