fix: update dependencies to latest

This commit is contained in:
Divlo 2023-01-10 21:23:32 +01:00
parent 54ef5ceea1
commit cdff824ca5
No known key found for this signature in database
GPG Key ID: 8F9478F220CE65E9
15 changed files with 3370 additions and 18187 deletions

View File

@ -10,10 +10,10 @@ jobs:
build: build:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v3.0.0' - uses: 'actions/checkout@v3.3.0'
- name: 'Use Node.js' - name: 'Use Node.js'
uses: 'actions/setup-node@v3.1.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'

View File

@ -10,10 +10,10 @@ jobs:
lint: lint:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v3.0.0' - uses: 'actions/checkout@v3.3.0'
- name: 'Use Node.js' - name: 'Use Node.js'
uses: 'actions/setup-node@v3.1.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'
@ -24,5 +24,5 @@ jobs:
- run: 'npm run lint:commit -- --to "${{ github.sha }}"' - run: 'npm run lint:commit -- --to "${{ github.sha }}"'
- run: 'npm run lint:editorconfig' - run: 'npm run lint:editorconfig'
- run: 'npm run lint:markdown' - run: 'npm run lint:markdown'
- run: 'npm run lint:typescript' - run: 'npm run lint:eslint'
- run: 'npm run lint:prettier' - run: 'npm run lint:prettier'

View File

@ -8,10 +8,10 @@ jobs:
build: build:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v3.0.0' - uses: 'actions/checkout@v3.3.0'
- name: 'Use Node.js' - name: 'Use Node.js'
uses: 'actions/setup-node@v3.1.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'

View File

@ -10,10 +10,10 @@ jobs:
test: test:
runs-on: 'ubuntu-latest' runs-on: 'ubuntu-latest'
steps: steps:
- uses: 'actions/checkout@v3.0.0' - uses: 'actions/checkout@v3.3.0'
- name: 'Use Node.js' - name: 'Use Node.js'
uses: 'actions/setup-node@v3.1.0' uses: 'actions/setup-node@v3.6.0'
with: with:
node-version: 'lts/*' node-version: 'lts/*'
cache: 'npm' cache: 'npm'

View File

@ -1,11 +1,5 @@
{ {
"config": {
"default": true,
"MD013": false,
"MD024": false,
"MD033": false,
"MD041": false
},
"globs": ["**/*.{md,mdx}"], "globs": ["**/*.{md,mdx}"],
"ignores": ["**/node_modules"] "ignores": ["**/node_modules"],
"customRules": ["markdownlint-rule-relative-links"]
} }

7
.markdownlint.json Normal file
View File

@ -0,0 +1,7 @@
{
"default": true,
"relative-links": true,
"extends": "markdownlint/style/prettier",
"MD033": false,
"MD041": false
}

View File

@ -16,9 +16,9 @@ export const Loader: React.FC<LoaderProps> = (props) => {
className='relative my-0 mx-auto before:content-none before:block before:pt-[100%]' className='relative my-0 mx-auto before:content-none before:block before:pt-[100%]'
style={{ width: `${width}px`, height: `${height}px` }} style={{ width: `${width}px`, height: `${height}px` }}
> >
<svg className={styles.progressSpinnerSvg} viewBox='25 25 50 50'> <svg className={styles['progressSpinnerSvg']} viewBox='25 25 50 50'>
<circle <circle
className={styles.progressSpinnerCircle} className={styles['progressSpinnerCircle']}
cx='50' cx='50'
cy='50' cy='50'
r='20' r='20'

View File

@ -13,7 +13,7 @@ const getErrorTranslationKey = (error: Error): string => {
return 'common:required' return 'common:required'
} }
if (error.keyword === 'format') { if (error.keyword === 'format') {
if (error.params.format === 'email') { if (error.params['format'] === 'email') {
return 'common:invalid-email' return 'common:invalid-email'
} }
return 'common:invalid' return 'common:invalid'
@ -32,7 +32,7 @@ export const useFormTranslation = () => {
if (error != null) { if (error != null) {
return t(getErrorTranslationKey(error)).replace( return t(getErrorTranslationKey(error)).replace(
'{expected}', '{expected}',
error?.params?.limit error?.params?.['limit']
) )
} }
return undefined return undefined

5159
example/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -11,9 +11,9 @@
"test:dev": "start-server-and-test \"dev\" \"http://127.0.0.1:3000\" \"cypress open\"" "test:dev": "start-server-and-test \"dev\" \"http://127.0.0.1:3000\" \"cypress open\""
}, },
"dependencies": { "dependencies": {
"@sinclair/typebox": "0.25.3", "@sinclair/typebox": "0.25.20",
"clsx": "1.2.1", "clsx": "1.2.1",
"next": "13.0.2", "next": "13.1.1",
"next-themes": "0.2.1", "next-themes": "0.2.1",
"next-translate": "1.6.0", "next-translate": "1.6.0",
"react": "file:../node_modules/react", "react": "file:../node_modules/react",
@ -21,16 +21,17 @@
"react-dom": "file:../node_modules/react-dom" "react-dom": "file:../node_modules/react-dom"
}, },
"devDependencies": { "devDependencies": {
"@types/node": "18.11.9", "@tsconfig/strictest": "1.0.2",
"@types/react": "18.0.25", "@types/node": "18.11.18",
"@types/react-dom": "18.0.8", "@types/react": "18.0.26",
"@types/react-dom": "18.0.10",
"autoprefixer": "10.4.13", "autoprefixer": "10.4.13",
"cypress": "10.11.0", "cypress": "12.3.0",
"eslint": "8.27.0", "eslint": "8.31.0",
"eslint-config-next": "13.0.2", "eslint-config-next": "13.1.1",
"postcss": "8.4.18", "postcss": "8.4.21",
"start-server-and-test": "1.14.0", "start-server-and-test": "1.15.2",
"tailwindcss": "3.2.2", "tailwindcss": "3.2.4",
"typescript": "4.8.4" "typescript": "4.9.4"
} }
} }

