vue-computed-eager 1.0.7 → 1.0.9

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
@@ -4,12 +4,11 @@
4
4
 
5
5
  <h1 align="center">vue-computed-eager</h1>
6
6
 
7
- <p align="center">A Vue 3 composition API utility that creates computed properties which evaluate immediately when dependencies change, rather than lazily on access. Ideal for simple boolean checks with rarely-changing values. Note: Vue 3.4+ has built-in optimization making this less necessary.</p>
7
+ <p align="center"></p>
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/vue-computed-eager"><img src="https://img.shields.io/npm/v/vue-computed-eager.svg" alt="npm version" /></a>
11
11
  <a href="https://www.npmjs.com/package/vue-computed-eager"><img src="https://img.shields.io/npm/dm/vue-computed-eager.svg" alt="npm downloads" /></a>
12
- <a href="https://github.com/vuefrag/vue-computed-eager/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/vue-computed-eager.svg" alt="license" /></a>
13
12
  </p>
14
13
 
15
14
  ## Installation
@@ -20,10 +19,6 @@ npm install vue-computed-eager
20
19
 
21
20
  ## Usage
22
21
 
23
- ```ts
24
- import { computedEager } from 'vue-computed-eager';
25
- ```
26
-
27
22
  Eager computed without lazy evaluation.
28
23
 
29
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).
@@ -42,8 +37,8 @@ toTodos.value.push({ title: 'Learn Vue' })
42
37
  console.log(hasOpenTodos.value) // true
43
38
  ```
44
39
 
45
- > Extracted from [VueUse](https://vueuse.org/) for standalone use.
46
-
47
40
  ## License
48
41
 
49
42
  MIT
43
+
44
+ Extracted from [VueUse](https://vueuse.org/) for standalone use.
package/README.md CHANGED
@@ -4,12 +4,11 @@
4
4
 
5
5
  <h1 align="center">vue-computed-eager</h1>
6
6
 
7
- <p align="center">A Vue 3 composition API utility that creates computed properties which evaluate immediately when dependencies change, rather than lazily on access. Ideal for simple boolean checks with rarely-changing values. Note: Vue 3.4+ has built-in optimization making this less necessary.</p>
7
+ <p align="center"></p>
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/vue-computed-eager"><img src="https://img.shields.io/npm/v/vue-computed-eager.svg" alt="npm version" /></a>
11
11
  <a href="https://www.npmjs.com/package/vue-computed-eager"><img src="https://img.shields.io/npm/dm/vue-computed-eager.svg" alt="npm downloads" /></a>
12
- <a href="https://github.com/vuefrag/vue-computed-eager/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/vue-computed-eager.svg" alt="license" /></a>
13
12
  </p>
14
13
 
15
14
  ## Installation
@@ -20,10 +19,6 @@ npm install vue-computed-eager
20
19
 
21
20
  ## Usage
22
21
 
23
- ```ts
24
- import { computedEager } from 'vue-computed-eager';
25
- ```
26
-
27
22
  Eager computed without lazy evaluation.
28
23
 
29
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).
@@ -42,8 +37,8 @@ toTodos.value.push({ title: 'Learn Vue' })
42
37
  console.log(hasOpenTodos.value) // true
43
38
  ```
44
39
 
