@itwin/build-tools 4.8.0-dev.9 → 4.8.1

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
@@ -1,6 +1,55 @@
1
1
  # Change Log - @itwin/build-tools
2
2
 
3
- This log was last generated on Thu, 13 Jun 2024 22:48:58 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 12 Aug 2024 14:05:54 GMT and should not be manually modified.
4
+
5
+ ## 4.8.1
6
+ Mon, 12 Aug 2024 14:05:54 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 4.8.0
11
+ Thu, 08 Aug 2024 16:15:37 GMT
12
+
13
+ ### Updates
14
+
15
+ - extract-api-summary: Improve regex so that includes all exports with improved output.
16
+ - Update ThirdPartyNotices.md
17
+ - Update api-extractor to 7.47.
18
+
19
+ ## 4.7.8
20
+ Wed, 31 Jul 2024 13:38:04 GMT
21
+
22
+ _Version update only_
23
+
24
+ ## 4.7.7
25
+ Fri, 19 Jul 2024 14:52:42 GMT
26
+
27
+ _Version update only_
28
+
29
+ ## 4.7.6
30
+ Fri, 12 Jul 2024 14:42:55 GMT
31
+
32
+ _Version update only_
33
+
34
+ ## 4.7.5
35
+ Thu, 11 Jul 2024 15:24:55 GMT
36
+
37
+ _Version update only_
38
+
39
+ ## 4.7.4
40
+ Mon, 01 Jul 2024 14:06:23 GMT
41
+
42
+ _Version update only_
43
+
44
+ ## 4.7.3
45
+ Thu, 27 Jun 2024 21:09:02 GMT
46
+
47
+ _Version update only_
48
+
49
+ ## 4.7.2
50
+ Sat, 22 Jun 2024 01:09:54 GMT
51
+
52
+ _Version update only_
4
53
 
5
54
  ## 4.7.1
6
55
  Thu, 13 Jun 2024 22:47:31 GMT
@@ -3,17 +3,6 @@
3
3
 
4
4
  The iTwin.js library potentially incorporates work from the following third-party code:
5
5
 
6
- ## [tslint-react-set-state-usage](https://github.com/sutrkiller/tslint-react-set-state-usage)
7
-
8
- The MIT License (MIT)
9
- Copyright (c) 2017 Tobias Kamenicky
10
-
11
- Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
16
-
17
6
  ## [recursive-readdir](https://github.com/jergason/recursive-readdir)
18
7
 
19
8
  The MIT License (MIT)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/build-tools",
3
- "version": "4.8.0-dev.9",
3
+ "version": "4.8.1",
4
4
  "description": "Bentley build tools",
5
5
  "license": "MIT",
6
6
  "repository": {
package/scripts/docs.js CHANGED
@@ -30,7 +30,8 @@ const baseUrlOptions = (argv.baseUrl === undefined) ? [] : ["--baseUrl", argv.ba
30
30
  const includeOptions = (argv.includes === undefined) ? [] : ["--includes", argv.includes];
31
31
 
32
32
  const testExclude = argv.testExcludeGlob ?? "**/*test*/**/*";
33
- let excludeList = `**/node_modules/**/*,${testExclude}`;
33
+ const excludeInternalFolders = "**/internal/**/*"
34
+ let excludeList = `**/node_modules/**/*,${testExclude},${excludeInternalFolders}`;
34
35
  if (argv.excludes !== undefined)
35
36
  excludeList += ",**/" + argv.excludes + "/**/*";
36
37
  if (argv.excludeGlob !== undefined)
@@ -34,7 +34,7 @@ if (undefined !== argv.gatherFullReport)
34
34
 
35
35
  // create output file
36
36
  const apiSignatureFileName = path.parse(argv.apiSignature).name;
37
- const sigFileName = (apiSignatureFileName.split('.'))[0]
37
+ const sigFileName = apiSignatureFileName.substring(0, apiSignatureFileName.lastIndexOf('.'));
38
38
  const sigFilePath = path.join(argv.outDir, `${shouldGenerateFullReport ? "summary" : sigFileName}.exports.csv`);
39
39
 
40
40
  const outputLines = [];
@@ -43,12 +43,12 @@ if (shouldGenerateFullReport) {
43
43
  outputLines.push("");
44
44
  else {
45
45
  outputLines.push("sep=;");
46
- outputLines.push("Package Name;Release Tag;API Item");
46
+ outputLines.push("Package Name;Release Tag;API Item Type;API Item Name");
47
47
  }
48
48
  } else {
49
49
  fs.createFileSync(sigFilePath);
50
50
  outputLines.push("sep=;");
51
- outputLines.push("Release Tag;API Item");
51
+ outputLines.push("Release Tag;API Item Type;API Item Name");
52
52
  }
53
53
 
54
54
  // Open up the signature file
@@ -60,11 +60,12 @@ fs.readFile(argv.apiSignature, function (error, data) {
60
60
  if (index === arr.length - 1 && line === "") { return; }
61
61
 
62
62
  if (previousLines.length !== 0) {
63
- const matches = line.match(/export \S*\s(.*)(\s{|;)/);
64
- if (null !== matches) {
65
- const split = matches[1].split(/(<|extends|implements)/);
66
- for (const previousLine of previousLines)
67
- outputLines.push(shouldGenerateFullReport ? `${sigFileName};${previousLine};${split[0]}` : `${previousLine};${split[0]}`);
63
+ const matches = line.match(/export.+?(class|interface|type|function|const|enum|namespace) (\w+)/);
64
+ if (matches) {
65
+ for (const previousLine of previousLines) {
66
+ const line = `${previousLine};${matches[1]};${matches[2]}`;
67
+ outputLines.push(shouldGenerateFullReport ? `${sigFileName};${line}` : line);
68
+ }
68
69
  }
69
70
 
70
71
  previousLines = [];