@furystack/utils 8.0.13 → 8.0.15

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.
Files changed (2) hide show
  1. package/README.md +7 -8
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1,16 +1,15 @@
1
1
  # @furystack/utils
2
2
 
3
- > General utilities, forked from @furystack/utils
3
+ General utilities for FuryStack.
4
4
 
5
5
  ### Disposable
6
6
 
7
- You can implement _disposable_ resources and use them with a _using()_ or _usingAsync()_ syntax.
8
- Example:
7
+ You can implement disposable resources and use them with `using()` or `usingAsync()` syntax. Example:
9
8
 
10
9
  ```ts
11
10
  class Resource implements IDisposable {
12
11
  dispose() {
13
- // cleanup logics
12
+ // cleanup logic
14
13
  }
15
14
  }
16
15
 
@@ -25,7 +24,7 @@ usingAsync(new Resource(), async (resource) => {
25
24
 
26
25
  ### ObservableValue and ValueObservers
27
26
 
28
- You can track value changes using with this simple Observable implementation.
27
+ You can track value changes using this simple Observable implementation.
29
28
 
30
29
  Example:
31
30
 
@@ -37,15 +36,15 @@ const observer = observableValue.subscribe((newValue) => {
37
36
 
38
37
  // To update the value
39
38
  observableValue.setValue(Math.random())
40
- // if you want to dispose a single observer
39
+ // To dispose a single observer
41
40
  observer[Symbol.dispose]()
42
- // if you want to dispose the whole observableValue with all of its observers:
41
+ // To dispose the whole observableValue with all of its observers:
43
42
  observableValue[Symbol.dispose]()
44
43
  ```
45
44
 
46
45
  ### PathHelper
47
46
 
48
- The class contains small helper methods for path transformation and manipulation.
47
+ This class contains helper methods for path transformation and manipulation.
49
48
 
50
49
  ### Retrier
51
50
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@furystack/utils",
3
- "version": "8.0.13",
3
+ "version": "8.0.15",
4
4
  "description": "General utilities",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -35,6 +35,6 @@
35
35
  "homepage": "https://github.com/furystack/furystack",
36
36
  "devDependencies": {
37
37
  "typescript": "^5.8.3",
38
- "vitest": "^3.1.2"
38
+ "vitest": "^3.2.2"
39
39
  }
40
40
  }