@travetto/model-mongo 5.0.0-rc.1 → 5.0.0-rc.3

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 CHANGED
@@ -48,7 +48,7 @@ where the [MongoModelConfig](https://github.com/travetto/travetto/tree/main/modu
48
48
  ```typescript
49
49
  import type mongo from 'mongodb';
50
50
 
51
- import { Env, TimeSpan, TimeUtil, RuntimeResources } from '@travetto/base';
51
+ import { TimeSpan, TimeUtil, RuntimeResources, Runtime } from '@travetto/runtime';
52
52
  import { Config } from '@travetto/config';
53
53
  import { Field } from '@travetto/schema';
54
54
 
@@ -151,7 +151,7 @@ export class MongoModelConfig {
151
151
  }
152
152
  }
153
153
 
154
- if (!Env.production) {
154
+ if (!Runtime.production) {
155
155
  opts.waitQueueTimeoutMS ??= TimeUtil.asMillis(1, 'd'); // Wait a day in dev mode
156
156
  }
157
157
  }
@@ -174,4 +174,4 @@ export class MongoModelConfig {
174
174
  }
175
175
  ```
176
176
 
177
- Additionally, you can see that the class is registered with the [@Config](https://github.com/travetto/travetto/tree/main/module/config/src/decorator.ts#L13) annotation, and so these values can be overridden using the standard [Configuration](https://github.com/travetto/travetto/tree/main/module/config#readme "Configuration support") resolution paths.The SSL file options in `clientOptions` will automatically be resolved to files when given a path. This path can be a resource path (will attempt to lookup using [RuntimeResources](https://github.com/travetto/travetto/tree/main/module/base/src/runtime.ts#L8)) or just a standard file path.
177
+ Additionally, you can see that the class is registered with the [@Config](https://github.com/travetto/travetto/tree/main/module/config/src/decorator.ts#L13) annotation, and so these values can be overridden using the standard [Configuration](https://github.com/travetto/travetto/tree/main/module/config#readme "Configuration support") resolution paths.The SSL file options in `clientOptions` will automatically be resolved to files when given a path. This path can be a resource path (will attempt to lookup using [RuntimeResources](https://github.com/travetto/travetto/tree/main/module/runtime/src/resources.ts#L8)) or just a standard file path.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-mongo",
3
- "version": "5.0.0-rc.1",
3
+ "version": "5.0.0-rc.3",
4
4
  "description": "Mongo backing for the travetto model module.",
5
5
  "keywords": [
6
6
  "mongo",
@@ -25,13 +25,13 @@
25
25
  "directory": "module/model-mongo"
26
26
  },
27
27
  "dependencies": {
28
- "@travetto/config": "^5.0.0-rc.1",
29
- "@travetto/model": "^5.0.0-rc.1",
30
- "@travetto/model-query": "^5.0.0-rc.0",
28
+ "@travetto/config": "^5.0.0-rc.3",
29
+ "@travetto/model": "^5.0.0-rc.3",
30
+ "@travetto/model-query": "^5.0.0-rc.3",
31
31
  "mongodb": "^6.8.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^5.0.0-rc.0"
34
+ "@travetto/command": "^5.0.0-rc.3"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
package/src/config.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type mongo from 'mongodb';
2
2
 
3
- import { Env, TimeSpan, TimeUtil, RuntimeResources } from '@travetto/base';
3
+ import { TimeSpan, TimeUtil, RuntimeResources, Runtime } from '@travetto/runtime';
4
4
  import { Config } from '@travetto/config';
5
5
  import { Field } from '@travetto/schema';
6
6
 
@@ -103,7 +103,7 @@ export class MongoModelConfig {
103
103
  }
104
104
  }
105
105
 
106
- if (!Env.production) {
106
+ if (!Runtime.production) {
107
107
  opts.waitQueueTimeoutMS ??= TimeUtil.asMillis(1, 'd'); // Wait a day in dev mode
108
108
  }
109
109
  }
@@ -1,6 +1,6 @@
1
1
  import { Binary, ObjectId } from 'mongodb';
2
2
 
3
- import { Class } from '@travetto/base';
3
+ import { Class } from '@travetto/runtime';
4
4
  import { DistanceUnit, ModelQuery, Query, WhereClause } from '@travetto/model-query';
5
5
  import type { ModelType, IndexField } from '@travetto/model';
6
6
  import { DataUtil, SchemaRegistry } from '@travetto/schema';
package/src/service.ts CHANGED
@@ -19,7 +19,7 @@ import {
19
19
  PageableModelQuery, ValidStringFields, WhereClause, ModelQuerySuggestSupport
20
20
  } from '@travetto/model-query';
21
21
 
22
- import { ShutdownManager, type Class, AppError, TypedObject } from '@travetto/base';
22
+ import { ShutdownManager, type Class, AppError, TypedObject } from '@travetto/runtime';
23
23
  import { Injectable } from '@travetto/di';
24
24
  import { DeepPartial, FieldConfig, SchemaRegistry, SchemaValidator } from '@travetto/schema';
25
25