@semics-tech/mongolite 1.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/LICENSE +21 -0
- package/README.md +179 -0
- package/dist/adapters/browser.d.ts +97 -0
- package/dist/adapters/browser.js +103 -0
- package/dist/adapters/browser.js.map +1 -0
- package/dist/adapters/cloudflare.d.ts +106 -0
- package/dist/adapters/cloudflare.js +94 -0
- package/dist/adapters/cloudflare.js.map +1 -0
- package/dist/bin/mongolite-debug.d.ts +2 -0
- package/dist/bin/mongolite-debug.js +115 -0
- package/dist/bin/mongolite-debug.js.map +1 -0
- package/dist/changeStream.d.ts +114 -0
- package/dist/changeStream.js +338 -0
- package/dist/changeStream.js.map +1 -0
- package/dist/cloudflare.d.ts +39 -0
- package/dist/cloudflare.js +39 -0
- package/dist/cloudflare.js.map +1 -0
- package/dist/collection.d.ts +274 -0
- package/dist/collection.js +1706 -0
- package/dist/collection.js.map +1 -0
- package/dist/cursors/findCursor.d.ts +101 -0
- package/dist/cursors/findCursor.js +757 -0
- package/dist/cursors/findCursor.js.map +1 -0
- package/dist/db.d.ts +116 -0
- package/dist/db.js +254 -0
- package/dist/db.js.map +1 -0
- package/dist/debugger/query-debugger.d.ts +22 -0
- package/dist/debugger/query-debugger.js +258 -0
- package/dist/debugger/query-debugger.js.map +1 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +40 -0
- package/dist/index.js.map +1 -0
- package/dist/mongo-client.d.ts +56 -0
- package/dist/mongo-client.js +55 -0
- package/dist/mongo-client.js.map +1 -0
- package/dist/types.d.ts +318 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/dist/utils/indexing.d.ts +4 -0
- package/dist/utils/indexing.js +43 -0
- package/dist/utils/indexing.js.map +1 -0
- package/dist/utils/projection.d.ts +16 -0
- package/dist/utils/projection.js +98 -0
- package/dist/utils/projection.js.map +1 -0
- package/dist/utils/queryOperators.d.ts +16 -0
- package/dist/utils/queryOperators.js +138 -0
- package/dist/utils/queryOperators.js.map +1 -0
- package/package.json +92 -0
package/package.json
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@semics-tech/mongolite",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "A MongoDB-like client using SQLite as a persistent store, written in TypeScript.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"default": "./dist/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./cloudflare": {
|
|
14
|
+
"types": "./dist/cloudflare.d.ts",
|
|
15
|
+
"default": "./dist/cloudflare.js"
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"bin": {
|
|
19
|
+
"mongolite-debug": "dist/bin/mongolite-debug.js"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc",
|
|
23
|
+
"test": "node --import tsx --test tests/*.test.ts",
|
|
24
|
+
"test:parity": "node --import tsx --test tests/parity/*.parity.test.ts",
|
|
25
|
+
"test:coverage": "c8 --reporter=lcov --reporter=text node --import tsx --test tests/*.test.ts",
|
|
26
|
+
"test:coverage:check": "c8 --reporter=lcov --reporter=text --check-coverage --lines 80 --functions 80 --statements 80 --branches 70 node --import tsx --test tests/*.test.ts",
|
|
27
|
+
"prepare": "npm run build",
|
|
28
|
+
"prepublish": "npm run build",
|
|
29
|
+
"lint": "eslint src/**/*.ts tests/**/*.ts",
|
|
30
|
+
"lint:fix": "eslint src/**/*.ts tests/**/*.ts --fix",
|
|
31
|
+
"verify-build": "node --import tsx scripts/verify-build.js",
|
|
32
|
+
"test-third-party": "node scripts/test-third-party-usage.js",
|
|
33
|
+
"test:all": "npm run lint && npm run test && npm run verify-build && npm run test-third-party",
|
|
34
|
+
"benchmark": "npx tsx scripts/benchmark.ts",
|
|
35
|
+
"debug-queries": "npx tsx scripts/query-debugger.ts"
|
|
36
|
+
},
|
|
37
|
+
"repository": {
|
|
38
|
+
"type": "git",
|
|
39
|
+
"url": "git+https://github.com/semics-tech/mongolite.git"
|
|
40
|
+
},
|
|
41
|
+
"keywords": [
|
|
42
|
+
"mongodb",
|
|
43
|
+
"sqlite",
|
|
44
|
+
"database",
|
|
45
|
+
"client",
|
|
46
|
+
"typescript",
|
|
47
|
+
"nosql",
|
|
48
|
+
"json",
|
|
49
|
+
"embedded-database",
|
|
50
|
+
"local-first",
|
|
51
|
+
"cloudflare-workers",
|
|
52
|
+
"durable-objects",
|
|
53
|
+
"sql.js"
|
|
54
|
+
],
|
|
55
|
+
"author": "Oliver Breeden <oliver@semics.co.uk>",
|
|
56
|
+
"license": "MIT",
|
|
57
|
+
"publishConfig": {
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"bugs": {
|
|
61
|
+
"url": "https://github.com/semics-tech/mongolite/issues"
|
|
62
|
+
},
|
|
63
|
+
"homepage": "https://github.com/semics-tech/mongolite#readme",
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
66
|
+
"@types/node": "^25.5.0",
|
|
67
|
+
"@typescript-eslint/eslint-plugin": "^8.58.1",
|
|
68
|
+
"@typescript-eslint/parser": "^8.58.1",
|
|
69
|
+
"c8": "^11.0.0",
|
|
70
|
+
"eslint": "^10.1.0",
|
|
71
|
+
"eslint-config-prettier": "^10.1.8",
|
|
72
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
73
|
+
"expect": "^30.0.0",
|
|
74
|
+
"mongodb-memory-server": "^10.4.3",
|
|
75
|
+
"prettier": "^3.2.5",
|
|
76
|
+
"tsx": "^4.19.4",
|
|
77
|
+
"typescript": "^6.0.2"
|
|
78
|
+
},
|
|
79
|
+
"dependencies": {
|
|
80
|
+
"@types/uuid": "^11.0.0",
|
|
81
|
+
"better-sqlite3": "^12.1.1",
|
|
82
|
+
"bson": "^7.2.0",
|
|
83
|
+
"uuid": "^14.0.0"
|
|
84
|
+
},
|
|
85
|
+
"files": [
|
|
86
|
+
"dist/**/*",
|
|
87
|
+
"README.md"
|
|
88
|
+
],
|
|
89
|
+
"engines": {
|
|
90
|
+
"node": ">=22.0.0"
|
|
91
|
+
}
|
|
92
|
+
}
|