@arcgis/api-extractor 6.0.0-next.4 → 6.0.0-next.6
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/chunks/ApiExtractor.js +202 -196
- package/dist/chunks/links.js +85 -85
- package/dist/diff/apiDiffToMarkdown.js +135 -100
- package/dist/diff/diffApiJson.js +106 -205
- package/package.json +3 -3
package/dist/diff/diffApiJson.js
CHANGED
|
@@ -1,260 +1,161 @@
|
|
|
1
|
-
function
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
o[t.path] = t;
|
|
7
|
-
}), {
|
|
8
|
-
...a,
|
|
9
|
-
modules: a.modules.filter((t) => {
|
|
10
|
-
const e = o[t.path];
|
|
11
|
-
return t.declarations = t.declarations.filter((n) => {
|
|
12
|
-
if (n.kind === "mixin")
|
|
13
|
-
return !1;
|
|
14
|
-
if (n.kind === "interface") {
|
|
15
|
-
const s = e?.declarations.find(
|
|
16
|
-
(d) => d.name === n.name && d.kind === "interface"
|
|
17
|
-
);
|
|
18
|
-
return n.members = void 0, s !== void 0;
|
|
19
|
-
}
|
|
20
|
-
return !0;
|
|
21
|
-
}), t.declarations.length > 0;
|
|
22
|
-
})
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
function x(r) {
|
|
26
|
-
const a = /* @__PURE__ */ new Set([
|
|
27
|
-
// Fake class turned into a variable
|
|
28
|
-
"config",
|
|
29
|
-
// Wasn't visible directly before due to doc mismatch
|
|
30
|
-
"identity/IdentityManagerBase",
|
|
31
|
-
// Fake class turned into a variable
|
|
32
|
-
"identity/IdentityManager",
|
|
33
|
-
// Fake class turned into an interface
|
|
34
|
-
"views/layers/GeoRSSLayerView",
|
|
35
|
-
"views/layers/GraphicsLayerView",
|
|
36
|
-
"views/layers/KMLLayerView",
|
|
37
|
-
"views/layers/VectorTileLayerView",
|
|
38
|
-
"views/layers/PointCloudLayerView",
|
|
39
|
-
// ENUM-like objects turned into const variable + interfaces
|
|
40
|
-
"layers/support/rasterFunctionConstants"
|
|
41
|
-
]), o = r.modules.filter((i) => {
|
|
42
|
-
if (a.has(i.path))
|
|
43
|
-
return !1;
|
|
44
|
-
const t = i.path.startsWith("widgets/");
|
|
45
|
-
return i.declarations = i.declarations.filter((e) => t ? e.deprecated === void 0 && e.removed === void 0 ? !1 : ((e.kind === "class" || e.kind === "interface" || e.kind === "mixin") && (e.members = void 0), !0) : e.kind === "class" ? e.members === void 0 ? !0 : (e.members = e.members.filter((n) => !(n.kind === "constructor" || n.kind === "call-signature" || A.has(n.name))), e.members.length > 0) : !0), i.declarations.length > 0;
|
|
46
|
-
});
|
|
47
|
-
return { ...r, modules: o };
|
|
48
|
-
}
|
|
49
|
-
const A = /* @__PURE__ */ new Set([
|
|
50
|
-
// Excluded from api.json inheritance to keep file size in check
|
|
51
|
-
"addHandles",
|
|
52
|
-
"hasHandles",
|
|
53
|
-
"removeHandles",
|
|
54
|
-
// These are coming from mixins. Exclude them from the diff to reduce noise
|
|
55
|
-
// compared to more valuable new 5.0 fields.
|
|
56
|
-
// Added 77 times
|
|
57
|
-
"emit",
|
|
58
|
-
// 77
|
|
59
|
-
"hasEventListener",
|
|
60
|
-
// 73
|
|
61
|
-
"fromJSON",
|
|
62
|
-
// 72
|
|
63
|
-
"on",
|
|
64
|
-
// 71
|
|
65
|
-
"toJSON",
|
|
66
|
-
// 63
|
|
67
|
-
"declaredClass",
|
|
68
|
-
// 63
|
|
69
|
-
"getAtOrigin",
|
|
70
|
-
// 63
|
|
71
|
-
"originOf",
|
|
72
|
-
// 63
|
|
73
|
-
"revertAllToOrigin",
|
|
74
|
-
// 63
|
|
75
|
-
"revertToOrigin",
|
|
76
|
-
// 54
|
|
77
|
-
"clone",
|
|
78
|
-
// 50
|
|
79
|
-
"fromPortalItem",
|
|
80
|
-
// 49
|
|
81
|
-
"fromArcGISServerUrl",
|
|
82
|
-
// 28
|
|
83
|
-
"isFulfilled",
|
|
84
|
-
// 28
|
|
85
|
-
"isRejected",
|
|
86
|
-
// 28
|
|
87
|
-
"isResolved",
|
|
88
|
-
// 28
|
|
89
|
-
"when",
|
|
90
|
-
// 6
|
|
91
|
-
"cancelLoad",
|
|
92
|
-
// 6
|
|
93
|
-
"loadError",
|
|
94
|
-
// 6
|
|
95
|
-
"loadStatus",
|
|
96
|
-
// 6
|
|
97
|
-
"loadWarnings"
|
|
98
|
-
]);
|
|
99
|
-
function I(r, a) {
|
|
100
|
-
const o = w(r, a), i = o ?? a, t = r.compiler?.version.startsWith("4.") === !0 && i.compiler?.version.startsWith("4.") !== !0, e = new Map(
|
|
101
|
-
r.modules.map((d) => [
|
|
102
|
-
b(d, t),
|
|
103
|
-
d
|
|
1
|
+
function P(a, d) {
|
|
2
|
+
const i = a.compiler?.version.startsWith("4.") === !0 && d.compiler?.version.startsWith("4.") !== !0, n = new Map(
|
|
3
|
+
a.modules.map((e) => [
|
|
4
|
+
D(e, i),
|
|
5
|
+
e
|
|
104
6
|
])
|
|
105
|
-
),
|
|
106
|
-
for (const
|
|
107
|
-
const
|
|
108
|
-
|
|
7
|
+
), o = [];
|
|
8
|
+
for (const e of d.modules) {
|
|
9
|
+
const s = n.get(e.path), t = b(s, e, !0);
|
|
10
|
+
t !== void 0 && o.push(t), n.delete(e.path);
|
|
109
11
|
}
|
|
110
|
-
for (const
|
|
111
|
-
const
|
|
12
|
+
for (const e of n.values()) {
|
|
13
|
+
const s = b(
|
|
112
14
|
void 0,
|
|
113
|
-
|
|
15
|
+
i ? { ...e, path: D(e, i) } : e,
|
|
114
16
|
!1
|
|
115
17
|
);
|
|
116
|
-
|
|
18
|
+
s !== void 0 && o.push(s);
|
|
117
19
|
}
|
|
118
|
-
|
|
119
|
-
return o === void 0 ? s : x(s);
|
|
20
|
+
return { modules: o };
|
|
120
21
|
}
|
|
121
|
-
function
|
|
122
|
-
return
|
|
22
|
+
function D(a, d) {
|
|
23
|
+
return d ? a.declarations?.[0]?.importPath ?? a.path : a.path;
|
|
123
24
|
}
|
|
124
|
-
function
|
|
125
|
-
const
|
|
126
|
-
for (const
|
|
127
|
-
const
|
|
128
|
-
|
|
129
|
-
const g =
|
|
25
|
+
function b(a, d, i) {
|
|
26
|
+
const n = [], o = u(a?.declarations ?? []), e = u(d.declarations ?? []);
|
|
27
|
+
for (const s of e.values()) {
|
|
28
|
+
const t = s.at(-1), f = t.tagName, h = f ?? t.name, p = o.get(h);
|
|
29
|
+
o.delete(h);
|
|
30
|
+
const g = p === void 0 && !i ? !0 : void 0, m = (
|
|
130
31
|
// Only mark as deprecated if all overloads are deprecated
|
|
131
|
-
|
|
132
|
-
), k = !
|
|
32
|
+
s.length === 1 || s.every((r) => r.deprecated !== void 0) ? t.deprecated : void 0
|
|
33
|
+
), k = !m && p === void 0 && i ? !0 : void 0;
|
|
133
34
|
if (g || k) {
|
|
134
|
-
|
|
135
|
-
kind:
|
|
136
|
-
name:
|
|
137
|
-
tagName:
|
|
35
|
+
n.push({
|
|
36
|
+
kind: t.kind,
|
|
37
|
+
name: t.name,
|
|
38
|
+
tagName: f,
|
|
138
39
|
members: void 0,
|
|
139
40
|
removed: g,
|
|
140
41
|
added: k,
|
|
141
|
-
deprecated:
|
|
42
|
+
deprecated: m
|
|
142
43
|
});
|
|
143
44
|
continue;
|
|
144
|
-
} else if (!
|
|
45
|
+
} else if (!i)
|
|
145
46
|
continue;
|
|
146
|
-
if (
|
|
147
|
-
const
|
|
148
|
-
kind:
|
|
149
|
-
name:
|
|
150
|
-
tagName:
|
|
151
|
-
deprecated:
|
|
47
|
+
if (f !== void 0) {
|
|
48
|
+
const r = t, l = p?.[0], c = {
|
|
49
|
+
kind: r.kind,
|
|
50
|
+
name: r.name,
|
|
51
|
+
tagName: r.tagName,
|
|
52
|
+
deprecated: m,
|
|
152
53
|
added: void 0,
|
|
153
54
|
removed: void 0,
|
|
154
|
-
members: M(
|
|
155
|
-
events:
|
|
156
|
-
slots:
|
|
157
|
-
cssParts:
|
|
158
|
-
cssProperties:
|
|
159
|
-
cssStates:
|
|
55
|
+
members: M(l?.members, r.members),
|
|
56
|
+
events: v(l?.events, r.events),
|
|
57
|
+
slots: v(l?.slots, r.slots),
|
|
58
|
+
cssParts: v(l?.cssParts, r.cssParts),
|
|
59
|
+
cssProperties: v(l?.cssProperties, r.cssProperties),
|
|
60
|
+
cssStates: v(l?.cssStates, r.cssStates)
|
|
160
61
|
};
|
|
161
|
-
(
|
|
162
|
-
} else if (
|
|
163
|
-
const
|
|
164
|
-
kind:
|
|
165
|
-
name:
|
|
166
|
-
deprecated:
|
|
62
|
+
(m !== void 0 || c.members !== void 0 || c.events !== void 0 || c.slots !== void 0 || c.cssParts !== void 0 || c.cssProperties !== void 0 || c.cssStates !== void 0) && n.push(c);
|
|
63
|
+
} else if (t.kind === "class" || t.kind === "interface" || t.kind === "mixin") {
|
|
64
|
+
const r = p?.[0], l = m !== void 0 && (r?.kind === "class" || r?.kind === "interface") && t.kind === "interface" && t.type === void 0 && (t.supertypes?.length ?? 0) > 0 && (t.members?.length ?? 0) === 0, c = {
|
|
65
|
+
kind: t.kind,
|
|
66
|
+
name: t.name,
|
|
67
|
+
deprecated: m,
|
|
167
68
|
added: void 0,
|
|
168
69
|
removed: void 0,
|
|
169
|
-
members: M(
|
|
170
|
-
events: "events" in
|
|
70
|
+
members: l ? void 0 : M(r?.members, t.members),
|
|
71
|
+
events: !l && "events" in t ? v(r?.events, t.events) : void 0
|
|
171
72
|
};
|
|
172
|
-
(
|
|
173
|
-
} else
|
|
174
|
-
kind:
|
|
175
|
-
name:
|
|
176
|
-
deprecated:
|
|
73
|
+
(m !== void 0 || c.members !== void 0 || c.events !== void 0) && n.push(c);
|
|
74
|
+
} else m !== void 0 && n.push({
|
|
75
|
+
kind: t.kind,
|
|
76
|
+
name: t.name,
|
|
77
|
+
deprecated: m,
|
|
177
78
|
added: void 0,
|
|
178
79
|
removed: void 0
|
|
179
80
|
});
|
|
180
81
|
}
|
|
181
|
-
if (
|
|
182
|
-
for (const [
|
|
183
|
-
|
|
184
|
-
kind:
|
|
185
|
-
name:
|
|
186
|
-
tagName:
|
|
82
|
+
if (i)
|
|
83
|
+
for (const [s] of o.values())
|
|
84
|
+
n.push({
|
|
85
|
+
kind: s.kind,
|
|
86
|
+
name: s.name,
|
|
87
|
+
tagName: s.tagName,
|
|
187
88
|
members: void 0,
|
|
188
89
|
removed: !0,
|
|
189
90
|
added: void 0,
|
|
190
|
-
deprecated:
|
|
91
|
+
deprecated: s.deprecated
|
|
191
92
|
});
|
|
192
|
-
if (
|
|
93
|
+
if (n.length !== 0)
|
|
193
94
|
return {
|
|
194
|
-
path:
|
|
195
|
-
declarations:
|
|
95
|
+
path: d.path,
|
|
96
|
+
declarations: n
|
|
196
97
|
};
|
|
197
98
|
}
|
|
198
|
-
function
|
|
199
|
-
const
|
|
200
|
-
for (let
|
|
201
|
-
const
|
|
202
|
-
|
|
99
|
+
function u(a) {
|
|
100
|
+
const d = /* @__PURE__ */ new Map();
|
|
101
|
+
for (let i = 0; i < a.length; ++i) {
|
|
102
|
+
const n = a[i], o = n.tagName ?? n.name ?? n.kind, e = d.get(o);
|
|
103
|
+
A(n.docsTags) || (e === void 0 ? d.set(o, [n]) : e.push(n));
|
|
203
104
|
}
|
|
204
|
-
return
|
|
105
|
+
return d;
|
|
205
106
|
}
|
|
206
|
-
function
|
|
207
|
-
if (
|
|
208
|
-
for (let
|
|
209
|
-
if (
|
|
107
|
+
function A(a) {
|
|
108
|
+
if (a !== void 0) {
|
|
109
|
+
for (let d = 0; d < a.length; ++d)
|
|
110
|
+
if (a[d].name === "internal")
|
|
210
111
|
return !0;
|
|
211
112
|
}
|
|
212
113
|
return !1;
|
|
213
114
|
}
|
|
214
|
-
function
|
|
215
|
-
const
|
|
216
|
-
for (const [e,
|
|
217
|
-
const
|
|
218
|
-
|
|
115
|
+
function v(a, d) {
|
|
116
|
+
const i = u(a ?? []), n = u(d ?? []), o = [];
|
|
117
|
+
for (const [e, s] of n) {
|
|
118
|
+
const t = s.at(-1), f = i.get(e)?.at(-1);
|
|
119
|
+
i.delete(e), f === void 0 ? o.push({ name: e, added: !0 }) : t.deprecated && o.push({ name: e, deprecated: t.deprecated });
|
|
219
120
|
}
|
|
220
|
-
for (const [e] of
|
|
221
|
-
|
|
121
|
+
for (const [e] of i.values())
|
|
122
|
+
o.push({
|
|
222
123
|
name: e.name,
|
|
223
124
|
removed: !0,
|
|
224
125
|
deprecated: e.deprecated
|
|
225
126
|
});
|
|
226
|
-
return
|
|
127
|
+
return o.length ? o : void 0;
|
|
227
128
|
}
|
|
228
|
-
function M(
|
|
229
|
-
const
|
|
230
|
-
for (const [e,
|
|
231
|
-
const
|
|
232
|
-
|
|
233
|
-
const
|
|
129
|
+
function M(a, d) {
|
|
130
|
+
const i = u(a ?? []), n = u(d ?? []), o = [];
|
|
131
|
+
for (const [e, s] of n.entries()) {
|
|
132
|
+
const t = s.at(-1), f = i.get(e);
|
|
133
|
+
i.delete(e);
|
|
134
|
+
const h = (
|
|
234
135
|
// Only mark as deprecated if all overloads are deprecated
|
|
235
|
-
|
|
236
|
-
),
|
|
237
|
-
|
|
238
|
-
kind:
|
|
239
|
-
name:
|
|
240
|
-
deprecated:
|
|
241
|
-
}) :
|
|
242
|
-
kind:
|
|
243
|
-
name:
|
|
136
|
+
s.length === 1 || s.every((g) => g.deprecated !== void 0) ? t.deprecated : void 0
|
|
137
|
+
), p = e === "constructor" || e === "call-signature" ? void 0 : e;
|
|
138
|
+
h ? o.push({
|
|
139
|
+
kind: t.kind,
|
|
140
|
+
name: p,
|
|
141
|
+
deprecated: h
|
|
142
|
+
}) : f === void 0 && o.push({
|
|
143
|
+
kind: t.kind,
|
|
144
|
+
name: p,
|
|
244
145
|
added: !0
|
|
245
146
|
});
|
|
246
147
|
}
|
|
247
|
-
for (const [e, [
|
|
248
|
-
const
|
|
249
|
-
|
|
250
|
-
kind:
|
|
251
|
-
name:
|
|
148
|
+
for (const [e, [s]] of i.entries()) {
|
|
149
|
+
const t = e === "constructor" || e === "call-signature" ? void 0 : e;
|
|
150
|
+
o.push({
|
|
151
|
+
kind: s.kind,
|
|
152
|
+
name: t,
|
|
252
153
|
removed: !0,
|
|
253
|
-
deprecated:
|
|
154
|
+
deprecated: s.deprecated
|
|
254
155
|
});
|
|
255
156
|
}
|
|
256
|
-
return
|
|
157
|
+
return o.length ? o : void 0;
|
|
257
158
|
}
|
|
258
159
|
export {
|
|
259
|
-
|
|
160
|
+
P as diffApiJson
|
|
260
161
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/api-extractor",
|
|
3
|
-
"version": "6.0.0-next.
|
|
3
|
+
"version": "6.0.0-next.6",
|
|
4
4
|
"description": "Documentation engine for WebGIS SDK packages",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
],
|
|
49
49
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@arcgis/node-toolkit": "6.0.0-next.
|
|
52
|
-
"@arcgis/toolkit": "6.0.0-next.
|
|
51
|
+
"@arcgis/node-toolkit": "6.0.0-next.6",
|
|
52
|
+
"@arcgis/toolkit": "6.0.0-next.6",
|
|
53
53
|
"@commander-js/extra-typings": "^15.0.0",
|
|
54
54
|
"commander": "^15.0.0",
|
|
55
55
|
"tslib": "^2.8.1"
|