@tb-dev/vue 2.0.1 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
1
  import { ShallowRef } from 'vue';
2
2
  import { AsyncComputedOptions as Options } from '@vueuse/core';
3
- export type AsyncComputedOptions = Omit<Options, 'shallow'>;
3
+ export type AsyncComputedOptions = Omit<Options, 'shallow' | 'lazy'>;
4
4
  export declare function asyncComputed<T>(initial: T, callback: () => Promise<T> | T, options?: AsyncComputedOptions): Readonly<ShallowRef<T>>;
package/dist/index.js CHANGED
@@ -84,6 +84,7 @@ function asyncComputed(initial, callback, options) {
84
84
  const state = computedAsync(callback, initial, {
85
85
  onError: handleError,
86
86
  shallow: true,
87
+ lazy: false,
87
88
  ...options
88
89
  });
89
90
  return state;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tb-dev/vue",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Vue utilities",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -24,22 +24,21 @@
24
24
  "composables"
25
25
  ],
26
26
  "dependencies": {
27
- "@tb-dev/utils": "^6.0.5",
27
+ "@tb-dev/utils": "^7.0.0",
28
28
  "@vueuse/core": "^13.2.0",
29
29
  "vue": "^3.5.14"
30
30
  },
31
31
  "devDependencies": {
32
- "@tb-dev/eslint-config": "^7.1.3",
33
- "@types/node": "^22.15.18",
34
- "eslint": "^9.26.0",
32
+ "@tb-dev/eslint-config": "^7.1.4",
33
+ "@types/node": "^22.15.19",
34
+ "eslint": "^9.27.0",
35
35
  "prettier": "^3.5.3",
36
36
  "tslib": "^2.8.1",
37
37
  "typedoc": "^0.28.4",
38
38
  "typedoc-plugin-mdn-links": "^5.0.2",
39
39
  "typescript": "~5.8.3",
40
40
  "vite": "^6.3.5",
41
- "vite-plugin-dts": "^4.5.4",
42
- "vue-tsc": "~2.2.10"
41
+ "vite-plugin-dts": "^4.5.4"
43
42
  },
44
43
  "files": [
45
44
  "dist"
@@ -58,7 +57,7 @@
58
57
  "format": "prettier . --write",
59
58
  "lint": "eslint . --config eslint.config.js",
60
59
  "release": "pnpm run build && pnpm publish",
61
- "type-check": "vue-tsc --noEmit",
60
+ "type-check": "tsc --noEmit",
62
61
  "update": "miho update major -t"
63
62
  }
64
63
  }