Skip to content

v2.0.0 - #227

Merged
whymarrh merged 2 commits into
developfrom
v2.0.0
May 7, 2020
Merged

v2.0.0#227
whymarrh merged 2 commits into
developfrom
v2.0.0

Conversation

@whymarrh

Copy link
Copy Markdown
Contributor

Refs #204

This PR represents v2

@whymarrh
whymarrh marked this pull request as ready for review May 7, 2020 21:46
@whymarrh
whymarrh requested a review from a team May 7, 2020 21:46

@Gudahtt Gudahtt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would probably be worth including #209 as a removal. I don't think that was released under any v1.x release.

Comment thread CHANGELOG.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't affect consumers of this package, so I'm not sure it's worth mentioning.

Comment thread CHANGELOG.md Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could probably remove this, since it's in v1.x

@Gudahtt Gudahtt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@whymarrh
whymarrh merged commit 8fbd6d1 into develop May 7, 2020
@whymarrh
whymarrh deleted the v2.0.0 branch May 7, 2020 22:37
@whymarrh

whymarrh commented May 7, 2020

Copy link
Copy Markdown
Contributor Author

A new version of the package @metamask/controllers (2.0.0) was published at 2020-05-07T22:41:16.835Z from [redacted]. The shasum of this package was e57762c213d2722fd178d4c5c288ad98a2ee8bdf.

Mrtenz pushed a commit to Mrtenz/core that referenced this pull request Jun 17, 2026
Naz-Ovh pushed a commit to 0x-fork/metamask-core that referenced this pull request Sep 13, 2026
…h proposal (MetaMask#227)

Added full support for [CAIP-19 Asset
IDs](https://github.com/ChainAgnostic/CAIPs/blob/main/CAIPs/caip-19.md)
including the necessary regex, structs, and parsing functions.

A few notes:
- While the regex of a chain namespace is technically the same as an
asset namespace, the official proposal makes a clear distinction between
the two, and so it's within the spirit of the spec to break these out
into separate properties. The same cannot be said for a chain reference
vs asset reference: these require different regex for validation.
- Previously, `CaipAssetId` required a tokenId (`/${string}`) to be
present. This has been changed to allow for tokenId to be optional (as
dictated by the official proposal) in both the type and its
corresponding regex string
- For completeness, `toCaipAccountId` and `parseCaipAssetId` functions
were added
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.

2 participants