@arcgis/api-extractor 6.0.0-next.4 → 6.0.0-next.5
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 +1 -1
- package/dist/diff/apiDiffToMarkdown.js +135 -100
- package/dist/diff/diffApiJson.js +106 -205
- package/package.json +3 -3
|
@@ -6454,7 +6454,7 @@ class Ks {
|
|
|
6454
6454
|
return n;
|
|
6455
6455
|
}
|
|
6456
6456
|
}
|
|
6457
|
-
const zs = import.meta.url.includes("node_modules") ? Zt.version : "6.0.0-next.
|
|
6457
|
+
const zs = import.meta.url.includes("node_modules") ? Zt.version : "6.0.0-next.4";
|
|
6458
6458
|
class ga {
|
|
6459
6459
|
/**
|
|
6460
6460
|
* @public
|
|
@@ -1,140 +1,175 @@
|
|
|
1
|
-
import { b as
|
|
2
|
-
function
|
|
3
|
-
const o =
|
|
1
|
+
import { b as O } from "../chunks/links.js";
|
|
2
|
+
function P(e, n) {
|
|
3
|
+
const o = [
|
|
4
|
+
["Additions", (t) => t.added === !0 && !t.deprecated && !t.removed],
|
|
5
|
+
["Deprecations", (t) => !!t.deprecated && !t.removed],
|
|
6
|
+
["Removals", (t) => t.removed === !0]
|
|
7
|
+
], c = [];
|
|
8
|
+
for (const [t, i] of o) {
|
|
9
|
+
const l = T(e, n, i);
|
|
10
|
+
l !== "" && c.push(`### ${t}
|
|
11
|
+
|
|
12
|
+
${l}`);
|
|
13
|
+
}
|
|
14
|
+
return c.join(`
|
|
15
|
+
|
|
16
|
+
`);
|
|
17
|
+
}
|
|
18
|
+
function T({ modules: e }, n, o) {
|
|
19
|
+
const c = {
|
|
4
20
|
children: /* @__PURE__ */ new Map(),
|
|
5
21
|
members: []
|
|
6
22
|
};
|
|
7
|
-
for (let
|
|
8
|
-
const
|
|
9
|
-
let y =
|
|
10
|
-
const M =
|
|
11
|
-
|
|
12
|
-
let U =
|
|
13
|
-
for (const
|
|
14
|
-
U =
|
|
15
|
-
for (let
|
|
16
|
-
const
|
|
17
|
-
if (
|
|
18
|
-
for (let
|
|
19
|
-
const
|
|
20
|
-
if (
|
|
23
|
+
for (let i = 0; i < e.length; ++i) {
|
|
24
|
+
const l = e[i], k = l.path.split("/");
|
|
25
|
+
let y = k;
|
|
26
|
+
const M = k.at(-1);
|
|
27
|
+
l.declarations.length === 1 && l.declarations[0].name === M && (y = k.slice(0, -1));
|
|
28
|
+
let U = c;
|
|
29
|
+
for (const b of y)
|
|
30
|
+
U = N(U, b);
|
|
31
|
+
for (let b = 0; b < l.declarations.length; ++b) {
|
|
32
|
+
const u = l.declarations[b], j = E(u), B = u.removed === !0 ? void 0 : w(n, l.path, u, void 0), D = o(u) ? A(u) : void 0, x = { label: j, viewUrl: B, change: D }, h = u, p = [];
|
|
33
|
+
if (h.members !== void 0)
|
|
34
|
+
for (let d = 0; d < h.members.length; ++d) {
|
|
35
|
+
const s = h.members[d];
|
|
36
|
+
if (!o(s))
|
|
21
37
|
continue;
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
38
|
+
const v = s.kind === "field" ? "property" : s.kind === "call-signature" ? "call signature" : s.kind, f = g(v, s);
|
|
39
|
+
if (f === void 0)
|
|
40
|
+
continue;
|
|
41
|
+
const a = I(s), r = s.removed === !0 ? void 0 : w(
|
|
42
|
+
n,
|
|
43
|
+
l.path,
|
|
44
|
+
u,
|
|
45
|
+
"name" in s ? s.name : `${u.name}Properties`
|
|
27
46
|
);
|
|
28
|
-
|
|
47
|
+
p.push({ label: a, viewUrl: r, change: f });
|
|
29
48
|
}
|
|
30
|
-
if (
|
|
31
|
-
for (let
|
|
32
|
-
const
|
|
33
|
-
if (
|
|
49
|
+
if (h.events !== void 0)
|
|
50
|
+
for (let d = 0; d < h.events.length; ++d) {
|
|
51
|
+
const s = h.events[d];
|
|
52
|
+
if (!o(s))
|
|
53
|
+
continue;
|
|
54
|
+
const v = g("event", s);
|
|
55
|
+
if (v === void 0)
|
|
34
56
|
continue;
|
|
35
|
-
const
|
|
36
|
-
|
|
57
|
+
const f = s.removed === !0 ? void 0 : w(n, l.path, u, `event-${s.name}`);
|
|
58
|
+
p.push({ label: `@${s.name}`, viewUrl: f, change: v });
|
|
37
59
|
}
|
|
38
|
-
if (typeof
|
|
39
|
-
const
|
|
40
|
-
if (
|
|
41
|
-
for (let
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
60
|
+
if (typeof h.tagName == "string") {
|
|
61
|
+
const d = h.slots, s = h.cssParts, v = h.cssProperties, f = h.cssStates;
|
|
62
|
+
if (d !== void 0)
|
|
63
|
+
for (let a = 0; a < d.length; ++a) {
|
|
64
|
+
const r = d[a];
|
|
65
|
+
if (!o(r))
|
|
66
|
+
continue;
|
|
67
|
+
const m = g("slot", r);
|
|
68
|
+
if (m === void 0)
|
|
44
69
|
continue;
|
|
45
|
-
const
|
|
46
|
-
|
|
70
|
+
const $ = r.removed === !0 ? void 0 : w(n, l.path, u, `slot-${r.name}`);
|
|
71
|
+
p.push({ label: r.name, viewUrl: $, change: m });
|
|
47
72
|
}
|
|
48
|
-
if (
|
|
49
|
-
for (let
|
|
50
|
-
const
|
|
51
|
-
if (
|
|
73
|
+
if (s !== void 0)
|
|
74
|
+
for (let a = 0; a < s.length; ++a) {
|
|
75
|
+
const r = s[a];
|
|
76
|
+
if (!o(r))
|
|
52
77
|
continue;
|
|
53
|
-
|
|
78
|
+
const m = g("css part", r);
|
|
79
|
+
if (m === void 0)
|
|
80
|
+
continue;
|
|
81
|
+
p.push({ label: r.name, viewUrl: void 0, change: m });
|
|
54
82
|
}
|
|
55
|
-
if (
|
|
56
|
-
for (let
|
|
57
|
-
const
|
|
58
|
-
if (
|
|
83
|
+
if (v !== void 0)
|
|
84
|
+
for (let a = 0; a < v.length; ++a) {
|
|
85
|
+
const r = v[a];
|
|
86
|
+
if (!o(r))
|
|
87
|
+
continue;
|
|
88
|
+
const m = g("css property", r);
|
|
89
|
+
if (m === void 0)
|
|
59
90
|
continue;
|
|
60
|
-
const
|
|
61
|
-
|
|
91
|
+
const $ = r.removed === !0 ? void 0 : w(n, l.path, u, r.name);
|
|
92
|
+
p.push({ label: r.name, viewUrl: $, change: m });
|
|
62
93
|
}
|
|
63
|
-
if (
|
|
64
|
-
for (let
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
94
|
+
if (f !== void 0)
|
|
95
|
+
for (let a = 0; a < f.length; ++a) {
|
|
96
|
+
const r = f[a];
|
|
97
|
+
if (!o(r))
|
|
98
|
+
continue;
|
|
99
|
+
const m = g("css state", r);
|
|
100
|
+
if (m === void 0)
|
|
67
101
|
continue;
|
|
68
|
-
|
|
102
|
+
p.push({ label: r.name, viewUrl: void 0, change: m });
|
|
69
103
|
}
|
|
70
104
|
}
|
|
71
|
-
|
|
105
|
+
p.length > 0 ? F(U, x).members.push(...p) : D !== void 0 && U.members.push(x);
|
|
72
106
|
}
|
|
73
107
|
}
|
|
74
|
-
const
|
|
75
|
-
for (const
|
|
76
|
-
|
|
77
|
-
return
|
|
108
|
+
const t = [];
|
|
109
|
+
for (const i of c.children.values())
|
|
110
|
+
S(i, "", t);
|
|
111
|
+
return t.join(`
|
|
78
112
|
`);
|
|
79
113
|
}
|
|
80
|
-
function
|
|
81
|
-
const o = e.children.get(
|
|
114
|
+
function N(e, n) {
|
|
115
|
+
const o = e.children.get(n);
|
|
82
116
|
if (o !== void 0)
|
|
83
117
|
return o;
|
|
84
|
-
const c = { name:
|
|
85
|
-
return e.children.set(
|
|
118
|
+
const c = { name: n, children: /* @__PURE__ */ new Map(), members: [], node: void 0 };
|
|
119
|
+
return e.children.set(n, c), c;
|
|
86
120
|
}
|
|
87
|
-
function
|
|
88
|
-
const
|
|
89
|
-
return
|
|
121
|
+
function A(e) {
|
|
122
|
+
const n = e.tagName !== void 0 ? "component" : e.kind === "interface" ? "type declaration" : e.kind;
|
|
123
|
+
return g(n, e);
|
|
90
124
|
}
|
|
91
|
-
function
|
|
92
|
-
const { added: o, removed: c, deprecated:
|
|
93
|
-
if (c)
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
if (n)
|
|
98
|
-
return typeof n == "string" ? `**deprecated** ${e} ${x(n)}` : `**deprecated** ${e}`;
|
|
125
|
+
function g(e, n) {
|
|
126
|
+
const { added: o, removed: c, deprecated: t } = n;
|
|
127
|
+
if (c)
|
|
128
|
+
return typeof t == "string" ? `${e} - deprecated ${L(t)}` : e;
|
|
129
|
+
if (t)
|
|
130
|
+
return typeof t == "string" ? `**deprecated** ${e} ${L(t)}` : `**deprecated** ${e}`;
|
|
99
131
|
if (o)
|
|
100
|
-
return
|
|
132
|
+
return e;
|
|
101
133
|
}
|
|
102
|
-
function
|
|
103
|
-
const
|
|
104
|
-
return typeof
|
|
134
|
+
function E(e) {
|
|
135
|
+
const n = e.tagName;
|
|
136
|
+
return typeof n == "string" && n.length > 0 ? n : C(e.name) + (e.kind === "function" ? "()" : "");
|
|
105
137
|
}
|
|
106
|
-
function
|
|
107
|
-
const
|
|
108
|
-
return
|
|
138
|
+
function w(e, n, o, c) {
|
|
139
|
+
const t = `${e}${n}/`;
|
|
140
|
+
return O(t, o.kind === "class" ? void 0 : o.name, c);
|
|
109
141
|
}
|
|
110
|
-
function
|
|
111
|
-
const o =
|
|
112
|
-
return o.node =
|
|
142
|
+
function F(e, n) {
|
|
143
|
+
const o = N(e, n.label);
|
|
144
|
+
return o.node = n, o;
|
|
113
145
|
}
|
|
114
|
-
function
|
|
115
|
-
return e.kind === "constructor" ? "constructor" : e.kind === "call-signature" ? "call signature" : e.kind === "method" ? `${
|
|
146
|
+
function I(e) {
|
|
147
|
+
return e.kind === "constructor" ? "constructor" : e.kind === "call-signature" ? "call signature" : e.kind === "method" ? `${C(e.name)}()` : C(e.name);
|
|
116
148
|
}
|
|
117
|
-
function
|
|
149
|
+
function C(e) {
|
|
118
150
|
return e.replace(/[\\\[\]\(\)]/gu, "\\$&");
|
|
119
151
|
}
|
|
120
|
-
function
|
|
152
|
+
function L(e) {
|
|
121
153
|
return e.split(`
|
|
122
154
|
`)[0];
|
|
123
155
|
}
|
|
124
|
-
function
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
const
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
156
|
+
function S(e, n, o) {
|
|
157
|
+
const c = `${n} `, t = [];
|
|
158
|
+
for (const i of e.members) {
|
|
159
|
+
const l = i.viewUrl === void 0 ? i.label : `[${i.label}](${i.viewUrl})`;
|
|
160
|
+
t.push(`${c}- ${l} - ${i.change}`);
|
|
161
|
+
}
|
|
162
|
+
for (const i of e.children.values())
|
|
163
|
+
S(i, c, t);
|
|
164
|
+
if (!(t.length === 0 && e.node?.change === void 0)) {
|
|
165
|
+
if (e.node) {
|
|
166
|
+
const i = e.node.viewUrl === void 0 ? e.node.label : `[${e.node.label}](${e.node.viewUrl})`;
|
|
167
|
+
e.node.change ? o.push(`${n}- ${i} - ${e.node.change}`) : o.push(`${n}- ${i}`);
|
|
168
|
+
} else
|
|
169
|
+
o.push(`${n}- ${e.name}/`);
|
|
170
|
+
o.push(...t);
|
|
134
171
|
}
|
|
135
|
-
for (const n of e.children.values())
|
|
136
|
-
L(n, c, o);
|
|
137
172
|
}
|
|
138
173
|
export {
|
|
139
|
-
|
|
174
|
+
P as apiDiffToMarkdown
|
|
140
175
|
};
|
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.5",
|
|
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.5",
|
|
52
|
+
"@arcgis/toolkit": "6.0.0-next.5",
|
|
53
53
|
"@commander-js/extra-typings": "^15.0.0",
|
|
54
54
|
"commander": "^15.0.0",
|
|
55
55
|
"tslib": "^2.8.1"
|