@arcgis/api-extractor 6.0.0-next.3 → 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.
@@ -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.2";
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 T } from "../chunks/links.js";
2
- function K({ modules: e }, t) {
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 n = 0; n < e.length; ++n) {
8
- const i = e[n], w = i.path.split("/");
9
- let y = w;
10
- const M = w.at(-1);
11
- i.declarations.length === 1 && i.declarations[0].name === M && (y = w.slice(0, -1));
12
- let U = o;
13
- for (const g of y)
14
- U = D(U, g);
15
- for (let g = 0; g < i.declarations.length; ++g) {
16
- const f = i.declarations[g], S = B(f), O = f.removed === !0 ? void 0 : $(t, i.path, f, void 0), C = j(f), N = { label: S, viewUrl: O, change: C }, d = f, h = [];
17
- if (d.members !== void 0)
18
- for (let l = 0; l < d.members.length; ++l) {
19
- const r = d.members[l], m = r.kind === "field" ? "property" : r.kind === "call-signature" ? "call signature" : r.kind, p = v(m, r);
20
- if (p === void 0)
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 s = F(r), a = r.removed === !0 ? void 0 : $(
23
- t,
24
- i.path,
25
- f,
26
- "name" in r ? r.name : `${f.name}Properties`
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
- h.push({ label: s, viewUrl: a, change: p });
47
+ p.push({ label: a, viewUrl: r, change: f });
29
48
  }
30
- if (d.events !== void 0)
31
- for (let l = 0; l < d.events.length; ++l) {
32
- const r = d.events[l], m = v("event", r);
33
- if (m === void 0)
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 p = r.removed === !0 ? void 0 : $(t, i.path, f, `event-${r.name}`);
36
- h.push({ label: `@${r.name}`, viewUrl: p, change: m });
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 d.tagName == "string") {
39
- const l = d.slots, r = d.cssParts, m = d.cssProperties, p = d.cssStates;
40
- if (l !== void 0)
41
- for (let s = 0; s < l.length; ++s) {
42
- const a = l[s], u = v("slot", a);
43
- if (u === void 0)
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 b = a.removed === !0 ? void 0 : $(t, i.path, f, `slot-${a.name}`);
46
- h.push({ label: a.name, viewUrl: b, change: u });
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 (r !== void 0)
49
- for (let s = 0; s < r.length; ++s) {
50
- const a = r[s], u = v("css part", a);
51
- if (u === void 0)
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
- h.push({ label: a.name, viewUrl: void 0, change: u });
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 (m !== void 0)
56
- for (let s = 0; s < m.length; ++s) {
57
- const a = m[s], u = v("css property", a);
58
- if (u === void 0)
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 b = a.removed === !0 ? void 0 : $(t, i.path, f, a.name);
61
- h.push({ label: a.name, viewUrl: b, change: u });
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 (p !== void 0)
64
- for (let s = 0; s < p.length; ++s) {
65
- const a = p[s], u = v("css state", a);
66
- if (u === void 0)
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
- h.push({ label: a.name, viewUrl: void 0, change: u });
102
+ p.push({ label: r.name, viewUrl: void 0, change: m });
69
103
  }
70
104
  }
71
- h.length > 0 ? E(U, N).members.push(...h) : C !== void 0 && U.members.push(N);
105
+ p.length > 0 ? F(U, x).members.push(...p) : D !== void 0 && U.members.push(x);
72
106
  }
73
107
  }
74
- const c = [];
75
- for (const n of o.children.values())
76
- L(n, "", c);
77
- return c.join(`
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 D(e, t) {
81
- const o = e.children.get(t);
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: t, children: /* @__PURE__ */ new Map(), members: [], node: void 0 };
85
- return e.children.set(t, c), c;
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 j(e) {
88
- const t = e.tagName !== void 0 ? "component" : e.kind === "interface" ? "type declaration" : e.kind;
89
- return v(t, e);
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 v(e, t) {
92
- const { added: o, removed: c, deprecated: n } = t;
93
- if (c) {
94
- const i = `**removed** ${e}`;
95
- return typeof n == "string" ? `${i} - deprecated ${x(n)}` : i;
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 `**added** ${e}`;
132
+ return e;
101
133
  }
102
- function B(e) {
103
- const t = e.tagName;
104
- return typeof t == "string" && t.length > 0 ? t : k(e.name) + (e.kind === "function" ? "()" : "");
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 $(e, t, o, c) {
107
- const n = `${e}${t}/`;
108
- return T(n, o.kind === "class" ? void 0 : o.name, c);
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 E(e, t) {
111
- const o = D(e, t.label);
112
- return o.node = t, o;
142
+ function F(e, n) {
143
+ const o = N(e, n.label);
144
+ return o.node = n, o;
113
145
  }
114
- function F(e) {
115
- return e.kind === "constructor" ? "constructor" : e.kind === "call-signature" ? "call signature" : e.kind === "method" ? `${k(e.name)}()` : k(e.name);
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 k(e) {
149
+ function C(e) {
118
150
  return e.replace(/[\\\[\]\(\)]/gu, "\\$&");
119
151
  }
120
- function x(e) {
152
+ function L(e) {
121
153
  return e.split(`
122
154
  `)[0];
123
155
  }
124
- function L(e, t, o) {
125
- if (e.node) {
126
- const n = e.node.viewUrl === void 0 ? e.node.label : `[${e.node.label}](${e.node.viewUrl})`;
127
- e.node.change ? o.push(`${t}- ${n} - ${e.node.change}`) : o.push(`${t}- ${n}`);
128
- } else
129
- o.push(`${t}- ${e.name}/`);
130
- const c = `${t} `;
131
- for (const n of e.members) {
132
- const i = n.viewUrl === void 0 ? n.label : `[${n.label}](${n.viewUrl})`;
133
- n.change ? o.push(`${c}- ${i} - ${n.change}`) : o.push(`${c}- ${i}`);
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
- K as apiDiffToMarkdown
174
+ P as apiDiffToMarkdown
140
175
  };
@@ -1,260 +1,161 @@
1
- function w(r, a) {
2
- if (r.compiler?.name !== "@arcgis/core:manual" || r.compiler?.version !== "4.34")
3
- return;
4
- const o = {};
5
- return r.modules.forEach((t) => {
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
- ), n = [];
106
- for (const d of i.modules) {
107
- const l = e.get(d.path), m = y(l, d, !0);
108
- m !== void 0 && n.push(m), e.delete(d.path);
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 d of e.values()) {
111
- const l = y(
12
+ for (const e of n.values()) {
13
+ const s = b(
112
14
  void 0,
113
- t ? { ...d, path: b(d, t) } : d,
15
+ i ? { ...e, path: D(e, i) } : e,
114
16
  !1
115
17
  );
116
- l !== void 0 && n.push(l);
18
+ s !== void 0 && o.push(s);
117
19
  }
118
- const s = { modules: n };
119
- return o === void 0 ? s : x(s);
20
+ return { modules: o };
120
21
  }
121
- function b(r, a) {
122
- return a ? r.declarations?.[0]?.importPath ?? r.path : r.path;
22
+ function D(a, d) {
23
+ return d ? a.declarations?.[0]?.importPath ?? a.path : a.path;
123
24
  }
124
- function y(r, a, o) {
125
- const i = [], t = h(r?.declarations ?? []), e = h(a.declarations ?? []);
126
- for (const n of e.values()) {
127
- const s = n.at(-1), d = s.tagName, l = d ?? s.name, m = t.get(l);
128
- t.delete(l);
129
- const g = m === void 0 && !o ? !0 : void 0, v = (
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
- n.length === 1 || n.every((c) => c.deprecated !== void 0) ? s.deprecated : void 0
132
- ), k = !v && m === void 0 && o ? !0 : void 0;
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
- i.push({
135
- kind: s.kind,
136
- name: s.name,
137
- tagName: d,
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: v
42
+ deprecated: m
142
43
  });
143
44
  continue;
144
- } else if (!o)
45
+ } else if (!i)
145
46
  continue;
146
- if (d !== void 0) {
147
- const c = s, u = m?.[0], f = {
148
- kind: c.kind,
149
- name: c.name,
150
- tagName: c.tagName,
151
- deprecated: v,
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(u?.members, c.members),
155
- events: p(u?.events, c.events),
156
- slots: p(u?.slots, c.slots),
157
- cssParts: p(u?.cssParts, c.cssParts),
158
- cssProperties: p(u?.cssProperties, c.cssProperties),
159
- cssStates: p(u?.cssStates, c.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
- (v !== void 0 || f.members !== void 0 || f.events !== void 0 || f.slots !== void 0 || f.cssParts !== void 0 || f.cssProperties !== void 0 || f.cssStates !== void 0) && i.push(f);
162
- } else if (s.kind === "class" || s.kind === "interface" || s.kind === "mixin") {
163
- const c = m?.[0], u = {
164
- kind: s.kind,
165
- name: s.name,
166
- deprecated: v,
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(c?.members, s.members),
170
- events: "events" in s ? p(c?.events, s.events) : void 0
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
- (v !== void 0 || u.members !== void 0 || u.events !== void 0) && i.push(u);
173
- } else v !== void 0 && i.push({
174
- kind: s.kind,
175
- name: s.name,
176
- deprecated: v,
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 (o)
182
- for (const [n] of t.values())
183
- i.push({
184
- kind: n.kind,
185
- name: n.name,
186
- tagName: n.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: n.deprecated
91
+ deprecated: s.deprecated
191
92
  });
192
- if (i.length !== 0)
93
+ if (n.length !== 0)
193
94
  return {
194
- path: a.path,
195
- declarations: i
95
+ path: d.path,
96
+ declarations: n
196
97
  };
197
98
  }
198
- function h(r) {
199
- const a = /* @__PURE__ */ new Map();
200
- for (let o = 0; o < r.length; ++o) {
201
- const i = r[o], t = i.tagName ?? i.name ?? i.kind, e = a.get(t);
202
- P(i.docsTags) || (e === void 0 ? a.set(t, [i]) : e.push(i));
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 a;
105
+ return d;
205
106
  }
206
- function P(r) {
207
- if (r !== void 0) {
208
- for (let a = 0; a < r.length; ++a)
209
- if (r[a].name === "internal")
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 p(r, a) {
215
- const o = h(r ?? []), i = h(a ?? []), t = [];
216
- for (const [e, n] of i) {
217
- const s = n.at(-1), d = o.get(e)?.at(-1);
218
- o.delete(e), d === void 0 ? t.push({ name: e, added: !0 }) : s.deprecated && t.push({ name: e, deprecated: s.deprecated });
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 o.values())
221
- t.push({
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 t.length ? t : void 0;
127
+ return o.length ? o : void 0;
227
128
  }
228
- function M(r, a) {
229
- const o = h(r ?? []), i = h(a ?? []), t = [];
230
- for (const [e, n] of i.entries()) {
231
- const s = n.at(-1), d = o.get(e);
232
- o.delete(e);
233
- const l = (
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
- n.length === 1 || n.every((g) => g.deprecated !== void 0) ? s.deprecated : void 0
236
- ), m = e === "constructor" || e === "call-signature" ? void 0 : e;
237
- l ? t.push({
238
- kind: s.kind,
239
- name: m,
240
- deprecated: l
241
- }) : d === void 0 && t.push({
242
- kind: s.kind,
243
- name: m,
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, [n]] of o.entries()) {
248
- const s = e === "constructor" || e === "call-signature" ? void 0 : e;
249
- t.push({
250
- kind: n.kind,
251
- name: s,
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: n.deprecated
154
+ deprecated: s.deprecated
254
155
  });
255
156
  }
256
- return t.length ? t : void 0;
157
+ return o.length ? o : void 0;
257
158
  }
258
159
  export {
259
- I as diffApiJson
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",
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.3",
52
- "@arcgis/toolkit": "6.0.0-next.3",
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"