@swagger-api/apidom-core 1.0.0-beta.8 → 1.0.0-rc.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 +184 -0
- package/README.md +4 -4
- package/dist/apidom-core.browser.js +13441 -13472
- package/dist/apidom-core.browser.min.js +1 -1
- package/package.json +8 -8
- package/src/clone/index.cjs +4 -0
- package/src/clone/index.mjs +5 -1
- package/src/index.cjs +2 -3
- package/src/index.mjs +3 -3
- package/src/merge/deepmerge.cjs +1 -1
- package/src/merge/deepmerge.mjs +1 -1
- package/src/namespace.cjs +0 -2
- package/src/namespace.mjs +0 -2
- package/src/predicates/index.cjs +5 -14
- package/src/predicates/index.mjs +4 -13
- package/src/refractor/registration.cjs +1 -4
- package/src/refractor/registration.mjs +1 -3
- package/src/traversal/findAtOffset.cjs +5 -6
- package/src/traversal/findAtOffset.mjs +5 -5
- package/src/traversal/visitor.cjs +1 -2
- package/src/traversal/visitor.mjs +1 -2
- package/src/util.cjs +17 -2
- package/src/util.mjs +15 -1
- package/types/apidom-core.d.ts +15 -35
- package/src/elements/SourceMap.cjs +0 -39
- package/src/elements/SourceMap.mjs +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,190 @@
|
|
|
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
|
+
# [1.0.0-rc.0](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.51...v1.0.0-rc.0) (2025-10-21)
|
|
7
|
+
|
|
8
|
+
### Performance Improvements
|
|
9
|
+
|
|
10
|
+
- flatten sourceMap to improve memory usage ([#4964](https://github.com/swagger-api/apidom/issues/4964)) ([bda1edf](https://github.com/swagger-api/apidom/commit/bda1edf7b1b37adc728b8632337b22866e33fa4a))
|
|
11
|
+
|
|
12
|
+
# [1.0.0-beta.51](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.50...v1.0.0-beta.51) (2025-10-14)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
15
|
+
|
|
16
|
+
# [1.0.0-beta.50](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.49...v1.0.0-beta.50) (2025-09-26)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
19
|
+
|
|
20
|
+
# [1.0.0-beta.49](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.48...v1.0.0-beta.49) (2025-09-22)
|
|
21
|
+
|
|
22
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
23
|
+
|
|
24
|
+
# [1.0.0-beta.48](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.47...v1.0.0-beta.48) (2025-09-09)
|
|
25
|
+
|
|
26
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
27
|
+
|
|
28
|
+
# [1.0.0-beta.47](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.46...v1.0.0-beta.47) (2025-09-01)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
- **ls:** disable newly added rules for 3.1 spec ([#4997](https://github.com/swagger-api/apidom/issues/4997)) ([d5b16f8](https://github.com/swagger-api/apidom/commit/d5b16f82a916aea70929d2f3ff5be04769d8d8d3))
|
|
33
|
+
|
|
34
|
+
# [1.0.0-beta.46](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.45...v1.0.0-beta.46) (2025-08-19)
|
|
35
|
+
|
|
36
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
37
|
+
|
|
38
|
+
# [1.0.0-beta.45](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2025-08-01)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
41
|
+
|
|
42
|
+
# [1.0.0-beta.44](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2025-07-07)
|
|
43
|
+
|
|
44
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
45
|
+
|
|
46
|
+
# [1.0.0-beta.43](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2025-06-13)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
49
|
+
|
|
50
|
+
# [1.0.0-beta.42](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.41...v1.0.0-beta.42) (2025-06-06)
|
|
51
|
+
|
|
52
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
53
|
+
|
|
54
|
+
# [1.0.0-beta.41](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.40...v1.0.0-beta.41) (2025-06-04)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
57
|
+
|
|
58
|
+
# [1.0.0-beta.40](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.39...v1.0.0-beta.40) (2025-05-30)
|
|
59
|
+
|
|
60
|
+
### Bug Fixes
|
|
61
|
+
|
|
62
|
+
- **core:** fix custom deep merge not affecting nested properties ([#4940](https://github.com/swagger-api/apidom/issues/4940)) ([15a4839](https://github.com/swagger-api/apidom/commit/15a4839a2f4bfe69406b0e0268cd4121ca90fd6c))
|
|
63
|
+
|
|
64
|
+
# [1.0.0-beta.39](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.38...v1.0.0-beta.39) (2025-05-20)
|
|
65
|
+
|
|
66
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
67
|
+
|
|
68
|
+
# [1.0.0-beta.38](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.37...v1.0.0-beta.38) (2025-05-16)
|
|
69
|
+
|
|
70
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
71
|
+
|
|
72
|
+
# [1.0.0-beta.37](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.36...v1.0.0-beta.37) (2025-05-12)
|
|
73
|
+
|
|
74
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
75
|
+
|
|
76
|
+
# [1.0.0-beta.36](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.35...v1.0.0-beta.36) (2025-05-06)
|
|
77
|
+
|
|
78
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
79
|
+
|
|
80
|
+
# [1.0.0-beta.35](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.34...v1.0.0-beta.35) (2025-05-02)
|
|
81
|
+
|
|
82
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
83
|
+
|
|
84
|
+
# [1.0.0-beta.34](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.33...v1.0.0-beta.34) (2025-05-02)
|
|
85
|
+
|
|
86
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
87
|
+
|
|
88
|
+
# [1.0.0-beta.33](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.32...v1.0.0-beta.33) (2025-04-30)
|
|
89
|
+
|
|
90
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
91
|
+
|
|
92
|
+
# [1.0.0-beta.32](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.31...v1.0.0-beta.32) (2025-04-28)
|
|
93
|
+
|
|
94
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
95
|
+
|
|
96
|
+
# [1.0.0-beta.31](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.30...v1.0.0-beta.31) (2025-04-24)
|
|
97
|
+
|
|
98
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
99
|
+
|
|
100
|
+
# [1.0.0-beta.30](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.29...v1.0.0-beta.30) (2025-03-17)
|
|
101
|
+
|
|
102
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
103
|
+
|
|
104
|
+
# [1.0.0-beta.29](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.28...v1.0.0-beta.29) (2025-03-17)
|
|
105
|
+
|
|
106
|
+
### Bug Fixes
|
|
107
|
+
|
|
108
|
+
- **security:** eliminate CVE-2025-27789 ([#4797](https://github.com/swagger-api/apidom/issues/4797)) ([af335c3](https://github.com/swagger-api/apidom/commit/af335c3d53616b7991acc74329e61d350398997a))
|
|
109
|
+
|
|
110
|
+
# [1.0.0-beta.28](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.27...v1.0.0-beta.28) (2025-03-12)
|
|
111
|
+
|
|
112
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
113
|
+
|
|
114
|
+
# [1.0.0-beta.27](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.26...v1.0.0-beta.27) (2025-03-12)
|
|
115
|
+
|
|
116
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
117
|
+
|
|
118
|
+
# [1.0.0-beta.26](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.25...v1.0.0-beta.26) (2025-03-12)
|
|
119
|
+
|
|
120
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
121
|
+
|
|
122
|
+
# [1.0.0-beta.25](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.24...v1.0.0-beta.25) (2025-03-12)
|
|
123
|
+
|
|
124
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
125
|
+
|
|
126
|
+
# [1.0.0-beta.24](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.23...v1.0.0-beta.24) (2025-03-12)
|
|
127
|
+
|
|
128
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
129
|
+
|
|
130
|
+
# [1.0.0-beta.23](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.22...v1.0.0-beta.23) (2025-03-12)
|
|
131
|
+
|
|
132
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
133
|
+
|
|
134
|
+
# [1.0.0-beta.22](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.21...v1.0.0-beta.22) (2025-03-12)
|
|
135
|
+
|
|
136
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
137
|
+
|
|
138
|
+
# [1.0.0-beta.21](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.20...v1.0.0-beta.21) (2025-03-12)
|
|
139
|
+
|
|
140
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
141
|
+
|
|
142
|
+
# [1.0.0-beta.20](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.19...v1.0.0-beta.20) (2025-03-12)
|
|
143
|
+
|
|
144
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
145
|
+
|
|
146
|
+
# [1.0.0-beta.19](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.18...v1.0.0-beta.19) (2025-03-12)
|
|
147
|
+
|
|
148
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
149
|
+
|
|
150
|
+
# [1.0.0-beta.18](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.17...v1.0.0-beta.18) (2025-03-12)
|
|
151
|
+
|
|
152
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
153
|
+
|
|
154
|
+
# [1.0.0-beta.17](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.16...v1.0.0-beta.17) (2025-03-12)
|
|
155
|
+
|
|
156
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
157
|
+
|
|
158
|
+
# [1.0.0-beta.16](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.15...v1.0.0-beta.16) (2025-03-12)
|
|
159
|
+
|
|
160
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
161
|
+
|
|
162
|
+
# [1.0.0-beta.15](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.14...v1.0.0-beta.15) (2025-03-11)
|
|
163
|
+
|
|
164
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
165
|
+
|
|
166
|
+
# [1.0.0-beta.14](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.13...v1.0.0-beta.14) (2025-03-11)
|
|
167
|
+
|
|
168
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
169
|
+
|
|
170
|
+
# [1.0.0-beta.13](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.12...v1.0.0-beta.13) (2025-03-10)
|
|
171
|
+
|
|
172
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
173
|
+
|
|
174
|
+
# [1.0.0-beta.12](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.11...v1.0.0-beta.12) (2025-02-11)
|
|
175
|
+
|
|
176
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
177
|
+
|
|
178
|
+
# [1.0.0-beta.11](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.10...v1.0.0-beta.11) (2025-01-27)
|
|
179
|
+
|
|
180
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
181
|
+
|
|
182
|
+
# [1.0.0-beta.10](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.9...v1.0.0-beta.10) (2025-01-25)
|
|
183
|
+
|
|
184
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
185
|
+
|
|
186
|
+
# [1.0.0-beta.9](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.8...v1.0.0-beta.9) (2025-01-23)
|
|
187
|
+
|
|
188
|
+
**Note:** Version bump only for package @swagger-api/apidom-core
|
|
189
|
+
|
|
6
190
|
# [1.0.0-beta.8](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.7...v1.0.0-beta.8) (2025-01-23)
|
|
7
191
|
|
|
8
192
|
**Note:** Version bump only for package @swagger-api/apidom-core
|
package/README.md
CHANGED
|
@@ -493,7 +493,7 @@ If multiple plugins with the same visitor method are defined, they run in parall
|
|
|
493
493
|
|
|
494
494
|
#### Element identity plugin
|
|
495
495
|
|
|
496
|
-
`apidom` package comes with `refractorPluginElementIdentity`. When used, this plugin will
|
|
496
|
+
`apidom-core` package comes with `refractorPluginElementIdentity`. When used, this plugin will
|
|
497
497
|
assign unique ID to all elements in ApiDOM tree.
|
|
498
498
|
|
|
499
499
|
```js
|
|
@@ -528,7 +528,7 @@ objectElement.getMember('a').value.id; // Ki4tWmf9xw9Lwb8MxkXJq1uONmJrmhXifmsI
|
|
|
528
528
|
|
|
529
529
|
#### Semantic element identity plugin
|
|
530
530
|
|
|
531
|
-
`apidom` package comes with `refractorPluginSemanticElementIdentity`. When used, this plugin will
|
|
531
|
+
`apidom-core` package comes with `refractorPluginSemanticElementIdentity`. When used, this plugin will
|
|
532
532
|
assign unique ID to all non-primitive elements in ApiDOM tree. Primitive elements include
|
|
533
533
|
`ObjectElement`, `ArrayElement`, `StringElement`, `BooleanElement`, `NullElement` and `NumberElement`.
|
|
534
534
|
|
|
@@ -574,7 +574,7 @@ objectElement.getMember('info').value.id; // 'OnReGGrO7fMd9ztacvGfwGbOdGKuOFLiQQ
|
|
|
574
574
|
|
|
575
575
|
## Traversal
|
|
576
576
|
|
|
577
|
-
`apidom` comes with its own traversal algorithm along with couple of convenient abstractions on top of it.
|
|
577
|
+
`apidom-core` comes with its own traversal algorithm along with couple of convenient abstractions on top of it.
|
|
578
578
|
|
|
579
579
|
### visit
|
|
580
580
|
|
|
@@ -605,7 +605,7 @@ const newElement = visit(element, visitor); // => ObjectElement<{a: 2}>
|
|
|
605
605
|
```
|
|
606
606
|
|
|
607
607
|
This function originally comes from [@swagger-api/apidom-ast package](https://github.com/swagger-api/apidom/blob/main/packages/apidom-ast/src/visitor.ts)
|
|
608
|
-
and is originally designed to work with [CST](https://en.wikipedia.org/wiki/Parse_tree). `apidom` package
|
|
608
|
+
and is originally designed to work with [CST](https://en.wikipedia.org/wiki/Parse_tree). `apidom-core` package
|
|
609
609
|
imports it, specializes it to work with ApiDOM and re-export it.
|
|
610
610
|
|
|
611
611
|
All following algorithms are based on `visit` function.
|