dphelper 3.5.1 → 3.7.1
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 +9 -30
- package/index.cjs +1 -1
- package/index.js +1 -1
- package/package.json +4 -6
- package/types/dphelper.d.ts +0 -15
package/README.md
CHANGED
|
@@ -8,10 +8,6 @@
|
|
|
8
8
|
[](https://packagephobia.now.sh/result?p=dphelper)
|
|
9
9
|
[](https://npmjs.org/package/dphelper)
|
|
10
10
|
|
|
11
|
-

|
|
12
|
-
[](https://snyk.io/test/npm/dphelper)
|
|
13
|
-
[](https://socket.dev/npm/package/dphelper)
|
|
14
|
-
|
|
15
11
|

|
|
16
12
|

|
|
17
13
|

|
|
@@ -31,7 +27,7 @@
|
|
|
31
27
|
|
|
32
28
|
## About
|
|
33
29
|
|
|
34
|
-
**dphelper** is a powerful, zero-dependency utility library that brings together **
|
|
30
|
+
**dphelper** is a powerful, zero-dependency utility library that brings together **303 production-ready tools** for web developers, AI engineers, and DevTools creators.
|
|
35
31
|
|
|
36
32
|
Think of it as your **universal toolbox** - from DOM manipulation to cryptographic operations, from real-time WebSocket handling to AI-powered token optimization. No more juggling multiple packages. One import, infinite possibilities.
|
|
37
33
|
|
|
@@ -51,17 +47,21 @@ Think of it as your **universal toolbox** - from DOM manipulation to cryptograph
|
|
|
51
47
|
|
|
52
48
|
---
|
|
53
49
|
|
|
50
|
+
## State and Store removed from dpHelper
|
|
51
|
+
|
|
54
52
|
> [!IMPORTANT]
|
|
55
|
-
>
|
|
53
|
+
> dpHelper do not integrate state management directly anymore
|
|
54
|
+
>
|
|
55
|
+
> Application state is currently handled through **Memorio** or **RGS**.
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
If you need to use state management please consider:
|
|
58
58
|
|
|
59
59
|
- Simple State and Store Manager [Memorio](http://www.npmjs.com/package/memorio)
|
|
60
60
|
- Enterprise Lever State Manager [Argis RGS](https://www.npmjs.com/package/@biglogic/rgs)
|
|
61
61
|
|
|
62
62
|
---
|
|
63
63
|
|
|
64
|
-
## 🚀
|
|
64
|
+
## 🚀 New Powerful Modules
|
|
65
65
|
|
|
66
66
|
`dphelper` has expanded with powerful new modules for modern web development:
|
|
67
67
|
|
|
@@ -76,27 +76,6 @@ Think of it as your **universal toolbox** - from DOM manipulation to cryptograph
|
|
|
76
76
|
|
|
77
77
|
---
|
|
78
78
|
|
|
79
|
-
## 💾 IndexedDB Module
|
|
80
|
-
|
|
81
|
-
```javascript
|
|
82
|
-
// Open/create database
|
|
83
|
-
const db = await dphelper.idb.open('mydb', 1, { users: 'id++,name,email' });
|
|
84
|
-
|
|
85
|
-
// Add record
|
|
86
|
-
await dphelper.idb.put('mydb', 'users', { name: 'John', email: 'john@example.com' });
|
|
87
|
-
|
|
88
|
-
// Query records
|
|
89
|
-
const users = await dphelper.idb.getAll('mydb', 'users');
|
|
90
|
-
|
|
91
|
-
// Query by index
|
|
92
|
-
const johns = await dphelper.idb.query('mydb', 'users', 'name', 'John');
|
|
93
|
-
|
|
94
|
-
// Bulk operations
|
|
95
|
-
await dphelper.idb.bulkPut('mydb', 'users', [{name: 'A'}, {name: 'B'}]);
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
79
|
## ⚙️ Web Worker Module
|
|
101
80
|
|
|
102
81
|
```javascript
|
|
@@ -391,7 +370,7 @@ await dphelper.fetch.get(userInput); // ❌ Unvalidated
|
|
|
391
370
|
```
|
|
392
371
|
|
|
393
372
|
### Compliance
|
|
394
|
-
- 100% NIST/NSA compliant
|
|
373
|
+
- 100% NIST/NSA compliant
|
|
395
374
|
- No known vulnerabilities
|
|
396
375
|
- Automated security scanning in CI
|
|
397
376
|
|