Skip to content

Latest commit

 

History

History
132 lines (89 loc) · 6.42 KB

File metadata and controls

132 lines (89 loc) · 6.42 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

Changed

  • Bump @metamask/keyring-controller from ^25.1.1 to ^25.2.0 (#8363)
  • Bump @metamask/profile-sync-controller from ^28.0.1 to ^28.0.2 (#8325)
  • Bump @metamask/controller-utils from ^11.19.0 to ^11.20.0 (#8344)
  • Bump @metamask/messenger from ^1.0.0 to ^1.1.1 (#8364, #8373)
  • Bump @metamask/base-controller from ^9.0.1 to ^9.1.0 (#8457)

Added

  • Expose all public ClaimsController methods through its messenger (#8219)
    • The following actions are now available:
      • ClaimsController:fetchClaimsConfigurations
      • ClaimsController:getSubmitClaimConfig
      • ClaimsController:generateClaimSignature
      • ClaimsController:getClaims
      • ClaimsController:saveOrUpdateClaimDraft
      • ClaimsController:getClaimDrafts
      • ClaimsController:deleteClaimDraft
      • ClaimsController:deleteAllClaimDrafts
      • ClaimsController:clearState
    • Corresponding action types are now exported (e.g. ClaimsControllerGetClaimsAction)

Changed

  • Bump @metamask/base-controller from ^9.0.0 to ^9.0.1 (#8317)
  • Bump @metamask/messenger from ^0.3.0 to ^1.0.0 (#8317)
  • Update dependencies (#8236, #8317)
    • Add @metamask/keyring-controller ^25.1.1
    • Add @metamask/profile-sync-controller ^28.0.1

Fixed

  • Fix type of actions union within ClaimsControllerMessenger and ClaimsServiceMessenger not to be any (#8236)
    • This was fixed by the addition of the dependencies above.

Changed

  • Bump @metamask/profile-sync-controller from ^27.0.0 to ^28.0.0 (#7849, #8162)
  • Bump @metamask/controller-utils from ^11.18.0 to ^11.19.0 (#7995)

Added

  • Added new public method, clearState to clear/reset the claims controller state. (#7780)

Changed

  • Bump @metamask/controller-utils from ^11.17.0 to ^11.18.0 (#7583)

Changed

  • Replaced global console logs with ModuleLogger. (#7569)

Added

  • Capture claims error and report to sentry using Messenger.captureException method from @metamask/messenger. (#7553)

Changed

  • Upgrade @metamask/utils from ^11.8.1 to ^11.9.0 (#7511)
  • Bump @metamask/controller-utils from ^11.16.0 to ^11.17.0 (#7534)

Added

  • Added updatedAt field to the claims draft. (#7523)

Added

  • Added claims draft to controller and persist in the state as drafts. (#7456)
  • Added public methods (CRUD) with relate to the ClaimDraft. (#7456)

Changed

  • Bump @metamask/controller-utils from ^11.15.0 to ^11.16.0 (#7202)

Added

  • Added new public method, fetchClaimsConfigurations to fetch the claims configuration from the Claims backend. (#7109)
  • Added new states fields, claimsConfigurations to the controller state. (#7109)
    • validSubmissionWindowDays - number of days the claim is valid for submission.
    • supportedNetworks - supported networks for the claim submission.
  • Exported CreateClaimRequest and SubmitClaimConfig types from the controller. (#7109)

Added

  • Added new @metamask/claims-controller package to handle shield subscription claims logics. (#7072)
  • Implementation of ClaimsController. (#7072)
    • getSubmitClaimConfig: Generate configurations required for the claim submission.
    • generateClaimSignature: Generate signature for the claim submission.
  • Implementation of Data-Service, ClaimsService. (#7072)
    • getClaims: fetch list of users' claims from the backend.
    • getClaimById: fetch single claim by id.
    • generateMessageForClaimSignature: generate message to sign for the claim signature.
    • verifyClaimSignature: verify claim signature produced by user.