@trust0/ridb-mongodb 0.0.1 → 0.0.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/CHANGELOG.md +14 -0
- package/build/index.d.ts +2 -2
- package/build/index.js +4 -3
- package/build/index.mjs +2 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## 0.0.2 (2025-07-22)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- change exports ([70cabaa](https://github.com/trust0-project/RIDB/commit/70cabaa))
|
|
6
|
+
|
|
7
|
+
### 🧱 Updated Dependencies
|
|
8
|
+
|
|
9
|
+
- Updated @trust0/ridb to 1.5.35
|
|
10
|
+
|
|
11
|
+
### ❤️ Thank You
|
|
12
|
+
|
|
13
|
+
- Javier Ribó
|
|
14
|
+
|
|
1
15
|
## 0.0.1 (2025-07-21)
|
|
2
16
|
|
|
3
17
|
### 🩹 Fixes
|
package/build/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SchemaTypeRecord, BaseStorage,
|
|
1
|
+
import { BaseStorageOptions, SchemaTypeRecord, BaseStorage, Doc, Operation, QueryType, QueryOptions } from '@trust0/ridb-core';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* @packageDocumentation
|
|
@@ -82,4 +82,4 @@ declare class MongoDBStorage<T extends SchemaTypeRecord> extends BaseStorage<T>
|
|
|
82
82
|
*/
|
|
83
83
|
declare function createMongoDB<T extends SchemaTypeRecord>(): Promise<typeof BaseStorage<T>>;
|
|
84
84
|
|
|
85
|
-
export { type MongoDBConfig, MongoDBStorage, type MongoDBStorageOptions, createMongoDB
|
|
85
|
+
export { type MongoDBConfig, MongoDBStorage, type MongoDBStorageOptions, createMongoDB };
|
package/build/index.js
CHANGED
|
@@ -431,7 +431,6 @@ ${val.stack}`;
|
|
|
431
431
|
function __wbg_adapter_392(arg0, arg1, arg2, arg3) {
|
|
432
432
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__hdfe55fa2a247d1ac(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
433
433
|
}
|
|
434
|
-
var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
|
|
435
434
|
var OpType2 = Object.freeze({
|
|
436
435
|
/**
|
|
437
436
|
* Create operation.
|
|
@@ -459,6 +458,7 @@ ${val.stack}`;
|
|
|
459
458
|
COUNT: 4,
|
|
460
459
|
"4": "COUNT"
|
|
461
460
|
});
|
|
461
|
+
var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
|
|
462
462
|
var BasePluginFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
463
463
|
}, unregister: () => {
|
|
464
464
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_baseplugin_free(ptr >>> 0));
|
|
@@ -3151,7 +3151,7 @@ ${val.stack}`;
|
|
|
3151
3151
|
var index_exports = {};
|
|
3152
3152
|
__export(index_exports, {
|
|
3153
3153
|
MongoDBStorage: () => MongoDBStorage,
|
|
3154
|
-
|
|
3154
|
+
createMongoDB: () => createMongoDB
|
|
3155
3155
|
});
|
|
3156
3156
|
module.exports = __toCommonJS(index_exports);
|
|
3157
3157
|
var import_ridb_core = __toESM(require_ridb_core());
|
|
@@ -3364,5 +3364,6 @@ async function createMongoDB() {
|
|
|
3364
3364
|
}
|
|
3365
3365
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3366
3366
|
0 && (module.exports = {
|
|
3367
|
-
MongoDBStorage
|
|
3367
|
+
MongoDBStorage,
|
|
3368
|
+
createMongoDB
|
|
3368
3369
|
});
|
package/build/index.mjs
CHANGED
|
@@ -425,7 +425,6 @@ ${val.stack}`;
|
|
|
425
425
|
function __wbg_adapter_392(arg0, arg1, arg2, arg3) {
|
|
426
426
|
wasm.wasm_bindgen__convert__closures__invoke2_mut__hdfe55fa2a247d1ac(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
427
427
|
}
|
|
428
|
-
var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
|
|
429
428
|
var OpType2 = Object.freeze({
|
|
430
429
|
/**
|
|
431
430
|
* Create operation.
|
|
@@ -453,6 +452,7 @@ ${val.stack}`;
|
|
|
453
452
|
COUNT: 4,
|
|
454
453
|
"4": "COUNT"
|
|
455
454
|
});
|
|
455
|
+
var Errors = Object.freeze({ Error: 0, "0": "Error", HookError: 1, "1": "HookError", QueryError: 2, "2": "QueryError", SerializationError: 3, "3": "SerializationError", ValidationError: 4, "4": "ValidationError", AuthenticationError: 5, "5": "AuthenticationError" });
|
|
456
456
|
var BasePluginFinalization = typeof FinalizationRegistry === "undefined" ? { register: () => {
|
|
457
457
|
}, unregister: () => {
|
|
458
458
|
} } : new FinalizationRegistry((ptr) => wasm.__wbg_baseplugin_free(ptr >>> 0));
|
|
@@ -3354,5 +3354,5 @@ async function createMongoDB() {
|
|
|
3354
3354
|
}
|
|
3355
3355
|
export {
|
|
3356
3356
|
MongoDBStorage,
|
|
3357
|
-
createMongoDB
|
|
3357
|
+
createMongoDB
|
|
3358
3358
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trust0/ridb-mongodb",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"description": "MongoDB storage for @trust0/ridb.",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"module": "./build/index.mjs",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"types:default": "npx tsc"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@trust0/ridb": "^1.5.
|
|
34
|
+
"@trust0/ridb": "^1.5.35",
|
|
35
35
|
"@trust0/ridb-build": "^0.0.16",
|
|
36
36
|
"jsdom": "^24.1.3",
|
|
37
37
|
"mongodb": "^6.0.0",
|