Skip to content

Commit

Permalink
Release/295.0.0 (#5287)
Browse files Browse the repository at this point in the history
Explanation
This is a RC for v295.0.0.

@metamask/[email protected]

## Highlights:
## Added
- Introduce the `logoUrl`
- Introduce `TokenDiscoveryApiService`
    - Add `getTrendingTokens` method
- Export types from pakage index for easier access to consumers

## Changed
- TokenSearchApiService uses the updated URL for `searchTokens`
  - "name" parameter is now "query"

Changelog has complete details.

Checklist
- [x] I've updated the test suite for new or updated code as appropriate
- [x] I've updated documentation (JSDoc, Markdown, etc.) for new or
updated code as appropriate
- [x] I've highlighted breaking changes using the "BREAKING" category
above as appropriate
- [x] I've prepared draft pull requests for clients and consumer
packages to resolve any breaking changes
  • Loading branch information
Bigshmow authored Feb 6, 2025
1 parent 694e6ff commit 8d7c15e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/core-monorepo",
"version": "294.0.0",
"version": "295.0.0",
"private": true,
"description": "Monorepo for packages shared between MetaMask clients",
"repository": {
Expand Down
17 changes: 10 additions & 7 deletions packages/token-search-discovery-controller/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [2.0.0]

### Added

- Introduce the `logoUrl` property to the `TokenSearchApiService` response
- Introduce the `logoUrl` property to the `TokenSearchApiService` response ([#5195](https://github.com/MetaMask/core/pull/5195))
- Specifically in the `TokenSearchResponseItem` type
- Introduce `TokenDiscoveryApiService` to keep discovery and search responsibilities separate
- Introduce `TokenDiscoveryApiService` to keep discovery and search responsibilities separate ([#5214](https://github.com/MetaMask/core/pull/5214))
- This service is responsible for fetching discover related data
- Add `getTrendingTokens` method to fetch trending tokens by chain
- Add `TokenTrendingResponseItem` type for trending token responses
- Export `TokenSearchResponseItem` type from the package index
- Export `TokenSearchResponseItem` type from the package index ([#5214](https://github.com/MetaMask/core/pull/5214))

### Changed

- Update the TokenSearchApiService to use the updated URL for `searchTokens`
- Bump @metamask/utils to v11.1.0 ([#5223](https://github.com/MetaMask/core/pull/5223))
- Update the `TokenSearchApiService` to use the updated URL for `searchTokens` ([#5195](https://github.com/MetaMask/core/pull/5195))
- The URL is now `/tokens-search` instead of `/tokens-search/name`
- Changed the "name" parameter to "query" in the `searchTokens` method
- These updates align with the Portfolio API's `/tokens-search` endpoint
- **BREAKING:** The `searchTokens` method now takes a `query` parameter instead of `name` ([#5195](https://github.com/MetaMask/core/pull/5195))

## [1.0.0]

Expand All @@ -34,5 +36,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- This service is responsible for making search related requests to the Portfolio API
- Specifically, it handles the `tokens-search` endpoint which returns a list of tokens based on the provided query parameters

[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/[email protected]
[2.0.0]: https://github.com/MetaMask/core/compare/@metamask/[email protected]...@metamask/[email protected]
[1.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/[email protected]
2 changes: 1 addition & 1 deletion packages/token-search-discovery-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@metamask/token-search-discovery-controller",
"version": "1.0.0",
"version": "2.0.0",
"description": "Manages token search and discovery through the Portfolio API",
"keywords": [
"MetaMask",
Expand Down

0 comments on commit 8d7c15e

Please sign in to comment.