Skip to content

Releases: MetaMask/rpc-errors

7.0.1

24 Oct 10:05
ac963b4
Compare
Choose a tag to compare

Changed

  • Bump @metamask/utils from ^9.0.0 to ^10.0.0 (#161)

7.0.0

09 Oct 00:00
a659bc6
Compare
Choose a tag to compare

Changed

  • BREAKING: Preserve original messages during error serialization by default (#158)
    • The behavior introduced in 5.0.0 of overwriting the original message is available by passing shouldPreserveMessage: false to serializeError().
  • BREAKING: Bump minimum Node.js version from 16 to 18 (#154)

6.4.0

27 Sep 19:12
1b7e953
Compare
Choose a tag to compare

Changed

  • Migrate to ts-bridge (#152)
    • Migrates to ts-bridge from tsup, which may resolve issues when importing this package in CommonJS or ESM.

6.3.1

03 Jul 16:39
7b6288c
Compare
Choose a tag to compare

Changed

  • Bump @metamask/utils from ^8.3.0 to ^9.0.0 (#147)

6.3.0

05 Jun 23:06
5f83f15
Compare
Choose a tag to compare

Added

  • Expose error causes as cause property (#140)
    • JsonRpcError objects already had a .data.cause property. It is now exposed as .cause in order to to be recognized as ES Causes.

6.2.1

26 Feb 10:09
9c6f059
Compare
Choose a tag to compare

Fixed

  • Export OptionalDataWithOptionalCause type (#135)

6.2.0

21 Feb 20:23
d352b6f
Compare
Choose a tag to compare

Added

  • Add ESM build (#133)

Changed

  • Update @metamask/utils from ^8.1.0 to ^8.3.0 (#133)

6.1.0

10 Oct 22:30
9200551
Compare
Choose a tag to compare

Changed

  • Update dependency @metamask/utils from ^8.0.0 to ^8.1.0 (#108)

Fixed

  • Exclude dist/__fixtures__ files from published package (#114)

6.0.0

31 Aug 20:55
a56fcdf
Compare
Choose a tag to compare

Changed

  • Make Data type-parameter optional in JsonRpcError (#102)

Fixed

  • BREAKING: undefined is now not recognized as valid JSON value
    • Update dependency @metamask/utils from ^5.0.0 to ^8.0.0 (#101)

5.1.1

19 Apr 09:53
af3ef43
Compare
Choose a tag to compare

Fixed

  • Allow passing unknown values as cause (#91)
    • Prevously, only Error instances were allowed, but any value can be thrown as error