Comparing version 9.2.0 to 9.2.1
@@ -43,4 +43,4 @@ import { ObjectId } from 'mongodb'; | ||
}; | ||
export declare type ProjectionType<TSchema extends BaseSchema, Projection extends Partial<Record<Join<NestedPaths<WithId<TSchema>>, '.'>, number>> | undefined> = undefined extends Projection ? WithId<TSchema> : WithId<DeepPick<TSchema, '_id' | (keyof Projection & string)>>; | ||
export declare type Projection<TSchema> = Partial<Record<Join<NestedPaths<WithId<TSchema>>, '.'>, number>>; | ||
export declare type ProjectionType<TSchema extends BaseSchema, Projection extends Partial<Record<Join<NestedPaths<WithId<TSchema>, []>, '.'>, number>> | undefined> = undefined extends Projection ? WithId<TSchema> : WithId<DeepPick<TSchema, '_id' | (keyof Projection & string)>>; | ||
export declare type Projection<TSchema> = Partial<Record<Join<NestedPaths<WithId<TSchema>, []>, '.'>, number>>; | ||
export declare type Identity<Type> = Type; | ||
@@ -47,0 +47,0 @@ export declare type Flatten<Type extends object> = Identity<{ |
@@ -94,3 +94,2 @@ "use strict"; | ||
...update.$currentDate, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[updatedAtProperty] && | ||
@@ -131,3 +130,2 @@ !update.$unset?.[updatedAtProperty] && { | ||
...update.$currentDate, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[updatedAtProperty] && | ||
@@ -140,3 +138,2 @@ !update.$unset?.[updatedAtProperty] && { | ||
...update.$setOnInsert, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[createdAtProperty] && | ||
@@ -167,3 +164,2 @@ !update.$unset?.[createdAtProperty] && { | ||
...update.$currentDate, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[updatedAtProperty] && | ||
@@ -176,3 +172,2 @@ !update.$unset?.[updatedAtProperty] && { | ||
...update.$setOnInsert, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[createdAtProperty] && | ||
@@ -179,0 +174,0 @@ !update.$unset?.[createdAtProperty] && { |
@@ -43,4 +43,4 @@ import { ObjectId } from 'mongodb'; | ||
}; | ||
export declare type ProjectionType<TSchema extends BaseSchema, Projection extends Partial<Record<Join<NestedPaths<WithId<TSchema>>, '.'>, number>> | undefined> = undefined extends Projection ? WithId<TSchema> : WithId<DeepPick<TSchema, '_id' | (keyof Projection & string)>>; | ||
export declare type Projection<TSchema> = Partial<Record<Join<NestedPaths<WithId<TSchema>>, '.'>, number>>; | ||
export declare type ProjectionType<TSchema extends BaseSchema, Projection extends Partial<Record<Join<NestedPaths<WithId<TSchema>, []>, '.'>, number>> | undefined> = undefined extends Projection ? WithId<TSchema> : WithId<DeepPick<TSchema, '_id' | (keyof Projection & string)>>; | ||
export declare type Projection<TSchema> = Partial<Record<Join<NestedPaths<WithId<TSchema>, []>, '.'>, number>>; | ||
export declare type Identity<Type> = Type; | ||
@@ -47,0 +47,0 @@ export declare type Flatten<Type extends object> = Identity<{ |
@@ -89,3 +89,2 @@ import { ObjectId } from 'mongodb'; | ||
...update.$currentDate, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[updatedAtProperty] && | ||
@@ -125,3 +124,2 @@ !update.$unset?.[updatedAtProperty] && { | ||
...update.$currentDate, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[updatedAtProperty] && | ||
@@ -134,3 +132,2 @@ !update.$unset?.[updatedAtProperty] && { | ||
...update.$setOnInsert, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[createdAtProperty] && | ||
@@ -161,3 +158,2 @@ !update.$unset?.[createdAtProperty] && { | ||
...update.$currentDate, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[updatedAtProperty] && | ||
@@ -170,3 +166,2 @@ !update.$unset?.[updatedAtProperty] && { | ||
...update.$setOnInsert, | ||
// @ts-expect-error `TSchema` is a `TimestampSchema`, but we can't extend that base type | ||
...(!update.$set?.[createdAtProperty] && | ||
@@ -173,0 +168,0 @@ !update.$unset?.[createdAtProperty] && { |
@@ -5,3 +5,3 @@ { | ||
"author": "Plex Inc.", | ||
"version": "9.2.0", | ||
"version": "9.2.1", | ||
"keywords": [ | ||
@@ -63,8 +63,8 @@ "mongodb", | ||
"@commitlint/config-conventional": "17.1.0", | ||
"@types/node": "14.18.32", | ||
"@typescript-eslint/eslint-plugin": "5.40.0", | ||
"@typescript-eslint/parser": "5.40.0", | ||
"@types/node": "14.18.33", | ||
"@typescript-eslint/eslint-plugin": "5.41.0", | ||
"@typescript-eslint/parser": "5.41.0", | ||
"arg": "5.0.2", | ||
"docsify-cli": "4.4.4", | ||
"eslint": "8.25.0", | ||
"eslint": "8.26.0", | ||
"eslint-config-prettier": "8.5.0", | ||
@@ -81,3 +81,3 @@ "eslint-config-standard": "17.0.0", | ||
"lint-staged": "13.0.3", | ||
"mongodb": "4.10.0", | ||
"mongodb": "4.11.0", | ||
"mongodb-memory-server": "8.9.3", | ||
@@ -93,3 +93,3 @@ "mongoose": "6.3.5", | ||
"peerDependencies": { | ||
"mongodb": ">=4.9.1" | ||
"mongodb": ">=4.11.0" | ||
}, | ||
@@ -96,0 +96,0 @@ "commitlint": { |
213444
5534