Skip to content

Commit 53e95b2

Browse files
committed
chore: let us anticipate the next version because of breaking changes documented as v2.0.0
1 parent ed97f5f commit 53e95b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ or in html
403403

404404
## Pagination migration
405405

406-
The `Pagination` component API changed in v1.0.4. The previous API was computation-driven — you supplied raw counts and the component calculated the page range internally. The new API is render-driven: you supply the exact items to display, mirroring the [GOV.UK Design System pagination fixture shape](https://design-system.service.gov.uk/components/pagination/). This means the rendered HTML matches the Design System exactly and consumers have full control over what is shown.
406+
The `Pagination` component API changed in v2.0.0. The previous API was computation-driven — you supplied raw counts and the component calculated the page range internally. The new API is render-driven: you supply the exact items to display, mirroring the [GOV.UK Design System pagination fixture shape](https://design-system.service.gov.uk/components/pagination/). This means the rendered HTML matches the Design System exactly and consumers have full control over what is shown.
407407

408408
<details>
409409
<summary>Basic numbered pagination</summary>
@@ -421,7 +421,7 @@ import { Pagination } from "@hmlr/govuk-react-components-library";
421421
/>;
422422
```
423423

424-
**After (v1.0.4+)**
424+
**After (v2.0.0+)**
425425

426426
```jsx
427427
import { Pagination } from "@hmlr/govuk-react-components-library";

0 commit comments

Comments
 (0)