fix(build): migrate smartconfig metadata and refresh build dependencies

This commit is contained in:
2026-03-26 08:02:04 +00:00
parent c65c285296
commit 97e8298dcd
10 changed files with 1669 additions and 3735 deletions

View File

@@ -3,6 +3,6 @@
*/
export const commitinfo = {
name: '@push.rocks/smartmongo',
version: '5.1.0',
description: 'A module for creating and managing a local MongoDB instance for testing purposes.'
version: '5.1.1',
description: 'A powerful MongoDB toolkit for testing and development with a real memory server, wire-protocol-compatible database server, and zero-config local database.'
}

View File

@@ -12,7 +12,7 @@ export class SmartMongo {
// INSTANCE
private _readyDeferred = plugins.smartpromise.defer();
public readyPromise = this._readyDeferred.promise;
public mongoReplicaSet: plugins.mongoPlugin.MongoMemoryReplSet;
public mongoReplicaSet!: plugins.mongoPlugin.MongoMemoryReplSet;
constructor() {}

View File

@@ -47,7 +47,7 @@ export class AggregationEngine {
const cursor = aggregator.stream(documents);
for (const doc of cursor) {
yield doc;
yield doc as Document;
}
}

View File

@@ -297,7 +297,7 @@ export class AggregateHandler implements ICommandHandler {
const existingDocs = await storage.findAll(targetDb, targetColl);
const onFields = Array.isArray(on) ? on : [on];
let matchingDoc = null;
let matchingDoc: plugins.bson.Document | null = null;
for (const existing of existingDocs) {
let matches = true;
for (const field of onFields) {