@metamask-previews/profile-controller 1.0.1-preview-df8d6c7ea → 1.0.1-preview-aa49ca5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,21 +10,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
12
|
- Add `ProfileServiceMock` for mocking profile-api responses ([#10745](https://github.com/MetaMask/core/pull/10745))
|
|
13
|
-
- Add `getXAuthorizationUrl` method to `ProfileController` for initiating the X OAuth flow. It
|
|
13
|
+
- Add `getXAuthorizationUrl` method to `ProfileController` for initiating the X OAuth flow. It fetches the authorization URL via `ProfileService:getXAuthUrl` (the profile is resolved server-side from the verified bearer token), and returns the authorization URL and state parameter as ephemeral session data, without storing them in controller state ([#10668](https://github.com/MetaMask/core/pull/10668), [#10793](https://github.com/MetaMask/core/pull/10793))
|
|
14
14
|
- Add `disconnectX` method to `ProfileController` for unlinking the X account from a profile. It delegates to `ProfileService:disconnectX`, and when the disconnected profile matches the profile in state, clears `xProfile` from controller state and sets `connectedToX` to `false` ([#10668](https://github.com/MetaMask/core/pull/10668))
|
|
15
15
|
- Add `disconnectX` method to `ProfileService` for sending an authenticated `DELETE` request to the `profiles/{profileId}/x` endpoint; a `404` response is treated as success (the X account is already disconnected) ([#10668](https://github.com/MetaMask/core/pull/10668))
|
|
16
16
|
- Add `fetchAndUpdateProfile` method to the `ProfileController` to fetch a profile from the profile-api and update the controller's state ([#10793](https://github.com/MetaMask/core/pull/10793))
|
|
17
17
|
|
|
18
18
|
### Changed
|
|
19
19
|
|
|
20
|
-
- `getXAuthorizationUrl` no longer accepts a `linkedAddress` parameter
|
|
21
|
-
- `connectX`
|
|
20
|
+
- `getXAuthorizationUrl` no longer accepts a `linkedAddress` parameter ([#10668](https://github.com/MetaMask/core/pull/10668))
|
|
21
|
+
- `connectX` updates controller state (`xProfile`) on success ([#10668](https://github.com/MetaMask/core/pull/10668), [#10793](https://github.com/MetaMask/core/pull/10793))
|
|
22
22
|
- Bump `@metamask/profile-sync-controller` from `^34.0.0` to `^34.0.3` ([#10752](https://github.com/MetaMask/core/pull/10752), [#10756](https://github.com/MetaMask/core/pull/10756), [#10761](https://github.com/MetaMask/core/pull/10761))
|
|
23
23
|
|
|
24
24
|
### Fixed
|
|
25
25
|
|
|
26
26
|
- Fix the `ProfileController` messenger event type: the controller exposes `ProfileController:stateChanged` (emitted on state changes), not `ProfileController:stateChange` ([#10668](https://github.com/MetaMask/core/pull/10668))
|
|
27
|
-
- Fix the `ProfileController`'s `connectX` and `getXAuthorizationUrl` methods to prevent throwing when a profile ID doesn't exist in state ([#10793](https://github.com/MetaMask/core/pull/10793))
|
|
28
27
|
- Fix the `ProfileService`'s response type to not have `avatar_url` as nullable ([#10793](https://github.com/MetaMask/core/pull/10793))
|
|
29
28
|
|
|
30
29
|
## [1.0.1]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@metamask-previews/profile-controller",
|
|
3
|
-
"version": "1.0.1-preview-
|
|
3
|
+
"version": "1.0.1-preview-aa49ca5",
|
|
4
4
|
"description": "Controller for managing user profile data including username, bio, avatar, and linked accounts via the MetaMask Profile API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Ethereum",
|