Skip to content

Commit 20a417d

Browse files
authored
Merge branch 'main' into renovate/major-typescript-eslint-monorepo
2 parents c559205 + 8de4084 commit 20a417d

File tree

8 files changed

+429
-525
lines changed

8 files changed

+429
-525
lines changed

.changeset/renovate-a97f038.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@scaleway/use-i18n': patch
3+
'@scaleway/validate-icu-locales': patch
4+
---
5+
6+
Updated dependency `@formatjs/ecma402-abstract` to `2.2.2`.
7+
Updated dependency `@formatjs/fast-memoize` to `2.2.3`.
8+
Updated dependency `intl-messageformat` to `10.7.4`.
9+
Updated dependency `@formatjs/icu-messageformat-parser` to `2.9.2`.

.changeset/six-houses-visit.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@scaleway/use-dataloader": patch
3+
---
4+
5+
export a datalifetime object

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"pnpm": ">=9.x"
1010
},
1111
"dependencies": {
12-
"@babel/core": "7.25.9",
12+
"@babel/core": "7.26.0",
1313
"@babel/eslint-parser": "7.25.9",
1414
"@babel/plugin-transform-runtime": "7.25.9",
15-
"@babel/preset-env": "7.25.9",
15+
"@babel/preset-env": "7.26.0",
1616
"@babel/preset-react": "7.25.9",
17-
"@babel/preset-typescript": "7.25.9",
17+
"@babel/preset-typescript": "7.26.0",
1818
"@biomejs/biome": "1.9.4",
1919
"@changesets/changelog-github": "0.5.0",
2020
"@changesets/cli": "2.27.9",
@@ -26,7 +26,7 @@
2626
"@testing-library/jest-dom": "6.6.3",
2727
"@testing-library/react": "16.0.1",
2828
"@types/jest": "29.5.14",
29-
"@types/node": "22.7.7",
29+
"@types/node": "22.8.7",
3030
"@types/react": "18.3.12",
3131
"@types/react-dom": "18.3.1",
3232
"@vitejs/plugin-react": "4.3.3",
@@ -37,7 +37,7 @@
3737
"esbuild-plugin-browserslist": "0.15.0",
3838
"eslint": "9.12.0",
3939
"globals": "15.11.0",
40-
"happy-dom": "15.7.4",
40+
"happy-dom": "15.10.1",
4141
"husky": "9.1.6",
4242
"lint-staged": "15.2.10",
4343
"mockdate": "3.0.5",

packages/use-dataloader/src/constants.ts

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
const SECOND = 1000
2+
const MINUTE = 60 * SECOND
3+
const HOUR = 60 * MINUTE
4+
15
export enum StatusEnum {
26
ERROR = 'error',
37
IDLE = 'idle',
@@ -7,3 +11,21 @@ export enum StatusEnum {
711

812
export const KEY_IS_NOT_STRING_ERROR = 'Key should be a string'
913
export const DEFAULT_MAX_CONCURRENT_REQUESTS = 20
14+
15+
export const POLLING_INTERVAL = {
16+
'10S': 10 * SECOND,
17+
'5S': 5 * SECOND,
18+
'3S': 3 * SECOND,
19+
} as const
20+
21+
export const DATALIFE_TIME = {
22+
'2h': 2 * HOUR,
23+
'1h': 1 * HOUR,
24+
'5m': 5 * MINUTE,
25+
'3m': 3 * MINUTE,
26+
'1m': 1 * MINUTE,
27+
'30S': 30 * SECOND,
28+
'10S': 10 * SECOND,
29+
'5S': 5 * SECOND,
30+
NONE: 0,
31+
} as const

packages/use-dataloader/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ export {
44
} from './DataLoaderProvider'
55
export { useDataLoader } from './useDataLoader'
66
export type { UseDataLoaderConfig } from './types'
7+
export { DATALIFE_TIME, POLLING_INTERVAL } from './constants'

packages/use-i18n/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@
4747
"test:unit:coverage": "pnpm test:unit --coverage"
4848
},
4949
"dependencies": {
50-
"@formatjs/ecma402-abstract": "2.2.1",
51-
"@formatjs/fast-memoize": "2.2.2",
50+
"@formatjs/ecma402-abstract": "2.2.2",
51+
"@formatjs/fast-memoize": "2.2.3",
5252
"date-fns": "4.1.0",
5353
"filesize": "10.1.6",
5454
"international-types": "0.8.1",
55-
"intl-messageformat": "10.7.3"
55+
"intl-messageformat": "10.7.4"
5656
},
5757
"devDependencies": {
5858
"react": "18.3.1",

packages/validate-icu-locales/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"cli"
4343
],
4444
"dependencies": {
45-
"@formatjs/icu-messageformat-parser": "2.9.1",
45+
"@formatjs/icu-messageformat-parser": "2.9.2",
4646
"globby": "14.0.2",
4747
"module-from-string": "3.3.1"
4848
}

0 commit comments

Comments
 (0)