Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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": "1297.0.0",
"version": "1298.0.0",
"private": true,
"description": "Monorepo for packages shared between MetaMask clients",
"repository": {
Expand Down
21 changes: 5 additions & 16 deletions packages/advanced-chart-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion packages/advanced-chart-core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading