@twin.org/data-framework 0.0.1-next.31 → 0.0.1-next.32
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/dist/cjs/index.cjs +3 -0
- package/dist/esm/index.mjs +3 -0
- package/docs/changelog.md +15 -0
- package/package.json +3 -3
package/dist/cjs/index.cjs
CHANGED
|
@@ -69,18 +69,21 @@ class FrameworkDataTypes {
|
|
|
69
69
|
*/
|
|
70
70
|
static registerTypes() {
|
|
71
71
|
dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.Urn}`, () => ({
|
|
72
|
+
context: FrameworkContexts.ContextRoot,
|
|
72
73
|
type: FrameworkTypes.Urn,
|
|
73
74
|
defaultValue: "",
|
|
74
75
|
jsonSchema: async () => URNSchema,
|
|
75
76
|
validate: async (propertyName, value, failures, container) => core.Urn.validate(propertyName, value, failures)
|
|
76
77
|
}));
|
|
77
78
|
dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampMilliseconds}`, () => ({
|
|
79
|
+
context: FrameworkContexts.ContextRoot,
|
|
78
80
|
type: FrameworkTypes.TimestampMilliseconds,
|
|
79
81
|
defaultValue: Date.now(),
|
|
80
82
|
jsonSchema: async () => TimestampMillisecondsSchema,
|
|
81
83
|
validate: async (propertyName, value, failures, container) => core.Validation.timestampMilliseconds(propertyName, value, failures)
|
|
82
84
|
}));
|
|
83
85
|
dataCore.DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampSeconds}`, () => ({
|
|
86
|
+
context: FrameworkContexts.ContextRoot,
|
|
84
87
|
type: FrameworkTypes.TimestampSeconds,
|
|
85
88
|
defaultValue: Math.floor(Date.now() / 1000),
|
|
86
89
|
jsonSchema: async () => TimestampSecondsSchema,
|
package/dist/esm/index.mjs
CHANGED
|
@@ -67,18 +67,21 @@ class FrameworkDataTypes {
|
|
|
67
67
|
*/
|
|
68
68
|
static registerTypes() {
|
|
69
69
|
DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.Urn}`, () => ({
|
|
70
|
+
context: FrameworkContexts.ContextRoot,
|
|
70
71
|
type: FrameworkTypes.Urn,
|
|
71
72
|
defaultValue: "",
|
|
72
73
|
jsonSchema: async () => URNSchema,
|
|
73
74
|
validate: async (propertyName, value, failures, container) => Urn.validate(propertyName, value, failures)
|
|
74
75
|
}));
|
|
75
76
|
DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampMilliseconds}`, () => ({
|
|
77
|
+
context: FrameworkContexts.ContextRoot,
|
|
76
78
|
type: FrameworkTypes.TimestampMilliseconds,
|
|
77
79
|
defaultValue: Date.now(),
|
|
78
80
|
jsonSchema: async () => TimestampMillisecondsSchema,
|
|
79
81
|
validate: async (propertyName, value, failures, container) => Validation.timestampMilliseconds(propertyName, value, failures)
|
|
80
82
|
}));
|
|
81
83
|
DataTypeHandlerFactory.register(`${FrameworkContexts.ContextRoot}${FrameworkTypes.TimestampSeconds}`, () => ({
|
|
84
|
+
context: FrameworkContexts.ContextRoot,
|
|
82
85
|
type: FrameworkTypes.TimestampSeconds,
|
|
83
86
|
defaultValue: Math.floor(Date.now() / 1000),
|
|
84
87
|
jsonSchema: async () => TimestampSecondsSchema,
|
package/docs/changelog.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @twin.org/data-framework - Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.1-next.32](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.31...data-framework-v0.0.1-next.32) (2025-05-28)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/twinfoundation/data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/data-core bumped from 0.0.1-next.31 to 0.0.1-next.32
|
|
16
|
+
* @twin.org/data-json-ld bumped from 0.0.1-next.31 to 0.0.1-next.32
|
|
17
|
+
|
|
3
18
|
## [0.0.1-next.31](https://github.com/twinfoundation/data/compare/data-framework-v0.0.1-next.30...data-framework-v0.0.1-next.31) (2025-05-08)
|
|
4
19
|
|
|
5
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-framework",
|
|
3
|
-
"version": "0.0.1-next.
|
|
3
|
+
"version": "0.0.1-next.32",
|
|
4
4
|
"description": "Models which define the structure of framework types",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/data-core": "0.0.1-next.
|
|
19
|
-
"@twin.org/data-json-ld": "0.0.1-next.
|
|
18
|
+
"@twin.org/data-core": "0.0.1-next.32",
|
|
19
|
+
"@twin.org/data-json-ld": "0.0.1-next.32",
|
|
20
20
|
"@twin.org/entity": "next",
|
|
21
21
|
"@twin.org/nameof": "next",
|
|
22
22
|
"@types/json-schema": "7.0.15"
|