Skip to content

Commit

Permalink
upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
victorgarciaesgi committed Sep 4, 2024
1 parent 26b9542 commit a8a6abd
Show file tree
Hide file tree
Showing 10 changed files with 6,645 additions and 6,626 deletions.
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,26 @@
"@regle/validators": "workspace:*",
"@regle/zod": "workspace:*",
"@types/prettier": "3.0.0",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"@vitejs/plugin-vue": "5.0.4",
"@vitest/coverage-istanbul": "1.4.0",
"@vitest/coverage-v8": "1.4.0",
"@vue/reactivity": "3.4.21",
"@vue/test-utils": "2.4.5",
"bumpp": "9.4.0",
"changelogithub": "0.13.5",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"@vitejs/plugin-vue": "5.1.3",
"@vitest/coverage-istanbul": "2.0.5",
"@vitest/coverage-v8": "2.0.5",
"@vue/reactivity": "3.5.0",
"@vue/test-utils": "2.4.6",
"bumpp": "9.5.2",
"changelogithub": "0.13.10",
"cross-env": "7.0.3",
"eslint": "9.0.0",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-vue": "9.24.1",
"happy-dom": "14.7.1",
"prettier": "3.2.5",
"typescript": "5.4.4",
"vitest": "1.4.0",
"vue": "3.4.21",
"vue-eslint-parser": "9.4.2",
"vue-tsc": "2.0.11"
"eslint-plugin-vue": "9.28.0",
"happy-dom": "15.7.3",
"prettier": "3.3.3",
"typescript": "5.5.4",
"vitest": "2.0.5",
"vue": "3.5.0",
"vue-eslint-parser": "9.4.3",
"vue-tsc": "2.1.4"
},
"type": "module",
"main": "./dist/module.cjs",
Expand All @@ -62,4 +62,4 @@
"url": "https://github.com/victorgarciaesgi"
},
"license": "MIT"
}
}
36 changes: 18 additions & 18 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@
"vue": "^3.1.0"
},
"devDependencies": {
"@microsoft/api-extractor": "7.43.0",
"@total-typescript/ts-reset": "0.5.1",
"@types/node": "20.12.6",
"@microsoft/api-extractor": "7.47.7",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.5.3",
"@types/prettier": "3.0.0",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"@vue/test-utils": "2.4.5",
"bumpp": "9.4.0",
"changelogithub": "0.13.5",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"@vue/test-utils": "2.4.6",
"bumpp": "9.5.2",
"changelogithub": "0.13.10",
"cross-env": "7.0.3",
"eslint": "9.0.0",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-vue": "9.24.1",
"prettier": "3.2.5",
"tsup": "8.0.2",
"type-fest": "4.15.0",
"typescript": "5.4.4",
"vitest": "1.4.0",
"vue": "3.4.21",
"vue-eslint-parser": "9.4.2",
"vue-tsc": "2.0.11"
"eslint-plugin-vue": "9.28.0",
"prettier": "3.3.3",
"tsup": "8.2.4",
"type-fest": "4.26.0",
"typescript": "5.5.4",
"vitest": "2.0.5",
"vue": "3.5.0",
"vue-eslint-parser": "9.4.3",
"vue-tsc": "2.1.4"
},
"type": "module",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/core/useRegle/useRegle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function createUseRegleComposable<TCustomRules extends Partial<AllRulesDe
Object.entries(state).forEach(([key, value]) => {
let originRef = isRef<Record<string, MaybeRef<any>>>(origin) ? origin.value : origin;
let originValue = isRef(originRef[key]) ? originRef[key].value : originRef[key];
const stateRef = isRef(state[key]) ? state[key]._value : state[key];
const stateRef = isRef(state[key]) ? (state[key] as any)._value : state[key];
if (Array.isArray(stateRef) && Array.isArray(originValue)) {
stateRef.forEach((val, index) => {
resetValuesRecursively(originValue[index], stateRef[index]);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { pauseScheduling, pauseTracking, resetScheduling, resetTracking } from '@vue/reactivity';
import { pauseTracking, resetTracking } from '@vue/reactivity';
import type { RequiredDeep } from 'type-fest';
import type { ComputedRef, Ref } from 'vue';
import { computed, effectScope, reactive, ref, toRaw, toRef, toRefs, watch } from 'vue';
Expand Down Expand Up @@ -207,7 +207,6 @@ export function createReactiveCollectionStatus({
(['pop', 'shift', 'unshift', 'splice'] as const).forEach((key) => {
instrumentations[key] = function (this: unknown[], ...args: [...any[]]) {
pauseTracking();
pauseScheduling();

$eachStatus.value.forEach((status) => {
status.$unwatch();
Expand Down Expand Up @@ -252,7 +251,6 @@ export function createReactiveCollectionStatus({
})
.filter((f): f is $InternalRegleStatusType => !!f);

resetScheduling();
resetTracking();

return res;
Expand Down Expand Up @@ -308,9 +306,7 @@ export function createReactiveCollectionStatus({
},
});
pauseTracking();
pauseScheduling();
state.value = watchableState;
resetScheduling();
resetTracking();
}
$fieldStatus.value = createReactiveFieldStatus({
Expand Down
30 changes: 15 additions & 15 deletions packages/validators/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,23 @@
},
"devDependencies": {
"@types/prettier": "3.0.0",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"@vue/test-utils": "2.4.5",
"bumpp": "9.4.0",
"changelogithub": "0.13.5",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"@vue/test-utils": "2.4.6",
"bumpp": "9.5.2",
"changelogithub": "0.13.10",
"cross-env": "7.0.3",
"eslint": "9.0.0",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-vue": "9.24.1",
"prettier": "3.2.5",
"tsup": "8.0.2",
"type-fest": "4.15.0",
"typescript": "5.4.4",
"vitest": "1.4.0",
"vue": "3.4.21",
"vue-eslint-parser": "9.4.2",
"vue-tsc": "2.0.11"
"eslint-plugin-vue": "9.28.0",
"prettier": "3.3.3",
"tsup": "8.2.4",
"type-fest": "4.26.0",
"typescript": "5.5.4",
"vitest": "2.0.5",
"vue": "3.5.0",
"vue-eslint-parser": "9.4.3",
"vue-tsc": "2.1.4"
},
"type": "module",
"exports": {
Expand Down
36 changes: 18 additions & 18 deletions packages/zod/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,27 @@
"@regle/validators": "workspace:*"
},
"devDependencies": {
"@total-typescript/ts-reset": "0.5.1",
"@types/node": "20.12.6",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.5.3",
"@types/prettier": "3.0.0",
"@typescript-eslint/eslint-plugin": "7.6.0",
"@typescript-eslint/parser": "7.6.0",
"@vue/test-utils": "2.4.5",
"bumpp": "9.4.0",
"changelogithub": "0.13.5",
"@typescript-eslint/eslint-plugin": "8.4.0",
"@typescript-eslint/parser": "8.4.0",
"@vue/test-utils": "2.4.6",
"bumpp": "9.5.2",
"changelogithub": "0.13.10",
"cross-env": "7.0.3",
"eslint": "9.0.0",
"eslint": "9.9.1",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-vue": "9.24.1",
"prettier": "3.2.5",
"tsup": "8.0.2",
"type-fest": "4.15.0",
"typescript": "5.4.4",
"vitest": "1.4.0",
"vue": "3.4.21",
"vue-eslint-parser": "9.4.2",
"vue-tsc": "2.0.11",
"zod": "3.22.4"
"eslint-plugin-vue": "9.28.0",
"prettier": "3.3.3",
"tsup": "8.2.4",
"type-fest": "4.26.0",
"typescript": "5.5.4",
"vitest": "2.0.5",
"vue": "3.5.0",
"vue-eslint-parser": "9.4.3",
"vue-tsc": "2.1.4",
"zod": "3.23.8"
},
"type": "module",
"exports": {
Expand Down
10 changes: 5 additions & 5 deletions playground/nuxt/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@
"@regle/core": "workspace:*",
"@regle/validators": "workspace:*",
"@regle/zod": "workspace:*",
"pinia": "^2.1.7",
"zod": "3.22.4"
"pinia": "^2.2.2",
"zod": "3.23.8"
},
"devDependencies": {
"nuxt": "^3.11.2",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
"nuxt": "^3.13.0",
"vue": "^3.5.0",
"vue-router": "^4.4.3"
},
"version": "0.0.13"
}
26 changes: 13 additions & 13 deletions playground/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,24 @@
"@regle/core": "workspace:*",
"@regle/validators": "workspace:*",
"@regle/zod": "workspace:*",
"pinia": "^2.1.7",
"vue": "^3.4.21",
"zod": "3.22.4"
"pinia": "^2.2.2",
"vue": "^3.5.0",
"zod": "3.23.8"
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.10.1",
"@rushstack/eslint-patch": "^1.10.4",
"@tsconfig/node18": "^18.2.4",
"@types/node": "^20.12.6",
"@vitejs/plugin-vue": "^5.0.4",
"@types/node": "^22.5.3",
"@vitejs/plugin-vue": "^5.1.3",
"@vue/eslint-config-prettier": "^9.0.0",
"@vue/eslint-config-typescript": "^13.0.0",
"@vue/tsconfig": "^0.5.1",
"eslint": "^9.0.0",
"eslint-plugin-vue": "^9.24.1",
"npm-run-all2": "^6.1.2",
"prettier": "^3.2.5",
"typescript": "~5.4.4",
"vite": "^5.2.8",
"vue-tsc": "2.0.11"
"eslint": "^9.9.1",
"eslint-plugin-vue": "^9.28.0",
"npm-run-all2": "^6.2.2",
"prettier": "^3.3.3",
"typescript": "~5.5.4",
"vite": "^5.4.3",
"vue-tsc": "2.1.4"
}
}
Loading

0 comments on commit a8a6abd

Please sign in to comment.