File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,10 @@ function extractAndParseYAML(text) {
34
34
meta . deprecated = arrify ( meta . deprecated ) ;
35
35
}
36
36
37
+ if ( meta . removed ) {
38
+ meta . removed = arrify ( meta . removed ) ;
39
+ }
40
+
37
41
meta . changes = meta . changes || [ ] ;
38
42
39
43
return meta ;
Original file line number Diff line number Diff line change @@ -264,6 +264,7 @@ function parseYAML(text) {
264
264
265
265
const added = { description : '' } ;
266
266
const deprecated = { description : '' } ;
267
+ const removed = { description : '' } ;
267
268
268
269
if ( meta . added ) {
269
270
added . version = meta . added . join ( ', ' ) ;
@@ -276,9 +277,15 @@ function parseYAML(text) {
276
277
`<span>Deprecated since: ${ deprecated . version } </span>` ;
277
278
}
278
279
280
+ if ( meta . removed ) {
281
+ removed . version = meta . removed . join ( ', ' ) ;
282
+ removed . description = `<span>Removed in: ${ removed . version } </span>` ;
283
+ }
284
+
279
285
if ( meta . changes . length > 0 ) {
280
286
if ( added . description ) meta . changes . push ( added ) ;
281
287
if ( deprecated . description ) meta . changes . push ( deprecated ) ;
288
+ if ( removed . description ) meta . changes . push ( removed ) ;
282
289
283
290
meta . changes . sort ( ( a , b ) => versionSort ( a . version , b . version ) ) ;
284
291
@@ -299,7 +306,8 @@ function parseYAML(text) {
299
306
300
307
result += '</table>\n</details>\n' ;
301
308
} else {
302
- result += `${ added . description } ${ deprecated . description } \n` ;
309
+ result += `${ added . description } ${ deprecated . description } ` +
310
+ `${ removed . description } \n` ;
303
311
}
304
312
305
313
if ( meta . napiVersion ) {
You can’t perform that action at this time.
0 commit comments