datanautics 2.2.4 → 2.2.5
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/CHANGELOG.md +7 -0
- package/README.md +9 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,11 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
7
7
|
|
|
8
|
+
## [2.2.5] - 2025-05-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Removed icons from README.md
|
|
13
|
+
|
|
8
14
|
## [2.2.4] - 2025-05-20
|
|
9
15
|
|
|
10
16
|
### Fixed
|
|
11
17
|
|
|
12
18
|
- Updated property-accessor version
|
|
19
|
+
|
|
13
20
|
## [2.2.3] - 2025-05-19
|
|
14
21
|
|
|
15
22
|
### Fixed
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ It uses string-based paths (like `user[0].profile.name`) to **get/set deeply nes
|
|
|
6
6
|
|
|
7
7
|
---
|
|
8
8
|
|
|
9
|
-
##
|
|
9
|
+
## Features
|
|
10
10
|
|
|
11
11
|
- Dot/bracket notation access (`a.b[0]['c']`)
|
|
12
12
|
- Persistent JSON file storage (auto-saves at configurable intervals)
|
|
@@ -16,7 +16,7 @@ It uses string-based paths (like `user[0].profile.name`) to **get/set deeply nes
|
|
|
16
16
|
|
|
17
17
|
---
|
|
18
18
|
|
|
19
|
-
##
|
|
19
|
+
## Installation
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
22
|
npm install datanautics
|
|
@@ -24,7 +24,7 @@ npm install datanautics
|
|
|
24
24
|
|
|
25
25
|
---
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## Usage
|
|
28
28
|
|
|
29
29
|
```ts
|
|
30
30
|
const { Datanautics } = require('datanautics');
|
|
@@ -42,7 +42,7 @@ console.log(store.get('users[0].name')); // Output: Alice
|
|
|
42
42
|
|
|
43
43
|
---
|
|
44
44
|
|
|
45
|
-
##
|
|
45
|
+
## Configuration Options
|
|
46
46
|
|
|
47
47
|
You can pass the following options to the constructor:
|
|
48
48
|
|
|
@@ -55,7 +55,7 @@ You can pass the following options to the constructor:
|
|
|
55
55
|
|
|
56
56
|
---
|
|
57
57
|
|
|
58
|
-
##
|
|
58
|
+
## Methods
|
|
59
59
|
|
|
60
60
|
### `set(key: string, value: any): boolean`
|
|
61
61
|
|
|
@@ -71,7 +71,7 @@ Returns `undefined` if the path does not exist or is non-evaluable.
|
|
|
71
71
|
|
|
72
72
|
---
|
|
73
73
|
|
|
74
|
-
##
|
|
74
|
+
## Auto-Save Mechanism
|
|
75
75
|
|
|
76
76
|
- A background event loop triggers a dump to `options.dumpPath` every `options.dumpInterval` ms.
|
|
77
77
|
- All data is saved as a JSON file, preserving nested structures.
|
|
@@ -79,16 +79,16 @@ Returns `undefined` if the path does not exist or is non-evaluable.
|
|
|
79
79
|
|
|
80
80
|
---
|
|
81
81
|
|
|
82
|
-
##
|
|
82
|
+
## Requirements
|
|
83
83
|
|
|
84
84
|
- Node.js 14+
|
|
85
85
|
|
|
86
86
|
---
|
|
87
87
|
|
|
88
|
-
##
|
|
88
|
+
## Dependencies
|
|
89
89
|
|
|
90
90
|
- [`property-accessor`](https://npmjs.com/package/property-accessor) – Used for safe deep get/set operations
|
|
91
91
|
|
|
92
92
|
---
|
|
93
93
|
|
|
94
|
-
##
|
|
94
|
+
## [License](./LICENSE) MIT
|