vue-computed-eager 1.0.9 → 1.0.10

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.
package/README.github.md CHANGED
@@ -19,15 +19,8 @@ npm install vue-computed-eager
19
19
 
20
20
  ## Usage
21
21
 
22
- Eager computed without lazy evaluation.
23
-
24
- Learn more at [Vue: When a computed property can be the wrong tool](https://dev.to/linusborg/vue-when-a-computed-property-can-be-the-wrong-tool-195j).
25
-
26
- - Use `computed()` when you have a complex calculation going on, which can actually profit from caching and lazy evaluation and should only be (re-)calculated if really necessary.
27
- - Use `computedEager()` when you have a simple operation, with a rarely changing return value – often a boolean.
28
-
29
22
  ```ts
30
- import { computedEager } from 'vue-computed-eager'
23
+ import { computedEager } from '@vueuse/core'
31
24
 
32
25
  const todos = ref([])
33
26
  const hasOpenTodos = computedEager(() => !!todos.length)
package/README.md CHANGED
@@ -19,15 +19,8 @@ npm install vue-computed-eager
19
19
 
20
20
  ## Usage
21
21
 
22
- Eager computed without lazy evaluation.
23
-
24
- Learn more at [Vue: When a computed property can be the wrong tool](https://dev.to/linusborg/vue-when-a-computed-property-can-be-the-wrong-tool-195j).
25
-
26
- - Use `computed()` when you have a complex calculation going on, which can actually profit from caching and lazy evaluation and should only be (re-)calculated if really necessary.
27
- - Use `computedEager()` when you have a simple operation, with a rarely changing return value – often a boolean.
28
-
29
22
  ```ts
30
- import { computedEager } from 'vue-computed-eager'
23
+ import { computedEager } from '@vueuse/core'
31
24
 
32
25
  const todos = ref([])
33
26
  const hasOpenTodos = computedEager(() => !!todos.length)
package/README.npm.md CHANGED
@@ -19,15 +19,8 @@ npm install vue-computed-eager
19
19
 
20
20
  ## Usage
21
21
 
22
- Eager computed without lazy evaluation.
23
-
24
- Learn more at [Vue: When a computed property can be the wrong tool](https://dev.to/linusborg/vue-when-a-computed-property-can-be-the-wrong-tool-195j).
25
-
26
- - Use `computed()` when you have a complex calculation going on, which can actually profit from caching and lazy evaluation and should only be (re-)calculated if really necessary.
27
- - Use `computedEager()` when you have a simple operation, with a rarely changing return value – often a boolean.
28
-
29
22
  ```ts
30
- import { computedEager } from 'vue-computed-eager'
23
+ import { computedEager } from '@vueuse/core'
31
24
 
32
25
  const todos = ref([])
33
26
  const hasOpenTodos = computedEager(() => !!todos.length)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-computed-eager",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Vue 3 composable utility",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",