@mashroom/mashroom-storage
Advanced tools
Comparing version 2.0.0-alpha.4 to 2.0.0
@@ -7,3 +7,3 @@ { | ||
"license": "MIT", | ||
"version": "2.0.0-alpha.4", | ||
"version": "2.0.0", | ||
"files": [ | ||
@@ -14,7 +14,7 @@ "dist/**", | ||
"dependencies": { | ||
"@mashroom/mashroom-utils": "2.0.0-alpha.4" | ||
"@mashroom/mashroom-utils": "2.0.0" | ||
}, | ||
"devDependencies": { | ||
"@mashroom/mashroom": "2.0.0-alpha.4", | ||
"@mashroom/mashroom-memory-cache": "2.0.0-alpha.4" | ||
"@mashroom/mashroom": "2.0.0", | ||
"@mashroom/mashroom-memory-cache": "2.0.0" | ||
}, | ||
@@ -21,0 +21,0 @@ "jest": { |
@@ -16,24 +16,26 @@ | ||
type MongoLikeFilterOperators<T> = { | ||
$eq?: T; | ||
$ne?: T; | ||
$gt?: T; | ||
$gte?: T; | ||
$lt?: T; | ||
$lte?: T; | ||
$in?: ReadonlyArray<T>; | ||
$nin?: ReadonlyArray<T>; | ||
$exists?: boolean; | ||
$regex?: T extends string ? RegExp | string : never; | ||
readonly $eq?: T; | ||
readonly $ne?: T; | ||
readonly $gt?: T; | ||
readonly $gte?: T; | ||
readonly $lt?: T; | ||
readonly $lte?: T; | ||
readonly $in?: ReadonlyArray<T>; | ||
readonly $nin?: ReadonlyArray<T>; | ||
readonly $exists?: boolean; | ||
readonly $not?: T extends string ? MongoLikeFilterOperators<T> | RegExp : MongoLikeFilterOperators<T>; | ||
readonly $regex?: T extends string ? RegExp | string : never; | ||
readonly $options?: string; | ||
} | ||
type MongoLikeRootFilterOperators<T> = { | ||
$and?: Array<MongoLikeFilter<T>>; | ||
$or?: Array<MongoLikeFilter<T>>; | ||
readonly $and?: Array<MongoLikeFilter<T>>; | ||
readonly $or?: Array<MongoLikeFilter<T>>; | ||
} | ||
type MongoLikeFilter<T> = { | ||
[P in keyof T]?: Condition<T[P]>; | ||
readonly [P in keyof T]?: Condition<T[P]>; | ||
} & MongoLikeRootFilterOperators<T> & { | ||
// Nested properties | ||
[key: string]: any | ||
readonly [key: string]: any | ||
} | ||
@@ -48,12 +50,12 @@ | ||
export type MashroomStorageSearchResult<T> = { | ||
result: Array<MashroomStorageObject<T>>; | ||
totalCount: number; | ||
readonly result: Array<MashroomStorageObject<T>>; | ||
readonly totalCount: number; | ||
} | ||
export type MashroomStorageUpdateResult = { | ||
modifiedCount: number; | ||
readonly modifiedCount: number; | ||
}; | ||
export type MashroomStorageDeleteResult = { | ||
deletedCount: number; | ||
readonly deletedCount: number; | ||
}; | ||
@@ -60,0 +62,0 @@ |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
27446
484
0
+ Added@mashroom/mashroom-utils@2.0.0(transitive)
- Removed@mashroom/mashroom-utils@2.0.0-alpha.4(transitive)