@speclynx/apidom-ns-arazzo-1 2.10.2 → 2.11.0
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [2.11.0](https://github.com/speclynx/apidom/compare/v2.10.3...v2.11.0) (2026-02-12)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @speclynx/apidom-ns-arazzo-1
|
|
9
|
+
|
|
10
|
+
## [2.10.3](https://github.com/speclynx/apidom/compare/v2.10.2...v2.10.3) (2026-02-10)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
- **ns-arazzo-1:** remove arazzo class from ArazzoSpecification element ([#84](https://github.com/speclynx/apidom/issues/84)) ([2fc5d6d](https://github.com/speclynx/apidom/commit/2fc5d6d6108db8724352986b02252edd5528d173))
|
|
15
|
+
|
|
6
16
|
## [2.10.2](https://github.com/speclynx/apidom/compare/v2.10.1...v2.10.2) (2026-02-08)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @speclynx/apidom-ns-arazzo-1
|
|
@@ -54,7 +54,6 @@ class ArazzoSpecification1 extends _speclynx_apidom_datamodel__WEBPACK_IMPORTED_
|
|
|
54
54
|
super(content, meta, attributes);
|
|
55
55
|
this.element = 'arazzoSpecification1';
|
|
56
56
|
this.classes.push('api');
|
|
57
|
-
this.classes.push('arazzo');
|
|
58
57
|
}
|
|
59
58
|
get arazzo() {
|
|
60
59
|
return this.get('arazzo');
|
|
@@ -22122,7 +22121,13 @@ class Element {
|
|
|
22122
22121
|
|
|
22123
22122
|
/** Unique identifier for this element. */
|
|
22124
22123
|
get id() {
|
|
22125
|
-
|
|
22124
|
+
if (this.isFrozen) {
|
|
22125
|
+
return this.getMetaProperty('id', '');
|
|
22126
|
+
}
|
|
22127
|
+
if (!this.hasMetaProperty('id')) {
|
|
22128
|
+
this.setMetaProperty('id', '');
|
|
22129
|
+
}
|
|
22130
|
+
return this.meta.get('id');
|
|
22126
22131
|
}
|
|
22127
22132
|
set id(value) {
|
|
22128
22133
|
this.setMetaProperty('id', value);
|
|
@@ -22130,7 +22135,13 @@ class Element {
|
|
|
22130
22135
|
|
|
22131
22136
|
/** CSS-like class names. */
|
|
22132
22137
|
get classes() {
|
|
22133
|
-
|
|
22138
|
+
if (this.isFrozen) {
|
|
22139
|
+
return this.getMetaProperty('classes', []);
|
|
22140
|
+
}
|
|
22141
|
+
if (!this.hasMetaProperty('classes')) {
|
|
22142
|
+
this.setMetaProperty('classes', []);
|
|
22143
|
+
}
|
|
22144
|
+
return this.meta.get('classes');
|
|
22134
22145
|
}
|
|
22135
22146
|
set classes(value) {
|
|
22136
22147
|
this.setMetaProperty('classes', value);
|
|
@@ -22138,7 +22149,13 @@ class Element {
|
|
|
22138
22149
|
|
|
22139
22150
|
/** Hyperlinks associated with this element. */
|
|
22140
22151
|
get links() {
|
|
22141
|
-
|
|
22152
|
+
if (this.isFrozen) {
|
|
22153
|
+
return this.getMetaProperty('links', []);
|
|
22154
|
+
}
|
|
22155
|
+
if (!this.hasMetaProperty('links')) {
|
|
22156
|
+
this.setMetaProperty('links', []);
|
|
22157
|
+
}
|
|
22158
|
+
return this.meta.get('links');
|
|
22142
22159
|
}
|
|
22143
22160
|
set links(value) {
|
|
22144
22161
|
this.setMetaProperty('links', value);
|
|
@@ -22289,16 +22306,26 @@ class Element {
|
|
|
22289
22306
|
}
|
|
22290
22307
|
|
|
22291
22308
|
/**
|
|
22292
|
-
* Gets a meta property
|
|
22309
|
+
* Gets a meta property.
|
|
22310
|
+
*
|
|
22311
|
+
* When the property doesn't exist:
|
|
22312
|
+
* - With defaultValue: returns a new refracted element instance (not cached)
|
|
22313
|
+
* - Without defaultValue: returns undefined
|
|
22314
|
+
*
|
|
22315
|
+
* Note: Each call with a default creates a new instance. Use setMetaProperty
|
|
22316
|
+
* first if you need reference equality across multiple accesses.
|
|
22293
22317
|
*/
|
|
22318
|
+
|
|
22294
22319
|
getMetaProperty(name, defaultValue) {
|
|
22295
|
-
if (!this.
|
|
22296
|
-
if (
|
|
22297
|
-
|
|
22320
|
+
if (!this.hasMetaProperty(name)) {
|
|
22321
|
+
if (defaultValue === undefined) {
|
|
22322
|
+
return undefined;
|
|
22323
|
+
}
|
|
22324
|
+
const element = this.refract(defaultValue);
|
|
22325
|
+
if (element && this.isFrozen) {
|
|
22298
22326
|
element.freeze();
|
|
22299
|
-
return element;
|
|
22300
22327
|
}
|
|
22301
|
-
|
|
22328
|
+
return element;
|
|
22302
22329
|
}
|
|
22303
22330
|
return this.meta.get(name);
|
|
22304
22331
|
}
|