Skip to content

Commit 1b23b5b

Browse files
authored
update packages (#80)
1 parent 459817b commit 1b23b5b

15 files changed

Lines changed: 3617 additions & 3495 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ jobs:
7373
runs-on: ubuntu-latest
7474
strategy:
7575
matrix:
76-
node-version: [18.x, 20.x, 22.x]
76+
node-version: [20.x, 22.x, 24.x]
77+
react-version: [^18.2.0, ^19.0.0]
7778
steps:
7879
- uses: actions/checkout@v4
7980

@@ -84,6 +85,7 @@ jobs:
8485
cache: "yarn"
8586

8687
- run: yarn --frozen-lockfile
88+
- run: yarn add react@${{ matrix.react-version }} react-dom@${{ matrix.react-version }} --dev
8789
- run: yarn lint
8890
- run: yarn build
8991
- run: yarn prettier-check

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Changed
11+
12+
- updated most of of the dependencies
13+
- :boom: changed to own reactstrap fork with react 19 support
14+
1015
## [5.3.1] - 2026-02-04
1116

1217
### Fixed

cypress/cypress/component/Paging/Paging.cy.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Paging } from "react-pattern-ui";
22
import { faker } from "@faker-js/faker";
3-
import { mount } from "cypress/react18";
3+
import { mount } from "cypress/react";
44

55
describe("Paging.cy.tsx", () => {
66
it("basic paging works", () => {
7-
const itemsPerPage = faker.datatype.number({ min: 1, max: 999 });
8-
const pages = faker.datatype.number({ min: 3, max: 999 });
9-
const currentPage = faker.datatype.number({ min: 2, max: pages - 1 });
7+
const itemsPerPage = faker.number.int({ min: 1, max: 999 });
8+
const pages = faker.number.int({ min: 3, max: 999 });
9+
const currentPage = faker.number.int({ min: 2, max: pages - 1 });
1010
const translations = { showedItemsText: "Item {from} to {to} from {total}", itemsPerPageDropdown: "Items per page" };
1111

1212
mount(
@@ -32,7 +32,7 @@ describe("Paging.cy.tsx", () => {
3232
cy.get("[data-cy-root] > .container-fluid > .row > .col-6:first-of-type > .btn-group > .dropdown-menu > .dropdown-item").then(
3333
(items: JQuery<HTMLElement>) => {
3434
expect(items.map((_, item) => item.textContent).toArray(), "possible items per page").to.deep.eq(
35-
[25, 50, 100, 200, itemsPerPage].sort((a, b) => a - b).map((itemNumber): string => itemNumber.toString()),
35+
[25, 50, 100, 200, itemsPerPage].toSorted((a, b) => a - b).map((itemNumber): string => itemNumber.toString()),
3636
);
3737
cy.wrap(items.filter((_, item) => item.textContent === "25")).click();
3838
cy.get("@setItemsPerPage").should("be.calledOnceWith", 25);
@@ -70,9 +70,9 @@ describe("Paging.cy.tsx", () => {
7070
});
7171

7272
it("paging without change of page size", () => {
73-
const itemsPerPage = faker.datatype.number({ min: 1, max: 999 });
74-
const pages = faker.datatype.number({ min: 3, max: 999 });
75-
const currentPage = faker.datatype.number({ min: 2, max: pages - 1 });
73+
const itemsPerPage = faker.number.int({ min: 1, max: 999 });
74+
const pages = faker.number.int({ min: 3, max: 999 });
75+
const currentPage = faker.number.int({ min: 2, max: pages - 1 });
7676
const translations = { showedItemsText: "Item {from} to {to} from {total}", itemsPerPageDropdown: "Items per page" };
7777

7878
mount(

cypress/cypress/component/PanelSidebar/PanelSidebar.cy.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable max-lines */
21
import { PropsWithChildren } from "react";
32
import {
43
PanelSideBarProvider,
@@ -9,7 +8,7 @@ import {
98
PanelItemOnSideBarCollapseOptions,
109
} from "react-pattern-ui";
1110
import { faBars, faCogs, faInfo, faHome, faPerson } from "@fortawesome/free-solid-svg-icons";
12-
import { mount } from "cypress/react18";
11+
import { mount } from "cypress/react";
1312

1413
type AppRoutes = "home" | "settings" | "dropdownTest" | "dropdown-test1" | "dropdown-test2" | "info";
1514
type TSideBarMenuItem = PanelItem<AppRoutes>;

cypress/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@
1212
"start": "next start"
1313
},
1414
"dependencies": {
15-
"@fortawesome/fontawesome-svg-core": "^6.1.1",
16-
"@fortawesome/free-solid-svg-icons": "^6.1.1",
17-
"@fortawesome/react-fontawesome": "^0.1.18",
15+
"@fortawesome/fontawesome-svg-core": "^7.2.0",
16+
"@fortawesome/free-solid-svg-icons": "^7.2.0",
17+
"@fortawesome/react-fontawesome": "^3.2.0",
1818
"@types/node": "18.11.9",
19-
"@types/react": "18.0.25",
20-
"@types/react-dom": "18.0.8",
19+
"@types/react": "19.2.14",
20+
"@types/react-dom": "19.2.3",
2121
"eslint": "^9.18.0",
2222
"next": "13.0.2",
2323
"react": "link:../node_modules/react",
2424
"react-dom": "link:../node_modules/react-dom",
2525
"react-pattern-ui": "link:../dist",
26-
"typescript": "4.8.4"
26+
"typescript": "5.9.3"
2727
},
2828
"devDependencies": {
29-
"@faker-js/faker": "^7.6.0",
30-
"@neolution-ch/eslint-config-neolution": "^2.1.0",
31-
"cypress": "^11.0.0"
29+
"@faker-js/faker": "^10.3.0",
30+
"@neolution-ch/eslint-config-neolution": "^2.3.0",
31+
"cypress": "^14.5.2"
3232
}
3333
}

0 commit comments

Comments
 (0)