Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(deps): bump neverthrow from 3.1.2 to 3.1.4 #983

Merged
merged 1 commit into from
Jan 10, 2021

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 7, 2021

Bumps neverthrow from 3.1.2 to 3.1.4.

Release notes

Sourced from neverthrow's releases.

Improved error messages during tests & optional stack trace generation

This release swaps out the usage of a native Error with a custom JS Object for the _unsafeUnwrap and _unsafeUnwrapErr methods. This means that stack traces will not be generated by default.

The aforementioned methods will not generate a stack trace because Jest's error messages become less helpful.

If for some reason you want to log stack traces (because you're using these methods in a non-test environment ... which would be considered .... unsafe) for thrown exceptions, you can call the above methods with the following config object as an argument:

_unsafeUnwrapErr({
  withStackTrace: true,
})

Make Result instances comparable

supermacro/neverthrow#214 changes the match method from being implemented as a instance property to being implemented as a method on the prototype chain.

Therefore all instances of Result share the same reference in their match method. This allows testing libraries like Jest to make appropriate object comparisons / diffs.

Thanks to @bluenote10 for the submission!

Commits
  • b871704 Bump version to 3.1.4
  • be852ac Merge pull request #217 from supermacro/optional-stack-trace
  • a466690 Add docs on stack trace generation
  • 8bbb8eb Implement optional stack trace option
  • 4ef105c Ignore un-used vars rule
  • c230296 Throw objects instead of Errors for improved Jest readability
  • 3e9405f Update readme
  • 185c468 Merge pull request #210 from supermacro/renovate/typescript-eslint-monorepo
  • c9f82ca Update typescript-eslint monorepo to v4.11.0
  • 795acba Merge pull request #208 from supermacro/renovate/typescript-4.x
  • Additional commits viewable in compare view

Dependabot compatibility score

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 [neverthrow](https://github.com/supermacro/neverthrow) from 3.1.2 to 3.1.4.
- [Release notes](https://github.com/supermacro/neverthrow/releases)
- [Commits](supermacro/neverthrow@v3.1.2...3.1.4)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 7, 2021
@liangyuanruo liangyuanruo merged commit c552811 into develop Jan 10, 2021
@liangyuanruo liangyuanruo deleted the dependabot/npm_and_yarn/neverthrow-3.1.4 branch January 10, 2021 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant