Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
vtaits committed Dec 10, 2024
1 parent 799f7db commit 2068426
Show file tree
Hide file tree
Showing 12 changed files with 952 additions and 1,284 deletions.
44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,35 +29,35 @@
"devDependencies": {
"98.css": "^0.1.20",
"@biomejs/biome": "^1.9.4",
"@faker-js/faker": "^9.1.0",
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@faker-js/faker": "^9.3.0",
"@fortawesome/fontawesome-svg-core": "^6.7.1",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@fortawesome/react-fontawesome": "^0.2.2",
"@storybook/addon-essentials": "^8.4.0",
"@storybook/addon-interactions": "^8.4.0",
"@storybook/addon-links": "^8.4.0",
"@storybook/blocks": "^8.4.0",
"@storybook/builder-vite": "^8.4.0",
"@storybook/manager-api": "^8.4.0",
"@storybook/react": "^8.4.0",
"@storybook/react-vite": "^8.4.0",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-links": "^8.4.7",
"@storybook/blocks": "^8.4.7",
"@storybook/builder-vite": "^8.4.7",
"@storybook/manager-api": "^8.4.7",
"@storybook/react": "^8.4.7",
"@storybook/react-vite": "^8.4.7",
"@storybook/testing-library": "^0.2.2",
"@types/gh-pages": "^6.1.0",
"@types/react": "^18.3.12",
"@vitejs/plugin-react": "^4.3.3",
"@types/react": "^19.0.1",
"@vitejs/plugin-react": "^4.3.4",
"@vtaits/react-paginator": "^2.0.0",
"@vtaits/react-router-dom-fake-browser": "^1.0.0",
"gh-pages": "^6.2.0",
"husky": "^9.1.6",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-is": "^18.3.1",
"husky": "^9.1.7",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-is": "^19.0.0",
"serve": "^14.2.4",
"storybook": "^8.4.0",
"storybook": "^8.4.7",
"styled-components": "^6.1.13",
"typedoc": "^0.26.10",
"typescript": "5.6.3",
"vite": "^5.4.10"
"typedoc": "^0.27.4",
"typescript": "5.7.2",
"vite": "^6.0.3"
},
"packageManager": "[email protected].1"
"packageManager": "[email protected].3"
}
24 changes: 12 additions & 12 deletions packages/filterlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,26 +50,26 @@
"prepare": "yarn build"
},
"dependencies": {
"@types/qs": "^6.9.16",
"@types/qs": "^6.9.17",
"mitt": "^3.0.1",
"qs": "^6.13.0",
"qs": "^6.13.1",
"sleep-promise": "^9.1.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@storybook/react": "^8.4.0",
"@swc/core": "^1.7.42",
"@types/react": "^18.3.12",
"@vitest/coverage-v8": "2.1.4",
"@storybook/react": "^8.4.7",
"@swc/core": "^1.10.1",
"@types/react": "^19.0.1",
"@vitest/coverage-v8": "2.1.8",
"@vtaits/react-router-dom-fake-browser": "^1.0.0",
"@vtaits/use-latest": "^1.3.0",
"exports-fallback": "^1.0.2",
"happy-dom": "^15.10.2",
"react": "^18.3.1",
"react-router-dom": "^6.27.0",
"happy-dom": "^15.11.7",
"react": "^19.0.0",
"react-router-dom": "^7.0.2",
"tsup": "^8.3.5",
"typescript": "5.6.3",
"vite": "^5.4.10",
"vitest": "^2.1.4"
"typescript": "5.7.2",
"vite": "^6.0.3",
"vitest": "^2.1.8"
}
}
6 changes: 3 additions & 3 deletions packages/qwik-filterlist-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"serve": "^14.2.4",
"typescript": "5.6.3",
"vite": "^5.4.10"
"typescript": "5.7.2",
"vite": "^6.0.3"
},
"dependencies": {
"@builder.io/qwik": "1.9.1",
"@builder.io/qwik-react": "^0.5.5",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.7.1",
"@fortawesome/react-fontawesome": "^0.2.2",
"@vtaits/filterlist": "^2.3.0",
"@vtaits/qwik-filterlist": "^2.0.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/qwik-filterlist/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"types": "./lib-types/index.d.ts",
"exports": {
".": {
"types": "./lib-types/index.d.ts",
"import": "./lib/index.qwik.mjs",
"require": "./lib/index.qwik.cjs",
"types": "./lib-types/index.d.ts"
"require": "./lib/index.qwik.cjs"
}
},
"repository": {
Expand Down Expand Up @@ -51,9 +51,9 @@
"@biomejs/biome": "^1.9.4",
"@builder.io/qwik": "^1.9.1",
"@vtaits/filterlist": "^2.3.0",
"typescript": "5.6.3",
"vite": "^5.4.10",
"vitest": "^2.1.4"
"typescript": "5.7.2",
"vite": "^6.0.3",
"vitest": "^2.1.8"
},
"dependencies": {
"is-promise": "^4.0.0"
Expand Down
21 changes: 11 additions & 10 deletions packages/react-filterlist-router-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,27 @@
"peerDependencies": {
"@vtaits/filterlist": "^2.0.0",
"@vtaits/react-filterlist": "^2.0.0",
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-router-dom": "^5.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@swc/core": "^1.7.42",
"@testing-library/react-hooks": "^8.0.1",
"@swc/core": "^1.10.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@types/history": "^4.7.11",
"@types/react": "^18.3.12",
"@types/react": "^19.0.1",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react": "^4.3.4",
"@vtaits/filterlist": "^2.3.0",
"@vtaits/react-filterlist": "^2.0.1",
"happy-dom": "^15.10.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"happy-dom": "^15.11.7",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^5.3.4",
"tsup": "^8.3.5",
"typescript": "5.6.3",
"vitest": "^2.1.4"
"typescript": "5.7.2",
"vitest": "^2.1.8"
},
"dependencies": {
"@vtaits/use-latest": "^1.3.0"
Expand Down
42 changes: 34 additions & 8 deletions packages/react-filterlist-router-5/src/useCreateDataStore.test.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
import { renderHook } from "@testing-library/react-hooks";
import { renderHook } from "@testing-library/react";
import type { StringBasedDataStoreOptions } from "@vtaits/filterlist/dist/datastore_string";
import { type Params, useFilterlist } from "@vtaits/react-filterlist";
import type { History, Location } from "history";
import {
type MutableRefObject,
type PropsWithChildren,
createRef,
} from "react";
import { type PropsWithChildren, type RefObject, createRef } from "react";
import { MemoryRouter, Route, useHistory, useLocation } from "react-router-dom";
import { describe, expect, test, vi } from "vitest";
import { useCreateDataStore } from "./useCreateDataStore";
Expand All @@ -28,10 +24,10 @@ function setup(
href: string,
options: StringBasedDataStoreOptions = {},
) {
const locationRef = createRef<Location<unknown>>() as MutableRefObject<
const locationRef = createRef<Location<unknown>>() as RefObject<
Location<unknown>
>;
const historyRef = createRef<History<unknown>>() as MutableRefObject<
const historyRef = createRef<History<unknown>>() as RefObject<
History<unknown>
>;

Expand Down Expand Up @@ -195,8 +191,23 @@ describe.concurrent("should change query", () => {
foo: "bar",
baz: "qux",
});

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(2);
});

result.current[2]?.setPageSize(20);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(3);
});

