@gravito/dark-matter 1.0.0 → 1.1.2
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 +235 -15
- package/dist/index.cjs +678 -20
- package/dist/index.d.cts +463 -2
- package/dist/index.d.ts +463 -2
- package/dist/index.js +675 -18
- package/package.json +16 -4
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gravito/dark-matter",
|
|
3
|
-
"
|
|
3
|
+
"sideEffects": false,
|
|
4
|
+
"version": "1.1.2",
|
|
4
5
|
"description": "MongoDB client for Gravito - Bun native, Laravel-style API",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"main": "./dist/index.js",
|
|
@@ -14,10 +15,21 @@
|
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|
|
16
17
|
"build": "bun run build.ts",
|
|
17
|
-
"
|
|
18
|
+
"build:dts": "bun run build.ts --dts-only",
|
|
19
|
+
"test": "bun test --timeout=10000",
|
|
18
20
|
"typecheck": "bun tsc -p tsconfig.json --noEmit --skipLibCheck",
|
|
19
|
-
"test:coverage": "bun test --coverage --coverage-
|
|
20
|
-
"test:ci": "bun test --coverage --coverage-
|
|
21
|
+
"test:coverage": "bun test --timeout=10000 --coverage --coverage-reporter=lcov --coverage-dir coverage && bun run --bun scripts/check-coverage.ts",
|
|
22
|
+
"test:ci": "bun test --timeout=10000 --coverage --coverage-reporter=lcov --coverage-dir coverage && bun run --bun scripts/check-coverage.ts",
|
|
23
|
+
"bench": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/*.bench.ts",
|
|
24
|
+
"bench:gridfs": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/gridfs.bench.ts",
|
|
25
|
+
"bench:soft-delete": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/soft-delete.bench.ts",
|
|
26
|
+
"bench:aggregation": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/aggregation.bench.ts",
|
|
27
|
+
"bench:pool": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/connection-pool.bench.ts",
|
|
28
|
+
"bench:schema": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/schema-validation.bench.ts",
|
|
29
|
+
"bench:transactions": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/transactions.bench.ts",
|
|
30
|
+
"bench:change-streams": "MONGODB_URI=mongodb://localhost:27017 bun test benchmarks/change-streams.bench.ts",
|
|
31
|
+
"test:unit": "bun test $(find tests -name '*.test.ts' ! -name '*.integration.test.ts' 2>/dev/null | tr '\\n' ' ') --timeout=10000",
|
|
32
|
+
"test:integration": "test $(find tests -name '*.integration.test.ts' 2>/dev/null | wc -l) -gt 0 && find tests -name '*.integration.test.ts' -print0 | xargs -0 bun test --timeout=10000 || echo 'No integration tests found'"
|
|
21
33
|
},
|
|
22
34
|
"files": [
|
|
23
35
|
"dist",
|