Commit c963ecb
committed
fix(@angular/cli): remove algoliasearch dependency and support latest docs versions
Eliminate the client library dependency on `algoliasearch` by replacing the Algolia query calls with native `fetch` requests. This removes 15 transitively installed npm packages from the CLI dependencies.
Also, bump `LATEST_KNOWN_DOCS_VERSION` to 22 and add a unit test suite to verify the documentation search and fallback version logic.1 parent 917393a commit c963ecbCopy full SHA for c963ecb
5 files changed
+245-295Lines changed: 245 additions & 295 deletions
File tree
Expand file treeCollapse file tree
Open diff view settings
Filter options
- packages/angular/cli
- src/commands/mcp/tools
Expand file treeCollapse file tree
Open diff view settings
Collapse file
packages/angular/cli/BUILD.bazel
Copy file name to clipboardExpand all lines: packages/angular/cli/BUILD.bazel-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
61 | 61 | |
62 | 62 | |
63 | 63 | |
64 | | - |
65 | 64 | |
66 | 65 | |
67 | 66 | |
|
Collapse file
packages/angular/cli/package.json
Copy file name to clipboardExpand all lines: packages/angular/cli/package.json-1Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
19 | 19 | |
20 | 20 | |
21 | 21 | |
22 | | - |
23 | 22 | |
24 | 23 | |
25 | 24 | |
|
Collapse file
packages/angular/cli/src/commands/mcp/tools/doc-search.ts
Copy file name to clipboardExpand all lines: packages/angular/cli/src/commands/mcp/tools/doc-search.ts+60-51Lines changed: 60 additions & 51 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
6 | 6 | |
7 | 7 | |
8 | 8 | |
9 | | - |
10 | 9 | |
11 | 10 | |
12 | 11 | |
| ||
32 | 31 | |
33 | 32 | |
34 | 33 | |
35 | | - |
| 34 | + |
36 | 35 | |
37 | 36 | |
38 | 37 | |
| ||
99 | 98 | |
100 | 99 | |
101 | 100 | |
102 | | - |
| 101 | + |
103 | 102 | |
104 | | - |
105 | | - |
| 103 | + |
| 104 | + |
106 | 105 | |
107 | 106 | |
108 | 107 | |
109 | 108 | |
110 | 109 | |
111 | | - |
112 | | - |
113 | | - |
114 | | - |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | + |
| 114 | + |
| 115 | + |
| 116 | + |
| 117 | + |
| 118 | + |
| 119 | + |
| 120 | + |
| 121 | + |
| 122 | + |
| 123 | + |
| 124 | + |
| 125 | + |
| 126 | + |
| 127 | + |
| 128 | + |
| 129 | + |
| 130 | + |
| 131 | + |
| 132 | + |
| 133 | + |
| 134 | + |
| 135 | + |
| 136 | + |
| 137 | + |
| 138 | + |
| 139 | + |
| 140 | + |
| 141 | + |
| 142 | + |
115 | 143 | |
116 | 144 | |
117 | 145 | |
| 146 | + |
| 147 | + |
| 148 | + |
| 149 | + |
| 150 | + |
| 151 | + |
118 | 152 | |
119 | 153 | |
120 | 154 | |
121 | 155 | |
122 | | - |
| 156 | + |
| 157 | + |
123 | 158 | |
124 | | - |
125 | | - |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
126 | 163 | |
127 | 164 | |
128 | 165 | |
129 | 166 | |
130 | | - |
| 167 | + |
| 168 | + |
| 169 | + |
| 170 | + |
131 | 171 | |
132 | | - |
| 172 | + |
| 173 | + |
| 174 | + |
| 175 | + |
| 176 | + |
| 177 | + |
| 178 | + |
133 | 179 | |
134 | 180 | |
135 | | - |
136 | | - |
137 | 181 | |
138 | 182 | |
139 | 183 | |
| ||
282 | 326 | |
283 | 327 | |
284 | 328 | |
285 | | - |
286 | | - |
287 | | - |
288 | | - |
289 | | - |
290 | | - |
291 | | - |
292 | | - |
293 | | - |
294 | | - |
295 | | - |
296 | | - |
297 | | - |
298 | | - |
299 | | - |
300 | | - |
301 | | - |
302 | | - |
303 | | - |
304 | | - |
305 | | - |
306 | | - |
307 | | - |
308 | | - |
309 | | - |
310 | | - |
311 | | - |
312 | | - |
313 | | - |
314 | | - |
315 | | - |
316 | | - |
317 | | - |
318 | | - |
319 | | - |
|
Collapse file
packages/angular/cli/src/commands/mcp/tools/doc-search_spec.ts
Copy file name to clipboard+107Lines changed: 107 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
| 1 | + |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | + |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | + |
| 23 | + |
| 24 | + |
| 25 | + |
| 26 | + |
| 27 | + |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | + |
| 51 | + |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | + |
| 57 | + |
| 58 | + |
| 59 | + |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
| 70 | + |
| 71 | + |
| 72 | + |
| 73 | + |
| 74 | + |
| 75 | + |
| 76 | + |
| 77 | + |
| 78 | + |
| 79 | + |
| 80 | + |
| 81 | + |
| 82 | + |
| 83 | + |
| 84 | + |
| 85 | + |
| 86 | + |
| 87 | + |
| 88 | + |
| 89 | + |
| 90 | + |
| 91 | + |
| 92 | + |
| 93 | + |
| 94 | + |
| 95 | + |
| 96 | + |
| 97 | + |
| 98 | + |
| 99 | + |
| 100 | + |
| 101 | + |
| 102 | + |
| 103 | + |
| 104 | + |
| 105 | + |
| 106 | + |
| 107 | + |
0 commit comments