@revivejs/react-highcharts 17.0.0 → 18.0.0

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 +9 -3
  2. package/package.json +12 -10
package/README.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # @revivejs/react-highcharts
2
2
 
3
- > A maintained **React 17 wrapper for Highcharts** with a thin component API, imperative ref access, `stockChart` support, and versioned live demos.
3
+ > A maintained **React 18 wrapper for Highcharts** with a thin component API, imperative ref access, `stockChart` support, and versioned live demos.
4
4
 
5
5
  [![npm version](https://img.shields.io/npm/v/@revivejs/react-highcharts.svg?style=flat-square)](https://www.npmjs.com/package/@revivejs/react-highcharts)
6
6
  [![npm downloads](https://img.shields.io/npm/dt/@revivejs/react-highcharts.svg?style=flat-square)](https://www.npmjs.com/package/@revivejs/react-highcharts)
7
7
  [![license](https://img.shields.io/npm/l/@revivejs/react-highcharts.svg?style=flat-square)](https://github.com/alexandroit/react-highcharts/blob/master/LICENSE)
8
- [![React 17](https://img.shields.io/badge/React-17-blue?style=flat-square&logo=react)](https://react.dev)
8
+ [![React 18](https://img.shields.io/badge/React-18-blue?style=flat-square&logo=react)](https://react.dev)
9
9
  [![Highcharts](https://img.shields.io/badge/Highcharts-12.5-navy?style=flat-square)](https://www.highcharts.com)
10
10
 
11
11
  **[Documentation & Live Demos](https://alexandroit.github.io/react-highcharts/)** | **[npm](https://www.npmjs.com/package/@revivejs/react-highcharts)** | **[Issues](https://github.com/alexandroit/react-highcharts/issues)** | **[Repository](https://github.com/alexandroit/react-highcharts)**
12
12
 
13
- **Latest version:** `17.0.0`
13
+ **Latest version:** `18.0.0`
14
14
 
15
15
  ## Why this library?
16
16
 
@@ -27,6 +27,7 @@ That makes it easy to keep React in charge of composition while still using the
27
27
 
28
28
  | Package version | React version | Highcharts version | Demo link |
29
29
  | :---: | :---: | :---: | :--- |
30
+ | **18.0.0** | **18.3.x** | **12.5.x** | [React 18 demo](https://alexandroit.github.io/react-highcharts/react-18/) |
30
31
  | **17.0.0** | **17.0.x** | **12.5.x** | [React 17 demo](https://alexandroit.github.io/react-highcharts/react-17/) |
31
32
 
32
33
  ## Installation
@@ -136,6 +137,11 @@ export function ControlledChart() {
136
137
 
137
138
  ## Changelog
138
139
 
140
+ ### 18.0.0
141
+ - Updated the library line for React 18.3
142
+ - Added the `react-18` demo app and made it the latest docs line
143
+ - Switched the demo bootstrap to `createRoot`
144
+
139
145
  ### 17.0.0
140
146
  - Initial React wrapper line
141
147
  - Added the first versioned docs app for React 17
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@revivejs/react-highcharts",
3
- "version": "17.0.0",
4
- "description": "A thin React 17 wrapper for Highcharts with versioned demos.",
3
+ "version": "18.0.0",
4
+ "description": "A thin React 18 wrapper for Highcharts with versioned demos.",
5
5
  "keywords": [
6
6
  "react",
7
7
  "react-library",
@@ -46,23 +46,25 @@
46
46
  "sideEffects": false,
47
47
  "scripts": {
48
48
  "build": "tsup",
49
- "clean": "rm -rf dist docs/react-17",
49
+ "clean": "rm -rf dist docs/react-17 docs/react-18",
50
50
  "docs:install:react-17": "cd docs-src/react-17 && npm install",
51
+ "docs:install:react-18": "cd docs-src/react-18 && npm install",
51
52
  "build:docs:react-17": "cd docs-src/react-17 && npm run build",
52
- "build:docs": "npm run build:docs:react-17",
53
+ "build:docs:react-18": "cd docs-src/react-18 && npm run build",
54
+ "build:docs": "npm run build:docs:react-18",
53
55
  "typecheck": "tsc --noEmit"
54
56
  },
55
57
  "peerDependencies": {
56
58
  "highcharts": ">=12.5.0",
57
- "react": ">=17.0.0 <18.0.0",
58
- "react-dom": ">=17.0.0 <18.0.0"
59
+ "react": ">=17.0.0 <19.0.0",
60
+ "react-dom": ">=17.0.0 <19.0.0"
59
61
  },
60
62
  "devDependencies": {
61
- "@types/react": "17.0.91",
62
- "@types/react-dom": "17.0.26",
63
+ "@types/react": "18.3.28",
64
+ "@types/react-dom": "18.3.7",
63
65
  "highcharts": "12.5.0",
64
- "react": "17.0.2",
65
- "react-dom": "17.0.2",
66
+ "react": "18.3.1",
67
+ "react-dom": "18.3.1",
66
68
  "tsup": "8.5.1",
67
69
  "typescript": "5.9.3"
68
70
  }