@travetto/model-mongo 7.0.4 → 7.0.6
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 +1 -1
- package/package.json +5 -5
- package/src/config.ts +1 -1
- package/src/internal/util.ts +1 -1
- package/src/service.ts +10 -10
package/README.md
CHANGED
|
@@ -31,7 +31,7 @@ Out of the box, by installing the module, everything should be wired up by defau
|
|
|
31
31
|
**Code: Wiring up a custom Model Source**
|
|
32
32
|
```typescript
|
|
33
33
|
import { InjectableFactory } from '@travetto/di';
|
|
34
|
-
import { MongoModelService, MongoModelConfig } from '@travetto/model-mongo';
|
|
34
|
+
import { MongoModelService, type MongoModelConfig } from '@travetto/model-mongo';
|
|
35
35
|
|
|
36
36
|
export class Init {
|
|
37
37
|
@InjectableFactory({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-mongo",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Mongo backing for the travetto model module.",
|
|
6
6
|
"keywords": [
|
|
@@ -26,13 +26,13 @@
|
|
|
26
26
|
"directory": "module/model-mongo"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/config": "^7.0.
|
|
30
|
-
"@travetto/model": "^7.0.
|
|
31
|
-
"@travetto/model-query": "^7.0.
|
|
29
|
+
"@travetto/config": "^7.0.6",
|
|
30
|
+
"@travetto/model": "^7.0.6",
|
|
31
|
+
"@travetto/model-query": "^7.0.6",
|
|
32
32
|
"mongodb": "^7.0.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@travetto/cli": "^7.0.
|
|
35
|
+
"@travetto/cli": "^7.0.7"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"@travetto/cli": {
|
package/src/config.ts
CHANGED
package/src/internal/util.ts
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
type IndexDescriptionInfo
|
|
4
4
|
} from 'mongodb';
|
|
5
5
|
|
|
6
|
-
import { AppError, castTo, Class, toConcrete, TypedObject } from '@travetto/runtime';
|
|
6
|
+
import { AppError, castTo, type Class, toConcrete, TypedObject } from '@travetto/runtime';
|
|
7
7
|
import { type DistanceUnit, type PageableModelQuery, type WhereClause, ModelQueryUtil } from '@travetto/model-query';
|
|
8
8
|
import type { ModelType, IndexField, IndexConfig } from '@travetto/model';
|
|
9
9
|
import { DataUtil, SchemaRegistryIndex, type Point } from '@travetto/schema';
|
package/src/service.ts
CHANGED
|
@@ -7,26 +7,26 @@ import {
|
|
|
7
7
|
} from 'mongodb';
|
|
8
8
|
|
|
9
9
|
import {
|
|
10
|
-
ModelRegistryIndex, ModelType, OptionalId, ModelCrudSupport, ModelStorageSupport,
|
|
11
|
-
ModelExpirySupport, ModelBulkSupport, ModelIndexedSupport, BulkOperation, BulkResponse,
|
|
12
|
-
NotFoundError, ExistsError, ModelBlobSupport,
|
|
13
|
-
ModelCrudUtil, ModelIndexedUtil, ModelStorageUtil, ModelExpiryUtil, ModelBulkUtil, ModelBlobUtil
|
|
10
|
+
ModelRegistryIndex, type ModelType, type OptionalId, type ModelCrudSupport, type ModelStorageSupport,
|
|
11
|
+
type ModelExpirySupport, type ModelBulkSupport, type ModelIndexedSupport, type BulkOperation, type BulkResponse,
|
|
12
|
+
NotFoundError, ExistsError, type ModelBlobSupport,
|
|
13
|
+
ModelCrudUtil, ModelIndexedUtil, ModelStorageUtil, ModelExpiryUtil, ModelBulkUtil, ModelBlobUtil
|
|
14
14
|
} from '@travetto/model';
|
|
15
15
|
import {
|
|
16
|
-
ModelQuery, ModelQueryCrudSupport, ModelQueryFacetSupport, ModelQuerySupport,
|
|
17
|
-
PageableModelQuery, ValidStringFields, WhereClause, ModelQuerySuggestSupport,
|
|
16
|
+
type ModelQuery, type ModelQueryCrudSupport, type ModelQueryFacetSupport, type ModelQuerySupport,
|
|
17
|
+
type PageableModelQuery, type ValidStringFields, type WhereClause, type ModelQuerySuggestSupport,
|
|
18
18
|
QueryVerifier, ModelQueryUtil, ModelQuerySuggestUtil, ModelQueryCrudUtil,
|
|
19
|
-
ModelQueryFacet,
|
|
19
|
+
type ModelQueryFacet,
|
|
20
20
|
} from '@travetto/model-query';
|
|
21
21
|
|
|
22
22
|
import {
|
|
23
23
|
ShutdownManager, type Class, type DeepPartial, TypedObject,
|
|
24
|
-
castTo, asFull, BlobMeta, ByteRange, BinaryInput, BinaryUtil
|
|
24
|
+
castTo, asFull, type BlobMeta, type ByteRange, type BinaryInput, BinaryUtil
|
|
25
25
|
} from '@travetto/runtime';
|
|
26
26
|
import { Injectable } from '@travetto/di';
|
|
27
27
|
|
|
28
|
-
import { MongoUtil, PlainIdx, WithId } from './internal/util.ts';
|
|
29
|
-
import { MongoModelConfig } from './config.ts';
|
|
28
|
+
import { MongoUtil, type PlainIdx, type WithId } from './internal/util.ts';
|
|
29
|
+
import type { MongoModelConfig } from './config.ts';
|
|
30
30
|
|
|
31
31
|
const ListIndexSymbol = Symbol();
|
|
32
32
|
|