sehawq.db 2.4.2 → 4.0.0
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/.github/workflows/npm-publish.yml +1 -1
- package/index.js +2 -0
- package/package.json +28 -7
- package/readme.md +342 -235
- package/src/core/Database.js +295 -0
- package/src/core/Events.js +286 -0
- package/src/core/IndexManager.js +814 -0
- package/src/core/Persistence.js +376 -0
- package/src/core/QueryEngine.js +448 -0
- package/src/core/Storage.js +322 -0
- package/src/core/Validator.js +325 -0
- package/src/index.js +90 -469
- package/src/performance/Cache.js +339 -0
- package/src/performance/LazyLoader.js +355 -0
- package/src/performance/MemoryManager.js +496 -0
- package/src/server/api.js +688 -0
- package/src/server/websocket.js +528 -0
- package/src/utils/benchmark.js +52 -0
- package/src/utils/dot-notation.js +248 -0
- package/src/utils/helpers.js +276 -0
- package/src/utils/profiler.js +71 -0
- package/src/version.js +38 -0
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sehawq.db",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "Lightweight JSON-based
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "Lightweight JSON-based database with REST API and real-time sync",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"database",
|
|
8
8
|
"json",
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
9
|
+
"rest-api",
|
|
10
|
+
"realtime",
|
|
11
|
+
"firebase-alternative",
|
|
12
|
+
"nodejs",
|
|
13
|
+
"embedded-database"
|
|
12
14
|
],
|
|
13
|
-
"author": "
|
|
14
|
-
"license": "MIT"
|
|
15
|
+
"author": "Sehawq",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "https://github.com/sehawq/sehawq.db"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"start": "node examples/server.js",
|
|
23
|
+
"dev": "node --inspect examples/server.js",
|
|
24
|
+
"test": "node tests/run.js",
|
|
25
|
+
"benchmark": "node utils/benchmark.js",
|
|
26
|
+
"test:comprehensive": "node test-files/comprehensive-test-v2.js"
|
|
27
|
+
},
|
|
28
|
+
"dependencies": {
|
|
29
|
+
"express": "^4.18.0",
|
|
30
|
+
"socket.io": "^4.6.0",
|
|
31
|
+
"cors": "^2.8.5"
|
|
32
|
+
},
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=14.0.0"
|
|
35
|
+
}
|
|
15
36
|
}
|