@softsky/utils 2.5.3 → 2.5.4

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.md CHANGED
@@ -10,10 +10,10 @@
10
10
 
11
11
  `npm i @softsky/utils`
12
12
 
13
+ __ZERO DEPENDENCIES__ utils library. Test coverage __100%__.
14
+
13
15
  Usual utils plus more obscure stuff that I've never seen in any library.
14
16
  Also fancy TypeScript generics and types that I often use.
15
-
16
- Test coverage __100%__.
17
17
  </div>
18
18
 
19
19
  # Contribute
@@ -363,6 +363,7 @@ const mySignal = $mySignal()
363
363
  if(last>mySignal) console.log('Increment!')
364
364
  return mySignal;
365
365
  })
366
+ ```
366
367
 
367
368
  ---
368
369
  __function__ `untrack` - __SIGNALS SYSTEM__
package/dist/signals.d.ts CHANGED
@@ -42,6 +42,7 @@ export declare function signal<T>(value: T): Signal<T>;
42
42
  * if(last>mySignal) console.log('Increment!')
43
43
  * return mySignal;
44
44
  * })
45
+ * ```
45
46
  */
46
47
  export declare function effect<T>(handler: (argument: T | undefined) => T, initialValue?: T): () => void;
47
48
  /**
package/dist/signals.js CHANGED
@@ -58,6 +58,7 @@ function clearEffect(handler) {
58
58
  * if(last>mySignal) console.log('Increment!')
59
59
  * return mySignal;
60
60
  * })
61
+ * ```
61
62
  */
62
63
  export function effect(handler, initialValue) {
63
64
  let lastValue = initialValue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softsky/utils",
3
- "version": "2.5.3",
3
+ "version": "2.5.4",
4
4
  "description": "JavaScript/TypeScript utilities",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "homepage": "https://github.com/SoundOfTheSky/utils#readme",
22
22
  "devDependencies": {
23
23
  "@softsky/configs": "^1.3.3",
24
- "@types/bun": "^1.2.11"
24
+ "@types/bun": "^1.2.16"
25
25
  },
26
26
  "files": ["dist/**/*"]
27
27
  }