diff --git a/package.json b/package.json index 0321a861e7d..d311125da19 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/core-monorepo", - "version": "1297.0.0", + "version": "1298.0.0", "private": true, "description": "Monorepo for packages shared between MetaMask clients", "repository": { diff --git a/packages/advanced-chart-core/CHANGELOG.md b/packages/advanced-chart-core/CHANGELOG.md index ecbaf8011d6..e1be6bb3407 100644 --- a/packages/advanced-chart-core/CHANGELOG.md +++ b/packages/advanced-chart-core/CHANGELOG.md @@ -7,22 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] -### Added - -- Initial release: platform-agnostic TradingView Advanced Charts WebView engine copied verbatim from `metamask-mobile`'s `AdvancedChart/webview/src` - -### Changed +## [1.0.0] -- Introduce an injectable platform host transport layer so the engine's host communication and config ingestion are no longer hardwired to the React Native WebView - - Adds a `ChartHostTransport` interface with `createReactNativeHost()` (default, preserves existing behavior) and `createIframeHost()` (for browser/extension iframe hosts), plus `setHostTransport`/`getHostTransport` and a `bootstrap` export for programmatic hosts. - - `createIframeHost()` accepts an `allowedOrigins` array and resolves `targetOrigin` from `document.referrer` automatically, replacing the legacy RN-bridge shim the hosted page previously needed. - - `core/bridge.ts` now handles only JSON framing/parsing/validation and delegates transport to the active host; `window.CONFIG` reads route through `getConfig()`. - - A new `@metamask/advanced-chart-core/host` subpath export provides a side-effect-free entry point (no auto-boot) for non-mobile hosts that choose their own transport and boot timing. -- Conform the vendored WebView engine to the `core` monorepo lint conventions without altering its runtime behavior ([#9762](https://github.com/MetaMask/core/pull/9762)) - - Applies core naming, JSDoc, and code-quality rules in source, with narrowly-scoped rule allowances only for browser globals and external contract identifiers. - -### Fixed +### Added -- Correct barrel imports that resolved to package directories so the compiled output loads the intended `index` modules ([#9762](https://github.com/MetaMask/core/pull/9762)) +- Initial release: platform-agnostic TradingView Advanced Charts WebView engine copied verbatim from `metamask-mobile`'s `AdvancedChart/webview/src` ([#9762](https://github.com/MetaMask/core/pull/9762), [#10521](https://github.com/MetaMask/core/pull/10521)) -[Unreleased]: https://github.com/MetaMask/core/ +[Unreleased]: https://github.com/MetaMask/core/compare/@metamask/advanced-chart-core@1.0.0...HEAD +[1.0.0]: https://github.com/MetaMask/core/releases/tag/@metamask/advanced-chart-core@1.0.0 diff --git a/packages/advanced-chart-core/package.json b/packages/advanced-chart-core/package.json index ec9c0cdbef5..a6cdee7f1d0 100644 --- a/packages/advanced-chart-core/package.json +++ b/packages/advanced-chart-core/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/advanced-chart-core", - "version": "0.0.0", + "version": "1.0.0", "description": "Platform-agnostic TradingView Advanced Charts WebView engine shared across MetaMask clients", "keywords": [ "Ethereum",