Skip to content

Commit

Permalink
Upgrade Dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Saeris committed Jan 3, 2024
1 parent 963c71c commit 1b4a3ce
Show file tree
Hide file tree
Showing 4 changed files with 514 additions and 406 deletions.
5 changes: 5 additions & 0 deletions .changeset/breezy-snails-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"valimock": patch
---

Upgrade Dependencies
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"lint": "eslint \"./src/**/*.ts\" --cache",
"format": "yarn lint --fix",
"release": "yarn build && changeset publish",
"test": "vitest --single-thread",
"test": "vitest --fileParallelism",
"typecheck": "tsc --noemit"
},
"dependencies": {
Expand All @@ -63,21 +63,21 @@
},
"devDependencies": {
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.26.2",
"@changesets/cli": "^2.27.1",
"@faker-js/faker": "^8.3.1",
"@saeris/eslint-config": "^2.5.0",
"@types/eslint": "^8.44.7",
"@types/node": "20.10.1",
"@vitest/coverage-v8": "^0.34.6",
"eslint": "^8.54.0",
"@saeris/eslint-config": "^2.6.0",
"@types/eslint": "^8.56.1",
"@types/node": "20.10.6",
"@vitest/coverage-v8": "^1.1.1",
"eslint": "^8.56.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-vitest": "^0.3.10",
"prettier": "^3.1.0",
"eslint-plugin-vitest": "^0.3.20",
"prettier": "^3.1.1",
"tsup": "^8.0.1",
"tsx": "^4.5.0",
"typescript": "5.3.2",
"valibot": "^0.21.0",
"vitest": "^0.34.6"
"tsx": "^4.7.0",
"typescript": "5.3.3",
"valibot": "^0.25.0",
"vitest": "^1.1.1"
},
"eslintConfig": {
"root": true,
Expand Down
6 changes: 3 additions & 3 deletions src/Valimock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,10 +184,10 @@ export class Valimock {
#getValidEnumValues = <T extends v.Enum>(obj: T): Array<number | string> =>

Check warning on line 184 in src/Valimock.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Typecheck (18)

Expected 'this' to be used by class private method #getValidEnumValues

Check warning on line 184 in src/Valimock.ts

View workflow job for this annotation

GitHub Actions / Lint, Test, and Typecheck (20)

Expected 'this' to be used by class private method #getValidEnumValues
Object.values(
Object.entries(obj).reduce(
(hash, [key]) =>
typeof obj[obj[key]] === `number`
(hash, [key, value]) =>
typeof obj[value] === `number`
? hash
: Object.assign(hash, { [key]: obj[key] }),
: Object.assign(hash, { [key]: value }),
{}
)
);
Expand Down
Loading

0 comments on commit 1b4a3ce

Please sign in to comment.