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

chore(deps): bump @spruceid/siwe-parser from 2.0.2 to 2.1.2 in /packages/shared #2693

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 1, 2024

Bumps @spruceid/siwe-parser from 2.0.2 to 2.1.2.

Release notes

Sourced from @​spruceid/siwe-parser's releases.

SIWE 2.1.2 Release

Dropping support for RegExp

Due to small inconsistencies between the ABNF grammar and the RegExp parser it was decided that it will no longer be supported and as of this version was removed. (#120)

Library improvements

With this release is now possible to extend the behavior of the verify function. Using the argument verificationFallback in the VerifyOpts object makes it possible to create a custom condition for verifying a SIWE message in case of failure (#85).

verificationFallback requires a function that has the same return as verify (Promise<SiweResponse>) and is provided with four arguments, those being:

  • params: VerifyParams: same params used in the verify call;
  • opts: VerifyOpts: same opts used in the verify call;
  • message: SiweMessage: the message currently being verified by verify;
  • EIP1271Promise: Promise<SiweResponse>: the result of the verification if the message was signed by a SmartContract Wallet.

Thanks to #99 a big performance upgrade was also possible making the library even better.

Additional tests were also introduced, additional checks and safeguards and general improvements to code quality.

SIWE 2.0.5 Release

Fix

  • Fixes a build issue from 2.0.4 where a dist folder with nested files was created from an added flag to enable typing for the JSON tests. These issues have since been resolved (#91).

SIWE 2.0.4 Release

To improve code quality and allow for easier contribution two new scripts to check for code smells and lint the code were added to package.json:

  • lint, which checks for code smells.
  • format, which fixes code accordingly to lint and format rules.

The deprecated function validate() was returning the result of the new function verify(), which was not the previous behavior therefore it is being fixed on this release to return the previous object (SiweMessage), tests were also added to make sure existing behavior will be maintained while this function is supported.

Upgrading from SIWE 1.x to 2.0 As mentioned in the previous release for most implementers, the existing code will continue to work as expected without changes, but there will be a warning message that validate() has been deprecated, and may be removed in future versions. To get rid of this warning, you can simply update instances of validate(signature) to const { data } = verify({ signature: signature }).

SIWE 2.0 Release

SIWE 2.0 has been released. The interfaces have been updated to allow consistent usage across languages for SIWE message parsing, creation, and verification. Message parsing has been split into its own package, siwe-parser, allowing implementers to utilize this functionality standalone without importing larger cryptographic dependencies.

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by sbihel, a new releaser for @​spruceid/siwe-parser since your current version.


Dependabot compatibility score

You can trigger a rebase of this PR 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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)

@dependabot dependabot bot requested a review from cvarley100 as a code owner July 1, 2024 01:21
@dependabot dependabot bot requested a review from nicole-obrien as a code owner July 1, 2024 01:21
@dependabot dependabot bot added this to the E0X.M01 - Security Improvements milestone Jul 1, 2024
@MarkNerdi MarkNerdi self-assigned this Jul 1, 2024
Bumps [@spruceid/siwe-parser](https://github.com/spruceid/siwe) from 2.0.2 to 2.1.2.
- [Release notes](https://github.com/spruceid/siwe/releases)
- [Commits](https://github.com/spruceid/siwe/compare/siwe-parser-v2.0.2...@spruceid/[email protected])

---
updated-dependencies:
- dependency-name: "@spruceid/siwe-parser"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@MarkNerdi MarkNerdi force-pushed the dependabot/npm_and_yarn/packages/shared/spruceid/siwe-parser-2.1.2 branch from 07210d0 to 151c29e Compare July 2, 2024 07:20
@MarkNerdi MarkNerdi enabled auto-merge (squash) July 2, 2024 07:39
@MarkNerdi MarkNerdi merged commit 90235e3 into develop Jul 2, 2024
9 checks passed
@MarkNerdi MarkNerdi deleted the dependabot/npm_and_yarn/packages/shared/spruceid/siwe-parser-2.1.2 branch July 2, 2024 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant