Skip to content

Version Packages#13

Merged
jwahdatehagh merged 1 commit into
mainfrom
changeset-release/main
Apr 13, 2026
Merged

Version Packages#13
jwahdatehagh merged 1 commit into
mainfrom
changeset-release/main

Conversation

@jwahdatehagh
Copy link
Copy Markdown
Member

@jwahdatehagh jwahdatehagh commented Apr 13, 2026

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@signinwithethereum/siwe@4.2.0

Minor Changes

  • 66f5176 Thanks @jwahdatehagh! - Accept unchecksummed addresses with a warning; verify signatures regardless of address case

    Parsing no longer rejects all-lowercase or all-uppercase addresses. Previously, any address that wasn't properly EIP-55 checksummed produced a parse error. Now only mixed-case addresses with an incorrect checksum fail — all-lowercase and all-uppercase addresses parse successfully and surface a non-fatal warning on the new warnings: string[] field of ParsedMessage and SiweMessage. Applications that want strict behavior can check message.warnings.length === 0 after construction.

    Verification is case-insensitive for EOA signature recovery. The recovered address (always EIP-55) is compared to the message address without regard to case, so messages carrying a lowercase or uppercase address verify correctly against a wallet signature.

    Object-constructed messages are normalized to EIP-55. new SiweMessage({ address: '0xabc...' }) stores the checksummed form so the emitted message — and the bytes presented to the signer — are spec-compliant. A warning is still recorded when the input needed normalization. Mixed-case inputs with an incorrect checksum throw. Messages constructed from a raw string preserve the address verbatim so signature re-construction matches what the wallet signed.

    New exports from @signinwithethereum/siwe-parser:

    • classifyAddressCase(address) — returns 'valid-checksum' | 'unchecksummed' | 'invalid-checksum'
    • toChecksumAddress(address) — canonical EIP-55 encoder (accepts any-case input)
    • AddressCaseStatus type

    Error message reworded — mixed-case addresses with a bad checksum now report invalid EIP-55 address checksum (was invalid EIP-55 address).

Patch Changes

  • Updated dependencies [66f5176]:
    • @signinwithethereum/siwe-parser@4.2.0

@signinwithethereum/siwe-parser@4.2.0

Minor Changes

  • 66f5176 Thanks @jwahdatehagh! - Accept unchecksummed addresses with a warning; verify signatures regardless of address case

    Parsing no longer rejects all-lowercase or all-uppercase addresses. Previously, any address that wasn't properly EIP-55 checksummed produced a parse error. Now only mixed-case addresses with an incorrect checksum fail — all-lowercase and all-uppercase addresses parse successfully and surface a non-fatal warning on the new warnings: string[] field of ParsedMessage and SiweMessage. Applications that want strict behavior can check message.warnings.length === 0 after construction.

    Verification is case-insensitive for EOA signature recovery. The recovered address (always EIP-55) is compared to the message address without regard to case, so messages carrying a lowercase or uppercase address verify correctly against a wallet signature.

    Object-constructed messages are normalized to EIP-55. new SiweMessage({ address: '0xabc...' }) stores the checksummed form so the emitted message — and the bytes presented to the signer — are spec-compliant. A warning is still recorded when the input needed normalization. Mixed-case inputs with an incorrect checksum throw. Messages constructed from a raw string preserve the address verbatim so signature re-construction matches what the wallet signed.

    New exports from @signinwithethereum/siwe-parser:

    • classifyAddressCase(address) — returns 'valid-checksum' | 'unchecksummed' | 'invalid-checksum'
    • toChecksumAddress(address) — canonical EIP-55 encoder (accepts any-case input)
    • AddressCaseStatus type

    Error message reworded — mixed-case addresses with a bad checksum now report invalid EIP-55 address checksum (was invalid EIP-55 address).

@github-actions github-actions Bot force-pushed the changeset-release/main branch from 211d10f to ed8fd0f Compare April 13, 2026 14:14
@jwahdatehagh jwahdatehagh reopened this Apr 13, 2026
@github-actions github-actions Bot force-pushed the changeset-release/main branch from ed8fd0f to 9bbdb1c Compare April 13, 2026 15:07
@jwahdatehagh jwahdatehagh reopened this Apr 13, 2026
@jwahdatehagh jwahdatehagh merged commit 5a39734 into main Apr 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant