3rd party uuid lib has been replaced with native crypto.randomUUID. This should fix problems when testing toucan-js with jest (uuidjs/uuid#616). Thank you @e1g for raising in Workers Discord! (@robertcepa in #97)
Deprecates sampleRate and adds tracesSampleRate option with identical behavior. (@robertcepa in #93)
Exports useful types (Breadcrumb, Level, Options) from the library. (@huv1k in #88)
Bugfixes
When sampling is set to 0%, all events are now guaranteed to be skipped. Before, some events were still able to pass through in the rare case of Math.random() returning 0. (@robertcepa in #93)
When sampleRate is set to an invalid value (string, numbers outside of interval...), all events will be skipped (not part of the sample). This is aligned with other Sentry SDKs. Before, the behavior wasn't strictly defined and varied wildly depending on the value. (@robertcepa in #93)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps toucan-js from 2.5.0 to 2.6.1.
Release notes
Sourced from toucan-js's releases.
Commits
ef1a839
v2.6.106f6569
Merge pull request #97 from robertcepa/deprecate-uuid-in-favor-of-nativea2cb846
Replace uuid lib with native crypto.randomUUID1248f77
Merge pull request #96 from robertcepa/v2.6.06c95850
v2.6.0788d3d2
Merge pull request #95 from robertcepa/cleanup0d3fef8
cleanupa37c832
Merge pull request #94 from robertcepa/fix-docscdb1572
fix docs2df29f9
Merge pull request #93 from robertcepa/sampling-updateDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)