45
- > Extracted from [VueUse](https://vueuse.org/) for standalone use.
46
-
47
40
  ## License
48
41
 
49
42
  MIT
43
+
44
+ Extracted from [VueUse](https://vueuse.org/) for standalone use.
package/README.npm.md CHANGED
@@ -4,12 +4,11 @@
4
4
 
5
5
  <h1 align="center">vue-computed-eager</h1>
6
6
 
7
- <p align="center">A Vue 3 composition API utility that creates computed properties which evaluate immediately when dependencies change, rather than lazily on access. Ideal for simple boolean checks with rarely-changing values. Note: Vue 3.4+ has built-in optimization making this less necessary.</p>
7
+ <p align="center"></p>
8
8
 
9
9
  <p align="center">
10
10
  <a href="https://www.npmjs.com/package/vue-computed-eager"><img src="https://img.shields.io/npm/v/vue-computed-eager.svg" alt="npm version" /></a>
11
11
  <a href="https://www.npmjs.com/package/vue-computed-eager"><img src="https://img.shields.io/npm/dm/vue-computed-eager.svg" alt="npm downloads" /></a>
12
- <a href="https://github.com/vuefrag/vue-computed-eager/blob/main/LICENSE"><img src="https://img.shields.io/npm/l/vue-computed-eager.svg" alt="license" /></a>
13
12
  </p>
14
13
 
15
14
  ## Installation
@@ -20,10 +19,6 @@ npm install vue-computed-eager
20
19
 
21
20
  ## Usage
22
21
 
23
- ```ts
24
- import { computedEager } from 'vue-computed-eager';
25
- ```
26
-
27
22
  Eager computed without lazy evaluation.
28
23
 
29
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).
@@ -42,8 +37,8 @@ toTodos.value.push({ title: 'Learn Vue' })
42
37
  console.log(hasOpenTodos.value) // true
43
38
  ```
44
39
 
45
- > Extracted from [VueUse](https://vueuse.org/) for standalone use.
46
-
47
40
  ## License
48
41
 
49
42
  MIT
43
+
44
+ Extracted from [VueUse](https://vueuse.org/) for standalone use.
package/banner.svg CHANGED
@@ -26,7 +26,7 @@
26
26
  <text x="80" y="280" font-family="system-ui, -apple-system, sans-serif" font-size="72" font-weight="700" fill="white">vue-computed-eager</text>
27
27
 
28
28
  <!-- Description -->
29
- <text x="80" y="360" font-family="system-ui, -apple-system, sans-serif" font-size="32" fill="#94a3b8">Vue 3 eager computed that evaluates immediately on dependency change</text>
29
+ <text x="80" y="360" font-family="system-ui, -apple-system, sans-serif" font-size="32" fill="#94a3b8">Vue 3 composable utility</text>
30
30
 
31
31
  <!-- Install command -->
32
32
  <g transform="translate(80, 420)">
package/logo.svg CHANGED
@@ -1,29 +1,11 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 96 96" width="256" height="256">
2
- <defs>
3
- <linearGradient id="bg-grad" x1="0%" y1="0%" x2="100%" y2="100%">
4
- <stop offset="0%" style="stop-color:#35495e;stop-opacity:1" />
5
- <stop offset="100%" style="stop-color:#1a252f;stop-opacity:1" />
6
- </linearGradient>
7
- </defs>
8
-
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="96" height="96" viewBox="0 0 96 96">
9
2
  <!-- Background -->
10
- <rect width="96" height="96" rx="16" fill="url(#bg-grad)"/>
11
-
12
- <!-- Vue badge -->
13
- <g transform="translate(8, 8)">
14
- <rect width="18" height="9" rx="2" fill="#42b883"/>
15
- <text x="9" y="6.8" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif" font-size="4.5" font-weight="700" fill="white">VUE</text>
16
- </g>
17
-
18
- <!-- Category icon -->
19
- <g>
20
- <circle cx="48" cy="28" r="12" fill="none" stroke="#42b883" stroke-width="3"/><circle cx="48" cy="28" r="5" fill="#42b883"/><path d="M36 28h-4M60 28h4M48 16v-4M48 40v4" stroke="#42b883" stroke-width="2" stroke-linecap="round"/>
21
- </g>
3
+ <rect width="96" height="96" rx="16" fill="#35495e"/>
22
4
 
23
- <!-- Function name - textLength ensures it fits within bounds -->
24
- <text x="48" y="58" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif" font-size="9" font-weight="600" fill="white" textLength="75.6" lengthAdjust="spacingAndGlyphs">Computed Eager</text>
5
+ <!-- Primary shape -->
6
+ <circle cx="48" cy="42" r="20" fill="#42b883"/>
25
7
 
26
- <!-- Category label -->
8
+ <!-- Function name -->
27
9
  <text x="48" y="72" text-anchor="middle" font-family="system-ui, -apple-system, sans-serif" font-size="7" fill="#42b883" opacity="0.85">Reactivity</text>
28
10
 
29
11
  <!-- Bottom accent line -->
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vue-computed-eager",
3
- "version": "1.0.7",
4
- "description": "Vue 3 eager computed that evaluates immediately on dependency change",
3
+ "version": "1.0.9",
4
+ "description": "Vue 3 composable utility",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -15,7 +15,8 @@
15
15
  "files": [
16
16
  "dist",
17
17
  "logo.svg",
18
- "banner.svg"
18
+ "banner.svg",
19
+ "README.md"
19
20
  ],
20
21
  "scripts": {
21
22
  "build": "unbuild",
@@ -23,23 +24,12 @@
23
24
  "postpublish": "cp README.github.md README.md"
24
25
  },
25
26
  "keywords": [
26
- "vue",
27
- "vue3",
28
- "vue-3",
29
- "composable",
30
- "composition-api",
31
- "vueuse",
32
- "reactive",
33
- "reactivity",
34
- "computed",
35
- "ref",
36
- "state",
37
27
  "eager",
28
+ "computed",
38
29
  "immediate",
39
30
  "non-lazy",
40
31
  "sync",
41
- "performance",
42
- "computedEager"
32
+ "performance"
43
33
  ],
44
34
  "author": "VueFrag",
45
35
  "license": "MIT",