@wordpress/docgen 1.24.1-next.d6164808d3.0 → 1.26.0

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.
@@ -35,6 +35,24 @@ const formatExamples = ( tags, docs ) => {
35
35
  }
36
36
  };
37
37
 
38
+ const formatSince = ( tags, docs ) => {
39
+ if ( tags && tags.length > 0 ) {
40
+ docs.push( '\n' );
41
+ docs.push( '\n' );
42
+ docs.push( '*Changelog*' );
43
+ docs.push( '\n' );
44
+ docs.push( '\n' );
45
+ docs.push(
46
+ ...tags.map(
47
+ ( tag ) =>
48
+ `\n${ cleanSpaces(
49
+ `\`${ tag.name }\` ${ tag.description }`
50
+ ) }`
51
+ )
52
+ );
53
+ }
54
+ };
55
+
38
56
  const formatDeprecated = ( tags, docs ) => {
39
57
  if ( tags && tags.length > 0 ) {
40
58
  docs.push( '\n' );
@@ -187,6 +205,7 @@ module.exports = (
187
205
  },
188
206
  docs
189
207
  );
208
+ formatSince( getSymbolTagsByName( symbol, 'since' ), docs );
190
209
  docs.push( '\n' );
191
210
  docs.push( '\n' );
192
211
  } );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/docgen",
3
- "version": "1.24.1-next.d6164808d3.0",
3
+ "version": "1.26.0",
4
4
  "description": "Autogenerate public API documentation from exports and JSDoc comments.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -38,5 +38,5 @@
38
38
  "publishConfig": {
39
39
  "access": "public"
40
40
  },
41
- "gitHead": "ba8a396d2f418e53a6c4c50575582f3f3eb11ff7"
41
+ "gitHead": "0d732d4b184adcb28cc83087603e81b764390d4b"
42
42
  }