View File

@ -1,20 +1,18 @@
{ {
"extends": "@tsconfig/strictest/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"target": "ESNext", "target": "ESNext",
"module": "ESNext", "module": "ESNext",
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["dom", "dom.iterable", "ESNext"],
"allowJs": true, "allowJs": true,
"skipLibCheck": true,
"strict": true,
"types": ["cypress"], "types": ["cypress"],
"forceConsistentCasingInFileNames": true,
"noEmit": true, "noEmit": true,
"esModuleInterop": true,
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "preserve",
"incremental": true "incremental": true,
"exactOptionalPropertyTypes": false,
}, },
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"] "exclude": ["node_modules"]

16263
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -29,7 +29,7 @@
"lint:commit": "commitlint", "lint:commit": "commitlint",
"lint:editorconfig": "editorconfig-checker", "lint:editorconfig": "editorconfig-checker",
"lint:markdown": "markdownlint-cli2", "lint:markdown": "markdownlint-cli2",
"lint:typescript": "eslint \"**/*.{js,jsx,ts,tsx}\"", "lint:eslint": "eslint \"**/*.{js,jsx,ts,tsx}\"",
"lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"", "lint:prettier": "prettier \".\" --check --ignore-path \".gitignore\"",
"release": "semantic-release" "release": "semantic-release"
}, },
@ -37,37 +37,39 @@
"react": ">=16" "react": ">=16"
}, },
"dependencies": { "dependencies": {
"@sinclair/typebox": "0.25.3", "@sinclair/typebox": "0.25.20",
"ajv": "8.11.0", "ajv": "8.12.0",
"ajv-formats": "2.1.1" "ajv-formats": "2.1.1"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "17.2.0", "@commitlint/cli": "17.4.1",
"@commitlint/config-conventional": "17.2.0", "@commitlint/config-conventional": "17.4.0",
"@testing-library/react": "13.4.0", "@testing-library/react": "13.4.0",
"@types/jest": "29.2.2", "@tsconfig/strictest": "1.0.2",
"@types/react": "18.0.25", "@types/jest": "29.2.5",
"@types/react-dom": "18.0.8", "@types/react": "18.0.26",
"@typescript-eslint/eslint-plugin": "5.42.1", "@types/react-dom": "18.0.10",
"@typescript-eslint/parser": "5.42.1", "@typescript-eslint/eslint-plugin": "5.48.1",
"@typescript-eslint/parser": "5.48.1",
"editorconfig-checker": "4.0.2", "editorconfig-checker": "4.0.2",
"esbuild": "0.15.13", "esbuild": "0.16.16",
"esbuild-jest": "0.5.0", "esbuild-jest": "0.5.0",
"eslint": "8.27.0", "eslint": "8.31.0",
"eslint-config-conventions": "5.0.0", "eslint-config-conventions": "6.0.0",
"eslint-config-prettier": "8.5.0", "eslint-config-prettier": "8.6.0",
"eslint-plugin-import": "2.26.0", "eslint-plugin-import": "2.26.0",
"eslint-plugin-prettier": "4.2.1", "eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1", "eslint-plugin-promise": "6.1.1",
"eslint-plugin-unicorn": "44.0.2", "eslint-plugin-unicorn": "45.0.2",
"jest": "29.3.0", "jest": "29.3.1",
"jest-environment-jsdom": "29.3.0", "jest-environment-jsdom": "29.3.1",
"markdownlint-cli2": "0.5.1", "markdownlint-cli2": "0.6.0",
"prettier": "2.7.1", "markdownlint-rule-relative-links": "1.1.1",
"prettier": "2.8.2",
"react": "18.2.0", "react": "18.2.0",
"react-dom": "18.2.0", "react-dom": "18.2.0",
"semantic-release": "19.0.5", "semantic-release": "20.0.2",
"tsup": "6.4.0", "tsup": "6.5.0",
"typescript": "4.8.4" "typescript": "4.9.4"
} }
} }

View File

@ -65,7 +65,7 @@ export interface UseFormResult<K extends Schema> {
/** /**
* Global message of the form (not specific to a property). * Global message of the form (not specific to a property).
*/ */
readonly message?: string readonly message: string | undefined
setMessage: React.Dispatch<React.SetStateAction<string | undefined>> setMessage: React.Dispatch<React.SetStateAction<string | undefined>>
/** /**

View File

@ -1,4 +1,5 @@
{ {
"extends": "@tsconfig/strictest/tsconfig.json",
"include": ["src", "types"], "include": ["src", "types"],
"compilerOptions": { "compilerOptions": {
"module": "ESNext", "module": "ESNext",
@ -7,16 +8,8 @@
"declaration": true, "declaration": true,
"sourceMap": true, "sourceMap": true,
"rootDir": "./src", "rootDir": "./src",
"strict": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"moduleResolution": "node", "moduleResolution": "node",
"jsx": "react", "jsx": "react",
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noEmit": true "noEmit": true
} }
} }