@particle-academy/fancy-echarts 2.0.1 → 2.0.2

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.
Files changed (2) hide show
  1. package/README.md +6 -6
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -6,18 +6,18 @@ React component library wrapping [Apache ECharts](https://echarts.apache.org/) w
6
6
 
7
7
  ```bash
8
8
  # npm
9
- npm install @particle-academy/fancy-echarts echarts
9
+ npm install @particle-academy/fancy-echarts
10
10
 
11
11
  # pnpm
12
- pnpm add @particle-academy/fancy-echarts echarts
12
+ pnpm add @particle-academy/fancy-echarts
13
13
 
14
14
  # yarn
15
- yarn add @particle-academy/fancy-echarts echarts
15
+ yarn add @particle-academy/fancy-echarts
16
16
  ```
17
17
 
18
- `echarts` is a peer dependency install it alongside fancy-echarts so you control the version and avoid bundling two copies if other parts of your app already use echarts.
18
+ `echarts` is a peer dependency. **npm 7+** and **yarn 3+** install peer deps automatically nothing extra needed. **pnpm** needs `auto-install-peers=true` in `.npmrc`, or run `pnpm add echarts` once.
19
19
 
20
- For 3D charts (globe, surface, scatter3D, bar3D), also install `echarts-gl`:
20
+ 3D charts (globe, surface, scatter3D, bar3D) need the optional `echarts-gl` peer dep:
21
21
 
22
22
  ```bash
23
23
  npm install echarts-gl
@@ -25,7 +25,7 @@ npm install echarts-gl
25
25
 
26
26
  **Peer dependencies:** `react >= 18`, `react-dom >= 18`, `echarts >= 5.5`, `echarts-gl >= 2.0` (optional, only needed for 3D)
27
27
 
28
- > **Breaking change in 2.0** — `echarts` and `echarts-gl` moved from regular dependencies to peer dependencies. Upgrading from 1.x? Run `npm install echarts` (and `echarts-gl` if you use 3D charts) once.
28
+ > **Breaking change in 2.0** — `echarts` and `echarts-gl` moved from regular dependencies to peer dependencies. If you're on npm 7+ or yarn 3+ the upgrade is transparent. On older tooling or pnpm without auto-install, run `npm install echarts` (and `echarts-gl` if you use 3D charts) once.
29
29
 
30
30
  ## Quick Start
31
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@particle-academy/fancy-echarts",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "React component library wrapping Apache ECharts with typed components for every chart type",
5
5
  "repository": {
6
6
  "type": "git",