Skip to content

Commit f0c401a

Browse files
authored
fix: vue-query options optional reactivity (#2)
* fix: vue-query options can be plain, reactive, ref & computed object * wip: correct types * test: working first test * chore(tsconfig): add missing included files
1 parent ebb8885 commit f0c401a

File tree

13 files changed

+1122
-479
lines changed

13 files changed

+1122
-479
lines changed

.vscode/settings.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,9 @@
1919
"jsonc",
2020
"yaml"
2121
],
22-
"eslint.workingDirectories": [{ "mode": "auto" }]
22+
"eslint.workingDirectories": [
23+
{
24+
"mode": "auto"
25+
}
26+
]
2327
}

eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const ignores = {
1919
export default (async () => {
2020
const eslintConfig = await _eslintConfig({
2121
nuxt: false,
22-
tsconfigPath: ['./tsconfig.json'],
22+
tsconfigPath: ['./tsconfig.json', './test/tsconfig.json'],
2323
})
2424

2525
return [...eslintConfig, ignores]

package.json

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,44 @@
2828
"lint:ci": "eslint --cache --cache-strategy content . && prettier --check --cache --cache-strategy content .",
2929
"lint:fix": "eslint --fix --cache . && prettier --write --cache .",
3030
"type-check": "tsc -p tsconfig.json --noEmit",
31-
"prepare": "husky"
31+
"prepare": "husky",
32+
"test": "start-server-and-test test:server http-get://localhost:3000/ping vitest",
33+
"test:server": "tsx ./test/trpc/index.ts"
3234
},
3335
"peerDependencies": {
3436
"@tanstack/vue-query": "^5.22.2",
3537
"@trpc/client": "^10.45.1",
3638
"@trpc/server": "^10.45.1",
3739
"vue": "^3.4.19"
3840
},
41+
"dependencies": {
42+
"@vueuse/core": "^10.9.0"
43+
},
3944
"devDependencies": {
40-
"@commitlint/cli": "^18.6.1",
45+
"@commitlint/cli": "^19.0.3",
4146
"@eslint/eslintrc": "^3.0.2",
4247
"@louishaftmann/commitlint-config": "^3.0.1",
4348
"@louishaftmann/eslint-config": "^3.0.1",
4449
"@louishaftmann/lintstaged-config": "^3.0.1",
4550
"@louishaftmann/prettier-config": "^3.0.1",
46-
"@tanstack/vue-query": "^5.22.2",
51+
"@tanstack/vue-query": "^5.24.1",
4752
"@trpc/client": "^10.45.1",
4853
"@trpc/server": "^10.45.1",
49-
"@types/eslint": "^8.56.3",
54+
"@types/eslint": "^8.56.5",
5055
"@types/eslint__eslintrc": "^2.1.1",
56+
"@vitest/ui": "^1.3.1",
5157
"eslint": "^8.57.0",
58+
"happy-dom": "^13.6.2",
5259
"husky": "^9.0.11",
5360
"lint-staged": "^15.2.2",
5461
"prettier": "^3.2.5",
62+
"start-server-and-test": "^2.0.3",
5563
"tsup": "^8.0.2",
64+
"tsx": "^4.7.1",
5665
"typescript": "^5.3.3",
57-
"vue": "^3.4.19"
66+
"vitest": "^1.3.1",
67+
"vue": "^3.4.21",
68+
"vue-demi": "^0.14.7"
5869
},
5970
"changelogithub": {
6071
"extends": "gh:falcondev-it/configs/changelogithub"

0 commit comments

Comments
 (0)