Skip to content

chore(devdeps): update dependency react-router-dom to v6.30.0 #2479

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/renovate-5a4634f.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@scaleway/use-query-params': patch
---

Updated dependency `react-router-dom` to `6.30.0`.
2 changes: 1 addition & 1 deletion packages/use-query-params/package.json
Original file line number Diff line number Diff line change
@@ -59,6 +59,6 @@
"devDependencies": {
"react": "19.0.0",
"react-dom": "19.0.0",
"react-router-dom": "6.29.0"
"react-router-dom": "6.30.0"
}
}
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.


Unchanged files with check annotations Beta

export const useGrowthBook = vi.fn()
console.debug('GrowthBook Mock', GrowthBookProvider)

Check warning on line 20 in packages/use-growthbook/__mocks__/@growthbook/growthbook-react.tsx

GitHub Actions / lint

Unexpected console statement
// export { GrowthBook, GrowthBookProvider, useGrowthBook }
public static started = 0
public static cachedData: Record<string, unknown | undefined> = {}

Check warning on line 16 in packages/use-dataloader/src/dataloader.ts

GitHub Actions / lint

'unknown' overrides all other types in this union type
public static queue: Record<string, PromiseType> = {}
expect(testRequest).toBeDefined()
expect(testRequest.status).toBe(StatusEnum.IDLE)
testRequest.load().catch(undefined)

Check warning on line 58 in packages/use-dataloader/src/__tests__/DataLoaderProvider.test.tsx

GitHub Actions / lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator. A rejection handler that is not a function will be ignored
expect(testRequest.status).toBe(StatusEnum.LOADING)
expect(method).toBeCalledTimes(1)
await waitFor(() => expect(testRequest.status).toBe(StatusEnum.SUCCESS))
} catch (error) {
expect((error as Error).message).toBe(KEY_IS_NOT_STRING_ERROR)
}
result.current.reload(TEST_KEY).catch(undefined)

Check warning on line 70 in packages/use-dataloader/src/__tests__/DataLoaderProvider.test.tsx

GitHub Actions / lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator. A rejection handler that is not a function will be ignored
await waitFor(() => expect(testRequest.status).toBe(StatusEnum.LOADING))
await waitFor(() => expect(testRequest.status).toBe(StatusEnum.SUCCESS))
try {
expect(Object.values(result.current.getReloads()).length).toBe(1)
expect(testRequest).toBeDefined()
expect(testRequest.status).toBe(StatusEnum.IDLE)
testRequest.load().catch(undefined)

Check warning on line 98 in packages/use-dataloader/src/__tests__/DataLoaderProvider.test.tsx

GitHub Actions / lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator. A rejection handler that is not a function will be ignored
await waitFor(() => expect(testRequest.status).toBe(StatusEnum.SUCCESS))
expect(method).toBeCalledTimes(1)
expect(testRequest.data).toBe(true)
expect(result.current.getCachedData(TEST_KEY)).toBe(true)
result.current.reload(TEST_KEY).catch(undefined)

Check warning on line 103 in packages/use-dataloader/src/__tests__/DataLoaderProvider.test.tsx

GitHub Actions / lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator. A rejection handler that is not a function will be ignored
await waitFor(() => expect(testRequest.status).toBe(StatusEnum.LOADING))
await waitFor(() => expect(testRequest.status).toBe(StatusEnum.SUCCESS))
})
method,
}),
].forEach(request => {
request.load().catch(undefined)

Check warning on line 186 in packages/use-dataloader/src/__tests__/DataLoaderProvider.test.tsx

GitHub Actions / lint

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator. A rejection handler that is not a function will be ignored
})
expect(method).toBeCalledTimes(2)
await waitFor(() => expect(method).toBeCalledTimes(4))
import type { OnErrorFn, PromiseType } from './types'
type CachedData = Record<string, unknown>
type Reloads = Record<string, () => Promise<void | unknown>>

Check warning on line 11 in packages/use-dataloader/src/DataLoaderProvider.tsx

GitHub Actions / lint

'unknown' overrides all other types in this union type
type Requests = Record<string, DataLoader<unknown, unknown>>
type UseDataLoaderInitializerArgs<ResultType = unknown> = {
type GetCachedDataFn = {
(): CachedData
(key?: string): unknown | undefined

Check warning on line 25 in packages/use-dataloader/src/DataLoaderProvider.tsx

GitHub Actions / lint

'unknown' overrides all other types in this union type
}
type GetReloadsFn = {
(): Reloads
(key?: string): (() => Promise<void | unknown>) | undefined

Check warning on line 30 in packages/use-dataloader/src/DataLoaderProvider.tsx

GitHub Actions / lint

'unknown' overrides all other types in this union type
}
export type IDataLoaderContext = {