@next-core/build-config-factory 2.23.2 → 2.23.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/CHANGELOG.md CHANGED
@@ -3,6 +3,33 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.23.5](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.23.4...@next-core/build-config-factory@2.23.5) (2022-07-15)
7
+
8
+ **Note:** Version bump only for package @next-core/build-config-factory
9
+
10
+
11
+
12
+
13
+
14
+ ## [2.23.4](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.23.3...@next-core/build-config-factory@2.23.4) (2022-07-15)
15
+
16
+ **Note:** Version bump only for package @next-core/build-config-factory
17
+
18
+
19
+
20
+
21
+
22
+ ## [2.23.3](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.23.2...@next-core/build-config-factory@2.23.3) (2022-07-14)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **generateBrickDocs:** filter element childern without supported decorators ([a2f8e50](https://github.com/easyops-cn/next-core/commit/a2f8e50425a6a1c6aec4ed2d6c21858d2d4dbea4))
28
+
29
+
30
+
31
+
32
+
6
33
  ## [2.23.2](https://github.com/easyops-cn/next-core/compare/@next-core/build-config-factory@2.23.1...@next-core/build-config-factory@2.23.2) (2022-07-12)
7
34
 
8
35
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@next-core/build-config-factory",
3
- "version": "2.23.2",
3
+ "version": "2.23.5",
4
4
  "description": "build config factory",
5
5
  "homepage": "https://github.com/easyops-cn/next-core/tree/master/packages/build-config-factory",
6
6
  "license": "GPL-3.0",
@@ -18,7 +18,7 @@
18
18
  },
19
19
  "sideEffects": false,
20
20
  "dependencies": {
21
- "@next-core/brick-utils": "^2.37.22",
21
+ "@next-core/brick-utils": "^2.37.24",
22
22
  "@next-core/repo-config": "^0.2.1",
23
23
  "@next-core/typedoc-plugin-filter-inherit": "^1.2.2",
24
24
  "@next-core/webpack-config-factory": "^2.16.6",
@@ -37,5 +37,5 @@
37
37
  "typedoc": "^0.19.2",
38
38
  "typedoc-plugin-no-inherit": "^1.2.2"
39
39
  },
40
- "gitHead": "9bbe86c9ce96b4bf283c7ec3cddafaa6617e2601"
40
+ "gitHead": "335fe135f4142194a2cc57b6720a8e755d9d7dd1"
41
41
  }
@@ -11,7 +11,7 @@ const brickKindMap = {
11
11
  };
12
12
  const extraScanPaths = ["src/interfaces"];
13
13
 
14
- const supportedDecorators = ["property", "event", "method"];
14
+ const supportedDecoratorSet = new Set(["property", "event", "method"]);
15
15
  const methodComments = ["params", "description", "deprecated"];
16
16
  const eventDocComments = ["detail", "description", "deprecated"];
17
17
  const propertyDocComments = [
@@ -225,7 +225,7 @@ function getRealBrickDocCategory(brick) {
225
225
  }
226
226
 
227
227
  const finder = brick.decorators.find((d) =>
228
- supportedDecorators.includes(d.name)
228
+ supportedDecoratorSet.has(d.name)
229
229
  );
230
230
 
231
231
  if (finder) {
@@ -543,6 +543,14 @@ function traverseElementUsedInterfaceIds(
543
543
  traversedTypeSet
544
544
  ) {
545
545
  element.children.forEach((child) => {
546
+ if (
547
+ !child.decorators?.some((decorator) =>
548
+ supportedDecoratorSet.has(decorator.name)
549
+ )
550
+ ) {
551
+ return;
552
+ }
553
+
546
554
  if (child.kindString === "Method") {
547
555
  child.signatures[0].parameters?.map((parameter) =>
548
556
  traverseUsedReferenceIdsByType(