@travetto/model 5.0.0-rc.0 → 5.0.0-rc.1
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/provider/file.ts +1 -2
- package/support/doc.support.tsx +1 -1
package/README.md
CHANGED
|
@@ -226,7 +226,7 @@ The `id` is the only required field for a model, as this is a hard requirement o
|
|
|
226
226
|
|[S3 Model Support](https://github.com/travetto/travetto/tree/main/module/model-s3#readme "S3 backing for the travetto model module.")|X|X| |X|X| |
|
|
227
227
|
|[SQL Model Service](https://github.com/travetto/travetto/tree/main/module/model-sql#readme "SQL backing for the travetto model module, with real-time modeling support for SQL schemas.")|X|X|X|X| |X|
|
|
228
228
|
|[MemoryModelService](https://github.com/travetto/travetto/tree/main/module/model/src/provider/memory.ts#L54)|X|X|X|X|X|X|
|
|
229
|
-
|[FileModelService](https://github.com/travetto/travetto/tree/main/module/model/src/provider/file.ts#
|
|
229
|
+
|[FileModelService](https://github.com/travetto/travetto/tree/main/module/model/src/provider/file.ts#L49)|X|X| |X|X|X|
|
|
230
230
|
|
|
231
231
|
## Custom Model Service
|
|
232
232
|
In addition to the provided contracts, the module also provides common utilities and shared test suites. The common utilities are useful for repetitive functionality, that is unable to be shared due to not relying upon inheritance (this was an intentional design decision). This allows for all the [Data Modeling Support](https://github.com/travetto/travetto/tree/main/module/model#readme "Datastore abstraction for core operations.") implementations to completely own the functionality and also to be able to provide additional/unique functionality that goes beyond the interface.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model",
|
|
3
|
-
"version": "5.0.0-rc.
|
|
3
|
+
"version": "5.0.0-rc.1",
|
|
4
4
|
"description": "Datastore abstraction for core operations.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"datastore",
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"directory": "module/model"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@travetto/config": "^5.0.0-rc.
|
|
29
|
+
"@travetto/config": "^5.0.0-rc.1",
|
|
30
30
|
"@travetto/di": "^5.0.0-rc.0",
|
|
31
|
-
"@travetto/registry": "^5.0.0-rc.
|
|
31
|
+
"@travetto/registry": "^5.0.0-rc.1",
|
|
32
32
|
"@travetto/schema": "^5.0.0-rc.0"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
|
-
"@travetto/cli": "^5.0.0-rc.
|
|
36
|
-
"@travetto/test": "^5.0.0-rc.
|
|
35
|
+
"@travetto/cli": "^5.0.0-rc.1",
|
|
36
|
+
"@travetto/test": "^5.0.0-rc.1"
|
|
37
37
|
},
|
|
38
38
|
"peerDependenciesMeta": {
|
|
39
39
|
"@travetto/cli": {
|
package/src/provider/file.ts
CHANGED
|
@@ -5,8 +5,7 @@ import { Readable } from 'node:stream';
|
|
|
5
5
|
import { pipeline } from 'node:stream/promises';
|
|
6
6
|
import path from 'node:path';
|
|
7
7
|
|
|
8
|
-
import { RuntimeContext } from '@travetto/
|
|
9
|
-
import { Class, TimeSpan } from '@travetto/base';
|
|
8
|
+
import { Class, TimeSpan, RuntimeContext } from '@travetto/base';
|
|
10
9
|
import { Injectable } from '@travetto/di';
|
|
11
10
|
import { Config } from '@travetto/config';
|
|
12
11
|
import { Required } from '@travetto/schema';
|
package/support/doc.support.tsx
CHANGED
|
@@ -31,7 +31,7 @@ export const ModelTypes = (file: string | Function): DocJSXElement[] => {
|
|
|
31
31
|
return found.map(v => <li>{v}</li>);
|
|
32
32
|
};
|
|
33
33
|
|
|
34
|
-
export const ModelCustomConfig = ({ cfg }: { cfg: Function }):
|
|
34
|
+
export const ModelCustomConfig = ({ cfg }: { cfg: Function }): DocJSXElement => <>
|
|
35
35
|
Out of the box, by installing the module, everything should be wired up by default.If you need to customize any aspect of the source
|
|
36
36
|
or config, you can override and register it with the {d.mod('Di')} module.
|
|
37
37
|
|