@twin.org/data-framework 0.0.3-next.2 → 0.0.3-next.21
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/dist/es/dataTypes/frameworkDataTypes.js +9 -6
- package/dist/es/dataTypes/frameworkDataTypes.js.map +1 -1
- package/dist/es/models/frameworkContexts.js +10 -2
- package/dist/es/models/frameworkContexts.js.map +1 -1
- package/dist/types/models/frameworkContexts.d.ts +10 -2
- package/docs/changelog.md +326 -41
- package/docs/examples.md +30 -1
- package/docs/reference/classes/FrameworkDataTypes.md +1 -1
- package/docs/reference/variables/FrameworkContexts.md +15 -3
- package/docs/reference/variables/FrameworkTypes.md +3 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# TWIN Framework Data
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package provides framework data models that define common structures consumed by other packages in the repository. It centralises shared domain shapes so integrations can rely on clearer contracts and maintain semantic consistency as the ecosystem evolves.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -15,22 +15,25 @@ export class FrameworkDataTypes {
|
|
|
15
15
|
* Register all the data types.
|
|
16
16
|
*/
|
|
17
17
|
static registerTypes() {
|
|
18
|
-
DataTypeHandlerFactory.register(`${FrameworkContexts.
|
|
19
|
-
|
|
18
|
+
DataTypeHandlerFactory.register(`${FrameworkContexts.Namespace}${FrameworkTypes.Urn}`, () => ({
|
|
19
|
+
namespace: FrameworkContexts.Namespace,
|
|
20
|
+
jsonLdContext: FrameworkContexts.JsonLdContext,
|
|
20
21
|
type: FrameworkTypes.Urn,
|
|
21
22
|
defaultValue: "",
|
|
22
23
|
jsonSchema: async () => URNSchema,
|
|
23
24
|
validate: async (propertyName, value, failures, container) => Urn.validate(propertyName, value, failures)
|
|
24
25
|
}));
|
|
25
|
-
DataTypeHandlerFactory.register(`${FrameworkContexts.
|
|
26
|
-
|
|
26
|
+
DataTypeHandlerFactory.register(`${FrameworkContexts.Namespace}${FrameworkTypes.TimestampMilliseconds}`, () => ({
|
|
27
|
+
namespace: FrameworkContexts.Namespace,
|
|
28
|
+
jsonLdContext: FrameworkContexts.JsonLdContext,
|
|
27
29
|
type: FrameworkTypes.TimestampMilliseconds,
|
|
28
30
|
defaultValue: Date.now(),
|
|
29
31
|
jsonSchema: async () => TimestampMillisecondsSchema,
|
|
30
32
|
validate: async (propertyName, value, failures, container) => Validation.timestampMilliseconds(propertyName, value, failures)
|
|
31
33
|
}));
|
|
32
|
-
DataTypeHandlerFactory.register(`${FrameworkContexts.
|
|
33
|
-
|
|
34
|
+
DataTypeHandlerFactory.register(`${FrameworkContexts.Namespace}${FrameworkTypes.TimestampSeconds}`, () => ({
|
|
35
|
+
namespace: FrameworkContexts.Namespace,
|
|
36
|
+
jsonLdContext: FrameworkContexts.JsonLdContext,
|
|
34
37
|
type: FrameworkTypes.TimestampSeconds,
|
|
35
38
|
defaultValue: Math.floor(Date.now() / 1000),
|
|
36
39
|
jsonSchema: async () => TimestampSecondsSchema,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworkDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/frameworkDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,sBAAsB,
|
|
1
|
+
{"version":3,"file":"frameworkDataTypes.js","sourceRoot":"","sources":["../../../src/dataTypes/frameworkDataTypes.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,2BAA2B,MAAM,uCAAuC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AACtG,OAAO,sBAAsB,MAAM,kCAAkC,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAC5F,OAAO,SAAS,MAAM,qBAAqB,CAAC,OAAO,IAAI,EAAE,MAAM,EAAE,CAAC;AAElE;;GAEG;AACH,MAAM,OAAO,kBAAkB;IAC9B;;OAEG;IACI,MAAM,CAAC,aAAa;QAC1B,sBAAsB,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,SAAS,GAAG,cAAc,CAAC,GAAG,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC;YAC7F,SAAS,EAAE,iBAAiB,CAAC,SAAS;YACtC,aAAa,EAAE,iBAAiB,CAAC,aAAa;YAC9C,IAAI,EAAE,cAAc,CAAC,GAAG;YACxB,YAAY,EAAE,EAAE;YAChB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,SAAS;YACjC,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,GAAG,CAAC,QAAQ,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC;SAC5C,CAAC,CAAC,CAAC;QAEJ,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,iBAAiB,CAAC,SAAS,GAAG,cAAc,CAAC,qBAAqB,EAAE,EACvE,GAAG,EAAE,CAAC,CAAC;YACN,SAAS,EAAE,iBAAiB,CAAC,SAAS;YACtC,aAAa,EAAE,iBAAiB,CAAC,aAAa;YAC9C,IAAI,EAAE,cAAc,CAAC,qBAAqB;YAC1C,YAAY,EAAE,IAAI,CAAC,GAAG,EAAE;YACxB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,2BAA2B;YACnD,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,UAAU,CAAC,qBAAqB,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC;SAChE,CAAC,CACF,CAAC;QAEF,sBAAsB,CAAC,QAAQ,CAC9B,GAAG,iBAAiB,CAAC,SAAS,GAAG,cAAc,CAAC,gBAAgB,EAAE,EAClE,GAAG,EAAE,CAAC,CAAC;YACN,SAAS,EAAE,iBAAiB,CAAC,SAAS;YACtC,aAAa,EAAE,iBAAiB,CAAC,aAAa;YAC9C,IAAI,EAAE,cAAc,CAAC,gBAAgB;YACrC,YAAY,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC;YAC3C,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,sBAAsB;YAC9C,QAAQ,EAAE,KAAK,EAAE,YAAY,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,CAC5D,UAAU,CAAC,gBAAgB,CAAC,YAAY,EAAE,KAAK,EAAE,QAAQ,CAAC;SAC3D,CAAC,CACF,CAAC;IACH,CAAC;CACD","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { Urn, Validation } from \"@twin.org/core\";\nimport { DataTypeHandlerFactory } from \"@twin.org/data-core\";\nimport { FrameworkContexts } from \"../models/frameworkContexts.js\";\nimport { FrameworkTypes } from \"../models/frameworkTypes.js\";\nimport TimestampMillisecondsSchema from \"../schemas/TimestampMilliseconds.json\" with { type: \"json\" };\nimport TimestampSecondsSchema from \"../schemas/TimestampSeconds.json\" with { type: \"json\" };\nimport URNSchema from \"../schemas/URN.json\" with { type: \"json\" };\n\n/**\n * Handle all the framework data types.\n */\nexport class FrameworkDataTypes {\n\t/**\n\t * Register all the data types.\n\t */\n\tpublic static registerTypes(): void {\n\t\tDataTypeHandlerFactory.register(`${FrameworkContexts.Namespace}${FrameworkTypes.Urn}`, () => ({\n\t\t\tnamespace: FrameworkContexts.Namespace,\n\t\t\tjsonLdContext: FrameworkContexts.JsonLdContext,\n\t\t\ttype: FrameworkTypes.Urn,\n\t\t\tdefaultValue: \"\",\n\t\t\tjsonSchema: async () => URNSchema,\n\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\tUrn.validate(propertyName, value, failures)\n\t\t}));\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FrameworkContexts.Namespace}${FrameworkTypes.TimestampMilliseconds}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: FrameworkContexts.Namespace,\n\t\t\t\tjsonLdContext: FrameworkContexts.JsonLdContext,\n\t\t\t\ttype: FrameworkTypes.TimestampMilliseconds,\n\t\t\t\tdefaultValue: Date.now(),\n\t\t\t\tjsonSchema: async () => TimestampMillisecondsSchema,\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.timestampMilliseconds(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\n\t\tDataTypeHandlerFactory.register(\n\t\t\t`${FrameworkContexts.Namespace}${FrameworkTypes.TimestampSeconds}`,\n\t\t\t() => ({\n\t\t\t\tnamespace: FrameworkContexts.Namespace,\n\t\t\t\tjsonLdContext: FrameworkContexts.JsonLdContext,\n\t\t\t\ttype: FrameworkTypes.TimestampSeconds,\n\t\t\t\tdefaultValue: Math.floor(Date.now() / 1000),\n\t\t\t\tjsonSchema: async () => TimestampSecondsSchema,\n\t\t\t\tvalidate: async (propertyName, value, failures, container) =>\n\t\t\t\t\tValidation.timestampSeconds(propertyName, value, failures)\n\t\t\t})\n\t\t);\n\t}\n}\n"]}
|
|
@@ -6,8 +6,16 @@
|
|
|
6
6
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
7
7
|
export const FrameworkContexts = {
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* The canonical RDF namespace URI for Framework.
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
Namespace: "https://schema.twindev.org/framework/",
|
|
12
|
+
/**
|
|
13
|
+
* The value to use in JSON-LD context for Framework.
|
|
14
|
+
*/
|
|
15
|
+
Context: "https://schema.twindev.org/framework/",
|
|
16
|
+
/**
|
|
17
|
+
* The JSON-LD Context URL for Framework.
|
|
18
|
+
*/
|
|
19
|
+
JsonLdContext: "https://schema.twindev.org/framework/types.jsonld"
|
|
12
20
|
};
|
|
13
21
|
//# sourceMappingURL=frameworkContexts.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"frameworkContexts.js","sourceRoot":"","sources":["../../../src/models/frameworkContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"frameworkContexts.js","sourceRoot":"","sources":["../../../src/models/frameworkContexts.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC;;GAEG;AACH,gEAAgE;AAChE,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;;OAEG;IACH,SAAS,EAAE,uCAAuC;IAElD;;OAEG;IACH,OAAO,EAAE,uCAAuC;IAEhD;;OAEG;IACH,aAAa,EAAE,mDAAmD;CACzD,CAAC","sourcesContent":["// Copyright 2024 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\n/**\n * The contexts of framework data.\n */\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport const FrameworkContexts = {\n\t/**\n\t * The canonical RDF namespace URI for Framework.\n\t */\n\tNamespace: \"https://schema.twindev.org/framework/\",\n\n\t/**\n\t * The value to use in JSON-LD context for Framework.\n\t */\n\tContext: \"https://schema.twindev.org/framework/\",\n\n\t/**\n\t * The JSON-LD Context URL for Framework.\n\t */\n\tJsonLdContext: \"https://schema.twindev.org/framework/types.jsonld\"\n} as const;\n\n/**\n * The contexts of framework data.\n */\nexport type FrameworkContexts = (typeof FrameworkContexts)[keyof typeof FrameworkContexts];\n"]}
|
|
@@ -3,9 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export declare const FrameworkContexts: {
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* The canonical RDF namespace URI for Framework.
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly Namespace: "https://schema.twindev.org/framework/";
|
|
9
|
+
/**
|
|
10
|
+
* The value to use in JSON-LD context for Framework.
|
|
11
|
+
*/
|
|
12
|
+
readonly Context: "https://schema.twindev.org/framework/";
|
|
13
|
+
/**
|
|
14
|
+
* The JSON-LD Context URL for Framework.
|
|
15
|
+
*/
|
|
16
|
+
readonly JsonLdContext: "https://schema.twindev.org/framework/types.jsonld";
|
|
9
17
|
};
|
|
10
18
|
/**
|
|
11
19
|
* The contexts of framework data.
|
package/docs/changelog.md
CHANGED
|
@@ -1,6 +1,291 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
2
|
|
|
3
|
-
## [0.0.3-next.
|
|
3
|
+
## [0.0.3-next.21](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.20...data-framework-v0.0.3-next.21) (2026-05-11)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* typescript 6 update ([44cbfe8](https://github.com/iotaledger/twin-data/commit/44cbfe87256282b9928134b2bbed1d3c6ee15acb))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* The following workspace dependencies were updated
|
|
14
|
+
* dependencies
|
|
15
|
+
* @twin.org/data-core bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
16
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.20 to 0.0.3-next.21
|
|
17
|
+
|
|
18
|
+
## [0.0.3-next.20](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.19...data-framework-v0.0.3-next.20) (2026-03-24)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Miscellaneous Chores
|
|
22
|
+
|
|
23
|
+
* **data-framework:** Synchronize repo versions
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* The following workspace dependencies were updated
|
|
29
|
+
* dependencies
|
|
30
|
+
* @twin.org/data-core bumped from 0.0.3-next.19 to 0.0.3-next.20
|
|
31
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.19 to 0.0.3-next.20
|
|
32
|
+
|
|
33
|
+
## [0.0.3-next.19](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.18...data-framework-v0.0.3-next.19) (2026-03-20)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Miscellaneous Chores
|
|
37
|
+
|
|
38
|
+
* **data-framework:** Synchronize repo versions
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### Dependencies
|
|
42
|
+
|
|
43
|
+
* The following workspace dependencies were updated
|
|
44
|
+
* dependencies
|
|
45
|
+
* @twin.org/data-core bumped from 0.0.3-next.18 to 0.0.3-next.19
|
|
46
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.18 to 0.0.3-next.19
|
|
47
|
+
|
|
48
|
+
## [0.0.3-next.18](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.17...data-framework-v0.0.3-next.18) (2026-03-16)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
### Miscellaneous Chores
|
|
52
|
+
|
|
53
|
+
* **data-framework:** Synchronize repo versions
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
### Dependencies
|
|
57
|
+
|
|
58
|
+
* The following workspace dependencies were updated
|
|
59
|
+
* dependencies
|
|
60
|
+
* @twin.org/data-core bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
61
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.17 to 0.0.3-next.18
|
|
62
|
+
|
|
63
|
+
## [0.0.3-next.17](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.16...data-framework-v0.0.3-next.17) (2026-03-12)
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### Miscellaneous Chores
|
|
67
|
+
|
|
68
|
+
* **data-framework:** Synchronize repo versions
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
### Dependencies
|
|
72
|
+
|
|
73
|
+
* The following workspace dependencies were updated
|
|
74
|
+
* dependencies
|
|
75
|
+
* @twin.org/data-core bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
76
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.16 to 0.0.3-next.17
|
|
77
|
+
|
|
78
|
+
## [0.0.3-next.16](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.15...data-framework-v0.0.3-next.16) (2026-03-06)
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
### Miscellaneous Chores
|
|
82
|
+
|
|
83
|
+
* **data-framework:** Synchronize repo versions
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
### Dependencies
|
|
87
|
+
|
|
88
|
+
* The following workspace dependencies were updated
|
|
89
|
+
* dependencies
|
|
90
|
+
* @twin.org/data-core bumped from 0.0.3-next.15 to 0.0.3-next.16
|
|
91
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.15 to 0.0.3-next.16
|
|
92
|
+
|
|
93
|
+
## [0.0.3-next.15](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.14...data-framework-v0.0.3-next.15) (2026-02-27)
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
### Miscellaneous Chores
|
|
97
|
+
|
|
98
|
+
* **data-framework:** Synchronize repo versions
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
### Dependencies
|
|
102
|
+
|
|
103
|
+
* The following workspace dependencies were updated
|
|
104
|
+
* dependencies
|
|
105
|
+
* @twin.org/data-core bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
106
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.14 to 0.0.3-next.15
|
|
107
|
+
|
|
108
|
+
## [0.0.3-next.14](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.13...data-framework-v0.0.3-next.14) (2026-02-25)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
### Miscellaneous Chores
|
|
112
|
+
|
|
113
|
+
* **data-framework:** Synchronize repo versions
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
### Dependencies
|
|
117
|
+
|
|
118
|
+
* The following workspace dependencies were updated
|
|
119
|
+
* dependencies
|
|
120
|
+
* @twin.org/data-core bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
121
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.13 to 0.0.3-next.14
|
|
122
|
+
|
|
123
|
+
## [0.0.3-next.13](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.12...data-framework-v0.0.3-next.13) (2026-02-25)
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
### Miscellaneous Chores
|
|
127
|
+
|
|
128
|
+
* **data-framework:** Synchronize repo versions
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### Dependencies
|
|
132
|
+
|
|
133
|
+
* The following workspace dependencies were updated
|
|
134
|
+
* dependencies
|
|
135
|
+
* @twin.org/data-core bumped from 0.0.3-next.12 to 0.0.3-next.13
|
|
136
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.12 to 0.0.3-next.13
|
|
137
|
+
|
|
138
|
+
## [0.0.3-next.12](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.11...data-framework-v0.0.3-next.12) (2026-02-25)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
### Miscellaneous Chores
|
|
142
|
+
|
|
143
|
+
* **data-framework:** Synchronize repo versions
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
### Dependencies
|
|
147
|
+
|
|
148
|
+
* The following workspace dependencies were updated
|
|
149
|
+
* dependencies
|
|
150
|
+
* @twin.org/data-core bumped from 0.0.3-next.11 to 0.0.3-next.12
|
|
151
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.11 to 0.0.3-next.12
|
|
152
|
+
|
|
153
|
+
## [0.0.3-next.11](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.10...data-framework-v0.0.3-next.11) (2026-02-25)
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
### Miscellaneous Chores
|
|
157
|
+
|
|
158
|
+
* **data-framework:** Synchronize repo versions
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
### Dependencies
|
|
162
|
+
|
|
163
|
+
* The following workspace dependencies were updated
|
|
164
|
+
* dependencies
|
|
165
|
+
* @twin.org/data-core bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
166
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.10 to 0.0.3-next.11
|
|
167
|
+
|
|
168
|
+
## [0.0.3-next.10](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.9...data-framework-v0.0.3-next.10) (2026-02-24)
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
### Miscellaneous Chores
|
|
172
|
+
|
|
173
|
+
* **data-framework:** Synchronize repo versions
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### Dependencies
|
|
177
|
+
|
|
178
|
+
* The following workspace dependencies were updated
|
|
179
|
+
* dependencies
|
|
180
|
+
* @twin.org/data-core bumped from 0.0.3-next.9 to 0.0.3-next.10
|
|
181
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.9 to 0.0.3-next.10
|
|
182
|
+
|
|
183
|
+
## [0.0.3-next.9](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.8...data-framework-v0.0.3-next.9) (2026-02-23)
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### Miscellaneous Chores
|
|
187
|
+
|
|
188
|
+
* **data-framework:** Synchronize repo versions
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
### Dependencies
|
|
192
|
+
|
|
193
|
+
* The following workspace dependencies were updated
|
|
194
|
+
* dependencies
|
|
195
|
+
* @twin.org/data-core bumped from 0.0.3-next.8 to 0.0.3-next.9
|
|
196
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.8 to 0.0.3-next.9
|
|
197
|
+
|
|
198
|
+
## [0.0.3-next.8](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.7...data-framework-v0.0.3-next.8) (2026-02-02)
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
### Miscellaneous Chores
|
|
202
|
+
|
|
203
|
+
* **data-framework:** Synchronize repo versions
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
### Dependencies
|
|
207
|
+
|
|
208
|
+
* The following workspace dependencies were updated
|
|
209
|
+
* dependencies
|
|
210
|
+
* @twin.org/data-core bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
211
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.7 to 0.0.3-next.8
|
|
212
|
+
|
|
213
|
+
## [0.0.3-next.7](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.6...data-framework-v0.0.3-next.7) (2026-01-21)
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### Features
|
|
217
|
+
|
|
218
|
+
* update context naming ([#37](https://github.com/iotaledger/twin-data/issues/37)) ([9d99360](https://github.com/iotaledger/twin-data/commit/9d993605aa51f27a09722729057c6ee921617c2d))
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
### Dependencies
|
|
222
|
+
|
|
223
|
+
* The following workspace dependencies were updated
|
|
224
|
+
* dependencies
|
|
225
|
+
* @twin.org/data-core bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
226
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.6 to 0.0.3-next.7
|
|
227
|
+
|
|
228
|
+
## [0.0.3-next.6](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.5...data-framework-v0.0.3-next.6) (2026-01-14)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
### Miscellaneous Chores
|
|
232
|
+
|
|
233
|
+
* **data-framework:** Synchronize repo versions
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
### Dependencies
|
|
237
|
+
|
|
238
|
+
* The following workspace dependencies were updated
|
|
239
|
+
* dependencies
|
|
240
|
+
* @twin.org/data-core bumped from 0.0.3-next.5 to 0.0.3-next.6
|
|
241
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.5 to 0.0.3-next.6
|
|
242
|
+
|
|
243
|
+
## [0.0.3-next.5](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.4...data-framework-v0.0.3-next.5) (2026-01-14)
|
|
244
|
+
|
|
245
|
+
|
|
246
|
+
### Features
|
|
247
|
+
|
|
248
|
+
* improve data type registration ([#34](https://github.com/iotaledger/twin-data/issues/34)) ([855d110](https://github.com/iotaledger/twin-data/commit/855d11046a4d85317b77a5c4e0f4a7b1b6d1a767))
|
|
249
|
+
|
|
250
|
+
|
|
251
|
+
### Dependencies
|
|
252
|
+
|
|
253
|
+
* The following workspace dependencies were updated
|
|
254
|
+
* dependencies
|
|
255
|
+
* @twin.org/data-core bumped from 0.0.3-next.4 to 0.0.3-next.5
|
|
256
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.4 to 0.0.3-next.5
|
|
257
|
+
|
|
258
|
+
## [0.0.3-next.4](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.3...data-framework-v0.0.3-next.4) (2026-01-06)
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
### Miscellaneous Chores
|
|
262
|
+
|
|
263
|
+
* **data-framework:** Synchronize repo versions
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
### Dependencies
|
|
267
|
+
|
|
268
|
+
* The following workspace dependencies were updated
|
|
269
|
+
* dependencies
|
|
270
|
+
* @twin.org/data-core bumped from 0.0.3-next.3 to 0.0.3-next.4
|
|
271
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.3 to 0.0.3-next.4
|
|
272
|
+
|
|
273
|
+
## [0.0.3-next.3](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.2...data-framework-v0.0.3-next.3) (2026-01-05)
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
### Miscellaneous Chores
|
|
277
|
+
|
|
278
|
+
* **data-framework:** Synchronize repo versions
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
### Dependencies
|
|
282
|
+
|
|
283
|
+
* The following workspace dependencies were updated
|
|
284
|
+
* dependencies
|
|
285
|
+
* @twin.org/data-core bumped from 0.0.3-next.2 to 0.0.3-next.3
|
|
286
|
+
* @twin.org/data-json-ld bumped from 0.0.3-next.2 to 0.0.3-next.3
|
|
287
|
+
|
|
288
|
+
## [0.0.3-next.2](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.1...data-framework-v0.0.3-next.2) (2025-11-24)
|
|
4
289
|
|
|
5
290
|
|
|
6
291
|
### Miscellaneous Chores
|
|
@@ -15,20 +300,20 @@
|
|
|
15
300
|
* @twin.org/data-core bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
16
301
|
* @twin.org/data-json-ld bumped from 0.0.3-next.1 to 0.0.3-next.2
|
|
17
302
|
|
|
18
|
-
## [0.0.3-next.1](https://github.com/
|
|
303
|
+
## [0.0.3-next.1](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.3-next.0...data-framework-v0.0.3-next.1) (2025-11-10)
|
|
19
304
|
|
|
20
305
|
|
|
21
306
|
### Features
|
|
22
307
|
|
|
23
|
-
* add context id features ([#25](https://github.com/
|
|
24
|
-
* add document cache access methods ([dbf1e36](https://github.com/
|
|
25
|
-
* add validate-locales ([cf9b761](https://github.com/
|
|
26
|
-
* eslint migration to flat config ([b0db6e6](https://github.com/
|
|
27
|
-
* expand Json LD Keyword ([70632d1](https://github.com/
|
|
28
|
-
* update framework core ([c077b8c](https://github.com/
|
|
29
|
-
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/
|
|
30
|
-
* use shared store mechanism ([#3](https://github.com/
|
|
31
|
-
* use updated Is.function ([46a4715](https://github.com/
|
|
308
|
+
* add context id features ([#25](https://github.com/iotaledger/twin-data/issues/25)) ([6592f2e](https://github.com/iotaledger/twin-data/commit/6592f2e4e59021cc42a079a4f46242758a54313d))
|
|
309
|
+
* add document cache access methods ([dbf1e36](https://github.com/iotaledger/twin-data/commit/dbf1e36d176c5f428f8c52628fb5a1ff7a6a174a))
|
|
310
|
+
* add validate-locales ([cf9b761](https://github.com/iotaledger/twin-data/commit/cf9b76160820fe0b13b4fe56ed241c1d5511b7c1))
|
|
311
|
+
* eslint migration to flat config ([b0db6e6](https://github.com/iotaledger/twin-data/commit/b0db6e69a90046fc60d29e4273fcdfee13c16088))
|
|
312
|
+
* expand Json LD Keyword ([70632d1](https://github.com/iotaledger/twin-data/commit/70632d1e11ad85cf3c57e118476b125a673f1681))
|
|
313
|
+
* update framework core ([c077b8c](https://github.com/iotaledger/twin-data/commit/c077b8c07e7ee66b5482254eab6f2a52cd911270))
|
|
314
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/iotaledger/twin-data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
315
|
+
* use shared store mechanism ([#3](https://github.com/iotaledger/twin-data/issues/3)) ([33eb221](https://github.com/iotaledger/twin-data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
|
|
316
|
+
* use updated Is.function ([46a4715](https://github.com/iotaledger/twin-data/commit/46a4715f995aea34f2011138662fe003c9727d07))
|
|
32
317
|
|
|
33
318
|
|
|
34
319
|
### Dependencies
|
|
@@ -38,12 +323,12 @@
|
|
|
38
323
|
* @twin.org/data-core bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
39
324
|
* @twin.org/data-json-ld bumped from 0.0.3-next.0 to 0.0.3-next.1
|
|
40
325
|
|
|
41
|
-
## [0.0.2-next.4](https://github.com/
|
|
326
|
+
## [0.0.2-next.4](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.2-next.3...data-framework-v0.0.2-next.4) (2025-10-09)
|
|
42
327
|
|
|
43
328
|
|
|
44
329
|
### Features
|
|
45
330
|
|
|
46
|
-
* add validate-locales ([cf9b761](https://github.com/
|
|
331
|
+
* add validate-locales ([cf9b761](https://github.com/iotaledger/twin-data/commit/cf9b76160820fe0b13b4fe56ed241c1d5511b7c1))
|
|
47
332
|
|
|
48
333
|
|
|
49
334
|
### Dependencies
|
|
@@ -53,12 +338,12 @@
|
|
|
53
338
|
* @twin.org/data-core bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
54
339
|
* @twin.org/data-json-ld bumped from 0.0.2-next.3 to 0.0.2-next.4
|
|
55
340
|
|
|
56
|
-
## [0.0.2-next.3](https://github.com/
|
|
341
|
+
## [0.0.2-next.3](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.2-next.2...data-framework-v0.0.2-next.3) (2025-09-29)
|
|
57
342
|
|
|
58
343
|
|
|
59
344
|
### Features
|
|
60
345
|
|
|
61
|
-
* use updated Is.function ([46a4715](https://github.com/
|
|
346
|
+
* use updated Is.function ([46a4715](https://github.com/iotaledger/twin-data/commit/46a4715f995aea34f2011138662fe003c9727d07))
|
|
62
347
|
|
|
63
348
|
|
|
64
349
|
### Dependencies
|
|
@@ -68,12 +353,12 @@
|
|
|
68
353
|
* @twin.org/data-core bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
69
354
|
* @twin.org/data-json-ld bumped from 0.0.2-next.2 to 0.0.2-next.3
|
|
70
355
|
|
|
71
|
-
## [0.0.2-next.2](https://github.com/
|
|
356
|
+
## [0.0.2-next.2](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.2-next.1...data-framework-v0.0.2-next.2) (2025-08-29)
|
|
72
357
|
|
|
73
358
|
|
|
74
359
|
### Features
|
|
75
360
|
|
|
76
|
-
* eslint migration to flat config ([b0db6e6](https://github.com/
|
|
361
|
+
* eslint migration to flat config ([b0db6e6](https://github.com/iotaledger/twin-data/commit/b0db6e69a90046fc60d29e4273fcdfee13c16088))
|
|
77
362
|
|
|
78
363
|
|
|
79
364
|
### Dependencies
|
|
@@ -83,16 +368,16 @@
|
|
|
83
368
|
* @twin.org/data-core bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
84
369
|
* @twin.org/data-json-ld bumped from 0.0.2-next.1 to 0.0.2-next.2
|
|
85
370
|
|
|
86
|
-
## [0.0.2-next.1](https://github.com/
|
|
371
|
+
## [0.0.2-next.1](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.2-next.0...data-framework-v0.0.2-next.1) (2025-08-19)
|
|
87
372
|
|
|
88
373
|
|
|
89
374
|
### Features
|
|
90
375
|
|
|
91
|
-
* add document cache access methods ([dbf1e36](https://github.com/
|
|
92
|
-
* expand Json LD Keyword ([70632d1](https://github.com/
|
|
93
|
-
* update framework core ([c077b8c](https://github.com/
|
|
94
|
-
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/
|
|
95
|
-
* use shared store mechanism ([#3](https://github.com/
|
|
376
|
+
* add document cache access methods ([dbf1e36](https://github.com/iotaledger/twin-data/commit/dbf1e36d176c5f428f8c52628fb5a1ff7a6a174a))
|
|
377
|
+
* expand Json LD Keyword ([70632d1](https://github.com/iotaledger/twin-data/commit/70632d1e11ad85cf3c57e118476b125a673f1681))
|
|
378
|
+
* update framework core ([c077b8c](https://github.com/iotaledger/twin-data/commit/c077b8c07e7ee66b5482254eab6f2a52cd911270))
|
|
379
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/iotaledger/twin-data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
380
|
+
* use shared store mechanism ([#3](https://github.com/iotaledger/twin-data/issues/3)) ([33eb221](https://github.com/iotaledger/twin-data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
|
|
96
381
|
|
|
97
382
|
|
|
98
383
|
### Dependencies
|
|
@@ -107,12 +392,12 @@
|
|
|
107
392
|
|
|
108
393
|
### Features
|
|
109
394
|
|
|
110
|
-
* add document cache access methods ([dbf1e36](https://github.com/
|
|
111
|
-
* expand Json LD Keyword ([70632d1](https://github.com/
|
|
112
|
-
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/
|
|
113
|
-
* use shared store mechanism ([#3](https://github.com/
|
|
395
|
+
* add document cache access methods ([dbf1e36](https://github.com/iotaledger/twin-data/commit/dbf1e36d176c5f428f8c52628fb5a1ff7a6a174a))
|
|
396
|
+
* expand Json LD Keyword ([70632d1](https://github.com/iotaledger/twin-data/commit/70632d1e11ad85cf3c57e118476b125a673f1681))
|
|
397
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/iotaledger/twin-data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
398
|
+
* use shared store mechanism ([#3](https://github.com/iotaledger/twin-data/issues/3)) ([33eb221](https://github.com/iotaledger/twin-data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
|
|
114
399
|
|
|
115
|
-
## [0.0.1-next.37](https://github.com/
|
|
400
|
+
## [0.0.1-next.37](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.36...data-framework-v0.0.1-next.37) (2025-06-11)
|
|
116
401
|
|
|
117
402
|
|
|
118
403
|
### Miscellaneous Chores
|
|
@@ -127,12 +412,12 @@
|
|
|
127
412
|
* @twin.org/data-core bumped from 0.0.1-next.36 to 0.0.1-next.37
|
|
128
413
|
* @twin.org/data-json-ld bumped from 0.0.1-next.36 to 0.0.1-next.37
|
|
129
414
|
|
|
130
|
-
## [0.0.1-next.36](https://github.com/
|
|
415
|
+
## [0.0.1-next.36](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.35...data-framework-v0.0.1-next.36) (2025-06-10)
|
|
131
416
|
|
|
132
417
|
|
|
133
418
|
### Features
|
|
134
419
|
|
|
135
|
-
* expand Json LD Keyword ([70632d1](https://github.com/
|
|
420
|
+
* expand Json LD Keyword ([70632d1](https://github.com/iotaledger/twin-data/commit/70632d1e11ad85cf3c57e118476b125a673f1681))
|
|
136
421
|
|
|
137
422
|
|
|
138
423
|
### Dependencies
|
|
@@ -142,7 +427,7 @@
|
|
|
142
427
|
* @twin.org/data-core bumped from 0.0.1-next.35 to 0.0.1-next.36
|
|
143
428
|
* @twin.org/data-json-ld bumped from 0.0.1-next.35 to 0.0.1-next.36
|
|
144
429
|
|
|
145
|
-
## [0.0.1-next.35](https://github.com/
|
|
430
|
+
## [0.0.1-next.35](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.34...data-framework-v0.0.1-next.35) (2025-06-03)
|
|
146
431
|
|
|
147
432
|
|
|
148
433
|
### Miscellaneous Chores
|
|
@@ -157,7 +442,7 @@
|
|
|
157
442
|
* @twin.org/data-core bumped from 0.0.1-next.34 to 0.0.1-next.35
|
|
158
443
|
* @twin.org/data-json-ld bumped from 0.0.1-next.34 to 0.0.1-next.35
|
|
159
444
|
|
|
160
|
-
## [0.0.1-next.34](https://github.com/
|
|
445
|
+
## [0.0.1-next.34](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.33...data-framework-v0.0.1-next.34) (2025-06-02)
|
|
161
446
|
|
|
162
447
|
|
|
163
448
|
### Miscellaneous Chores
|
|
@@ -172,7 +457,7 @@
|
|
|
172
457
|
* @twin.org/data-core bumped from 0.0.1-next.33 to 0.0.1-next.34
|
|
173
458
|
* @twin.org/data-json-ld bumped from 0.0.1-next.33 to 0.0.1-next.34
|
|
174
459
|
|
|
175
|
-
## [0.0.1-next.33](https://github.com/
|
|
460
|
+
## [0.0.1-next.33](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.32...data-framework-v0.0.1-next.33) (2025-06-02)
|
|
176
461
|
|
|
177
462
|
|
|
178
463
|
### Miscellaneous Chores
|
|
@@ -187,12 +472,12 @@
|
|
|
187
472
|
* @twin.org/data-core bumped from 0.0.1-next.32 to 0.0.1-next.33
|
|
188
473
|
* @twin.org/data-json-ld bumped from 0.0.1-next.32 to 0.0.1-next.33
|
|
189
474
|
|
|
190
|
-
## [0.0.1-next.32](https://github.com/
|
|
475
|
+
## [0.0.1-next.32](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.31...data-framework-v0.0.1-next.32) (2025-05-28)
|
|
191
476
|
|
|
192
477
|
|
|
193
478
|
### Features
|
|
194
479
|
|
|
195
|
-
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/
|
|
480
|
+
* use fully qualified names for data type lookups ([b7b5c74](https://github.com/iotaledger/twin-data/commit/b7b5c746b0180a87baa976f6a7a76cedd53d8ff7))
|
|
196
481
|
|
|
197
482
|
|
|
198
483
|
### Dependencies
|
|
@@ -202,7 +487,7 @@
|
|
|
202
487
|
* @twin.org/data-core bumped from 0.0.1-next.31 to 0.0.1-next.32
|
|
203
488
|
* @twin.org/data-json-ld bumped from 0.0.1-next.31 to 0.0.1-next.32
|
|
204
489
|
|
|
205
|
-
## [0.0.1-next.31](https://github.com/
|
|
490
|
+
## [0.0.1-next.31](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.30...data-framework-v0.0.1-next.31) (2025-05-08)
|
|
206
491
|
|
|
207
492
|
|
|
208
493
|
### Miscellaneous Chores
|
|
@@ -217,12 +502,12 @@
|
|
|
217
502
|
* @twin.org/data-core bumped from 0.0.1-next.30 to 0.0.1-next.31
|
|
218
503
|
* @twin.org/data-json-ld bumped from 0.0.1-next.30 to 0.0.1-next.31
|
|
219
504
|
|
|
220
|
-
## [0.0.1-next.30](https://github.com/
|
|
505
|
+
## [0.0.1-next.30](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.29...data-framework-v0.0.1-next.30) (2025-04-17)
|
|
221
506
|
|
|
222
507
|
|
|
223
508
|
### Features
|
|
224
509
|
|
|
225
|
-
* use shared store mechanism ([#3](https://github.com/
|
|
510
|
+
* use shared store mechanism ([#3](https://github.com/iotaledger/twin-data/issues/3)) ([33eb221](https://github.com/iotaledger/twin-data/commit/33eb221ccec2b4a79549c06e9a04225009b93a46))
|
|
226
511
|
|
|
227
512
|
|
|
228
513
|
### Dependencies
|
|
@@ -232,12 +517,12 @@
|
|
|
232
517
|
* @twin.org/data-core bumped from 0.0.1-next.29 to 0.0.1-next.30
|
|
233
518
|
* @twin.org/data-json-ld bumped from 0.0.1-next.29 to 0.0.1-next.30
|
|
234
519
|
|
|
235
|
-
## [0.0.1-next.29](https://github.com/
|
|
520
|
+
## [0.0.1-next.29](https://github.com/iotaledger/twin-data/compare/data-framework-v0.0.1-next.28...data-framework-v0.0.1-next.29) (2025-03-28)
|
|
236
521
|
|
|
237
522
|
|
|
238
523
|
### Features
|
|
239
524
|
|
|
240
|
-
* add document cache access methods ([dbf1e36](https://github.com/
|
|
525
|
+
* add document cache access methods ([dbf1e36](https://github.com/iotaledger/twin-data/commit/dbf1e36d176c5f428f8c52628fb5a1ff7a6a174a))
|
|
241
526
|
|
|
242
527
|
|
|
243
528
|
### Dependencies
|
package/docs/examples.md
CHANGED
|
@@ -1 +1,30 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Data Framework Examples
|
|
2
|
+
|
|
3
|
+
These examples show how to register framework data types and validate values against the registered handlers.
|
|
4
|
+
|
|
5
|
+
## FrameworkDataTypes
|
|
6
|
+
|
|
7
|
+
```typescript
|
|
8
|
+
import { type IValidationFailure } from '@twin.org/core';
|
|
9
|
+
import { DataTypeHelper, ValidationMode } from '@twin.org/data-core';
|
|
10
|
+
import { FrameworkContexts, FrameworkDataTypes, FrameworkTypes } from '@twin.org/data-framework';
|
|
11
|
+
|
|
12
|
+
FrameworkDataTypes.registerTypes();
|
|
13
|
+
|
|
14
|
+
const failures: IValidationFailure[] = [];
|
|
15
|
+
const urnType = `${FrameworkContexts.Namespace}${FrameworkTypes.Urn}`;
|
|
16
|
+
|
|
17
|
+
const isValidUrn = await DataTypeHelper.validate(
|
|
18
|
+
'resourceId',
|
|
19
|
+
urnType,
|
|
20
|
+
'urn:example:12345',
|
|
21
|
+
failures,
|
|
22
|
+
{
|
|
23
|
+
validationMode: ValidationMode.Both,
|
|
24
|
+
failOnMissingType: true
|
|
25
|
+
}
|
|
26
|
+
);
|
|
27
|
+
|
|
28
|
+
console.log('URN validation result:', isValidUrn);
|
|
29
|
+
console.log('Failure count:', failures.length);
|
|
30
|
+
```
|
|
@@ -6,8 +6,20 @@ The contexts of framework data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
###
|
|
9
|
+
### Namespace {#namespace}
|
|
10
10
|
|
|
11
|
-
> `readonly` **
|
|
11
|
+
> `readonly` **Namespace**: `"https://schema.twindev.org/framework/"` = `"https://schema.twindev.org/framework/"`
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The canonical RDF namespace URI for Framework.
|
|
14
|
+
|
|
15
|
+
### Context {#context}
|
|
16
|
+
|
|
17
|
+
> `readonly` **Context**: `"https://schema.twindev.org/framework/"` = `"https://schema.twindev.org/framework/"`
|
|
18
|
+
|
|
19
|
+
The value to use in JSON-LD context for Framework.
|
|
20
|
+
|
|
21
|
+
### JsonLdContext {#jsonldcontext}
|
|
22
|
+
|
|
23
|
+
> `readonly` **JsonLdContext**: `"https://schema.twindev.org/framework/types.jsonld"` = `"https://schema.twindev.org/framework/types.jsonld"`
|
|
24
|
+
|
|
25
|
+
The JSON-LD Context URL for Framework.
|
|
@@ -6,19 +6,19 @@ The types of framework data.
|
|
|
6
6
|
|
|
7
7
|
## Type Declaration
|
|
8
8
|
|
|
9
|
-
### Urn
|
|
9
|
+
### Urn {#urn}
|
|
10
10
|
|
|
11
11
|
> `readonly` **Urn**: `"URN"` = `"URN"`
|
|
12
12
|
|
|
13
13
|
Represents a urn.
|
|
14
14
|
|
|
15
|
-
### TimestampMilliseconds
|
|
15
|
+
### TimestampMilliseconds {#timestampmilliseconds}
|
|
16
16
|
|
|
17
17
|
> `readonly` **TimestampMilliseconds**: `"TimestampMilliseconds"` = `"TimestampMilliseconds"`
|
|
18
18
|
|
|
19
19
|
Represents a timestamp as an integer, milliseconds since 1 Jan 1970.
|
|
20
20
|
|
|
21
|
-
### TimestampSeconds
|
|
21
|
+
### TimestampSeconds {#timestampseconds}
|
|
22
22
|
|
|
23
23
|
> `readonly` **TimestampSeconds**: `"TimestampSeconds"` = `"TimestampSeconds"`
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@twin.org/data-framework",
|
|
3
|
-
"version": "0.0.3-next.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.0.3-next.21",
|
|
4
|
+
"description": "Framework data models that define common structures used by other packages.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/
|
|
7
|
+
"url": "git+https://github.com/iotaledger/data.git",
|
|
8
8
|
"directory": "packages/data-framework"
|
|
9
9
|
},
|
|
10
10
|
"author": "martyn.janes@iota.org",
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@twin.org/core": "next",
|
|
18
|
-
"@twin.org/data-core": "0.0.3-next.
|
|
19
|
-
"@twin.org/data-json-ld": "0.0.3-next.
|
|
18
|
+
"@twin.org/data-core": "0.0.3-next.21",
|
|
19
|
+
"@twin.org/data-json-ld": "0.0.3-next.21",
|
|
20
20
|
"@twin.org/entity": "next",
|
|
21
21
|
"@twin.org/nameof": "next"
|
|
22
22
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"data"
|
|
46
46
|
],
|
|
47
47
|
"bugs": {
|
|
48
|
-
"url": "git+https://github.com/
|
|
48
|
+
"url": "git+https://github.com/iotaledger/data/issues"
|
|
49
49
|
},
|
|
50
50
|
"homepage": "https://twindev.org"
|
|
51
51
|
}
|