result.current[2]?.setSorting("id", false);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(4);
});

result.current[2]?.setPage(3);

await vi.waitFor(() => {
Expand Down Expand Up @@ -231,8 +242,23 @@ test.concurrent("navigate backward", async () => {
foo: "bar",
baz: "qux",
});

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(2);
});

result.current[2]?.setPageSize(20);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(3);
});

result.current[2]?.setSorting("id", false);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(4);
});

result.current[2]?.setPage(3);

await vi.waitFor(() => {
Expand Down
29 changes: 15 additions & 14 deletions packages/react-filterlist-router-6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,27 +44,28 @@
"peerDependencies": {
"@vtaits/filterlist": "^2.0.0",
"@vtaits/react-filterlist": "^2.0.0",
"react": "^16.14.0 || ^17.0.0 || ^18.0.0",
"react-router-dom": "^6.0.0"
"react": "^16.14.0 || ^17.0.0 || ^18.0.0 || ^19.0.0",
"react-router-dom": "^6.0.0 || ^7.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@storybook/react": "^8.4.0",
"@swc/core": "^1.7.42",
"@testing-library/react-hooks": "^8.0.1",
"@types/react": "^18.3.12",
"@vitejs/plugin-react": "^4.3.3",
"@storybook/react": "^8.4.7",
"@swc/core": "^1.10.1",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": "^16.1.0",
"@types/react": "^19.0.1",
"@vitejs/plugin-react": "^4.3.4",
"@vtaits/filterlist": "^2.3.0",
"@vtaits/react-filterlist": "^2.0.1",
"@vtaits/react-router-dom-fake-browser": "^1.0.0",
"happy-dom": "^15.10.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^6.27.0",
"happy-dom": "^15.11.7",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"react-router-dom": "^7.0.2",
"tsup": "^8.3.5",
"typescript": "5.6.3",
"vite": "^5.4.10",
"vitest": "^2.1.4"
"typescript": "5.7.2",
"vite": "^6.0.3",
"vitest": "^2.1.8"
},
"dependencies": {
"@vtaits/use-latest": "^1.3.0"
Expand Down
46 changes: 36 additions & 10 deletions packages/react-filterlist-router-6/src/useCreateDataStore.test.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
import { renderHook } from "@testing-library/react-hooks";
import { renderHook } from "@testing-library/react";
import type { StringBasedDataStoreOptions } from "@vtaits/filterlist/dist/datastore_string";
import { type Params, useFilterlist } from "@vtaits/react-filterlist";
import {
type MutableRefObject,
type PropsWithChildren,
createRef,
} from "react";
import { type PropsWithChildren, type RefObject, createRef } from "react";
import {
type Location,
MemoryRouter,
Expand Down Expand Up @@ -34,8 +30,8 @@ function TestRouteComponent({
locationRef,
navigateRef,
}: {
locationRef: MutableRefObject<Location<unknown>>;
navigateRef: MutableRefObject<NavigateFunction>;
locationRef: RefObject<Location<unknown>>;
navigateRef: RefObject<NavigateFunction>;
}) {
const navigate = useNavigate();
const location = useLocation();
Expand Down Expand Up @@ -63,8 +59,8 @@ function setup(
path="page"
element={
<TestRouteComponent
locationRef={locationRef as MutableRefObject<Location<unknown>>}
navigateRef={navigateRef as MutableRefObject<NavigateFunction>}
locationRef={locationRef as RefObject<Location<unknown>>}
navigateRef={navigateRef as RefObject<NavigateFunction>}
/>
}
/>
Expand Down Expand Up @@ -211,8 +207,23 @@ describe.concurrent("should change query", () => {
foo: "bar",
baz: "qux",
});

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(2);
});

result.current[2]?.setPageSize(20);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(3);
});

result.current[2]?.setSorting("id", false);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(4);
});

result.current[2]?.setPage(3);

await vi.waitFor(() => {
Expand Down Expand Up @@ -247,8 +258,23 @@ test.concurrent("navigate backward", async () => {
foo: "bar",
baz: "qux",
});

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(2);
});

result.current[2]?.setPageSize(20);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(3);
});

result.current[2]?.setSorting("id", false);

await vi.waitFor(() => {
expect(loadItems).toHaveBeenCalledTimes(4);
});

result.current[2]?.setPage(3);

await vi.waitFor(() => {
Expand Down
Loading

0 comments on commit 2068426

Please sign in to comment.