Skip to content

Commit ba18509

Browse files
committed
fix: documentation & bump package version
1 parent 151f315 commit ba18509

2 files changed

Lines changed: 20 additions & 24 deletions

File tree

README.md

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# Chessground · [![npm (scoped)](https://img.shields.io/npm/v/@react-chess/chessground)](https://www.npmjs.com/package/@react-chess/chessground) [![Build Status](https://travis-ci.com/react-chess/chessground.svg?branch=main)](https://travis-ci.com/react-chess/chessground) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) ![ts](https://badgen.net/npm/types/tslib)
22

3-
43
Chessground is a React Wrapper package for the original [Chessground](https://github.com/ornicar/chessground) UI developed for [lichess.org](https://lichess.org). This project also contains zero chess logic, please visit [chess.js](https://github.com/jhlywa/chess.js) for validation/generation.
54

6-
This package is in very early stages of development, thus usage of this package in TypeScript is highly recommended.
5+
This package is in early stages of development, thus usage of this package in TypeScript is highly recommended.
76

87
## Installation
98

10-
Currently the package has `peerDependencies` on `react: ^16.8.0` and `react-dom: ^16.8.0`.
9+
Currently the package has `peerDependencies` on `react: ^16.8.0 || ^17.0.0 || ^18.0.0` and `react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0`.
1110

1211
```shell
1312
# If you are using npm:
@@ -21,26 +20,23 @@ yarn add @react-chess/chessground
2120

2221
After installing, the component can be default imported and it has 4 optional props:
2322

24-
- `width: number` defaults to `900`, determines width of the chessboard in pxs
25-
26-
- `height: number` defaults to `900`, determines height of the chessboard in pxs
27-
28-
- `config: Partial<Config>` defaults to `{}`, determines various [configuration properties](https://github.com/ornicar/chessground/blob/master/src/config.ts#L7-L90) of Chessground
29-
30-
- `contained: boolean` defaults to `false`, when enabled renders the chessboard in a `100%` width & height div.
23+
- `width: number` defaults to `900`, determines width of the chessboard in pxs
24+
25+
- `height: number` defaults to `900`, determines height of the chessboard in pxs
26+
27+
- `config: Config` defaults to `{}`, determines various [configuration properties](https://github.com/ornicar/chessground/blob/master/src/config.ts#L7-L90) of Chessground
28+
29+
- `contained: boolean` defaults to `false`, when enabled renders the chessboard in a `100%` width & height div.
3130

3231
Renders a simple `900 x 900` board, with pieces in their default position:
3332

3433
```jsx
35-
import Chessground from '@react-chess/chessground';
34+
import Chessground from "@react-chess/chessground";
3635

3736
// these styles must be imported somewhere
38-
import 'chessground/assets/chessground.base.css';
39-
import 'chessground/assets/chessground.brown.css';
40-
import 'chessground/assets/chessground.cburnett.css';
41-
42-
ReactDOM.render(
43-
<Chessground />,
44-
document.getElementById('root')
45-
);
37+
import "chessground/assets/chessground.base.css";
38+
import "chessground/assets/chessground.brown.css";
39+
import "chessground/assets/chessground.cburnett.css";
40+
41+
ReactDOM.render(<Chessground />, document.getElementById("root"));
4642
```

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-chess/chessground",
3-
"version": "1.3.2",
3+
"version": "1.3.4",
44
"description": "Chessground react wrapper",
55
"main": "build/esm/index.js",
66
"module": "build/esm/index.js",
@@ -42,14 +42,14 @@
4242
"eslint-plugin-jsx-a11y": "^6.4.1",
4343
"eslint-plugin-react": "^7.23.2",
4444
"eslint-plugin-react-hooks": "^4.2.0",
45-
"react": "^16.8.0 || ^17.0.0",
46-
"react-dom": "^16.8.0 || ^17.0.0",
45+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
46+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0",
4747
"semantic-release": "^17.4.2",
4848
"typescript": "^4.2.4"
4949
},
5050
"peerDependencies": {
51-
"react": "^16.8.0 || ^17.0.0",
52-
"react-dom": "^16.8.0 || ^17.0.0"
51+
"react": "^16.8.0 || ^17.0.0 || ^18.0.0",
52+
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0"
5353
},
5454
"dependencies": {
5555
"chessground": "8.3.5"

0 commit comments

Comments
 (0)