Skip to content

Commit 1ab6715

Browse files
committed
update: adjust documentation for v3 release
- Update CHANGELOG date for v3.0.0 release - Simplify persistence example in MIGRATION guide - Update Node.js requirement to 20+ in CONTRIBUTING
1 parent 4ab10a1 commit 1ab6715

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5-
## [3.0.0](https://github.com/tomkp/react-split-pane/compare/v0.1.92...v3.0.0) (2024-12-22)
5+
## [3.0.0](https://github.com/tomkp/react-split-pane/compare/v0.1.92...v3.0.0) (2025-12-22)
66

77
### ⚠ BREAKING CHANGES
88

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ We follow [Conventional Commits](https://www.conventionalcommits.org/):
121121

122122
### Prerequisites
123123

124-
- Node.js 18+
124+
- Node.js 20+
125125
- npm 9+
126126

127127
### Setup

MIGRATION.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -300,14 +300,11 @@ import { SplitPane, Pane } from 'react-split-pane';
300300
import { usePersistence } from 'react-split-pane/persistence';
301301

302302
function App() {
303-
const [sizes, setSizes] = usePersistence({
304-
key: 'splitPos',
305-
defaultSizes: [200],
306-
});
303+
const [sizes, setSizes] = usePersistence({ key: 'splitPos' });
307304

308305
return (
309306
<SplitPane onResize={setSizes}>
310-
<Pane size={sizes[0]}>Pane 1</Pane>
307+
<Pane size={sizes[0] || 200}>Pane 1</Pane>
311308
<Pane>Pane 2</Pane>
312309
</SplitPane>
313310
);

0 commit comments

Comments
 (0)