@d1g1tal/tsbuild 1.6.4 → 1.6.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
@@ -1,3 +1,33 @@
1
+ ## [1.6.5](https://github.com/D1g1talEntr0py/tsbuild/compare/v1.6.4...v1.6.5) (2026-03-21)
2
+
3
+ ### Code Refactoring
4
+
5
+ * **bundler:** remove unused getModuleExports method (40be90ce03de5ada924ac6ac5d0966cceda7ade1)
6
+ - Remove dead private method getModuleExports from DeclarationBundler class
7
+
8
+
9
+ ### Tests
10
+
11
+ * add json, incremental-build-cache tests and shared declaration fixtures (dadea76ceb2fa487124031bbef2b2532195a60dd)
12
+ - Add comprehensive tests for Json.parse and Json.serialize with primitives, arrays, and objects
13
+ - Add tests for IncrementalBuildCache covering restore, save, invalidate, isBuildInfoFile, and isValid
14
+ - Add tests for corrupt cache file handling, cache invalidation skipping restore, and round-trip save/restore
15
+ - Add shared declaration fixture file with reusable type definitions for bundler and processor tests
16
+ - Remove old build-cache.test.ts in favor of new incremental-build-cache.test.ts
17
+
18
+ * rewrite test suite with parameterized patterns and expanded coverage (dd30d901a7bcffcf743ae7bb91d6309377cdb49d)
19
+ - Rewrite text-formatter tests with it.each matrix patterns for formatting, color, bright, background, and bright background categories
20
+ - Rewrite paths tests with it.each matrix for isPath, add parse and isFile coverage, remove TestHelper boilerplate
21
+ - Rewrite logger tests with it.each matrices for isWrittenFiles/colorize/prettyBytes, remove memfs dependency, add header/separator/step/subSteps/EntryType tests
22
+ - Rewrite decorator-metadata plugin tests removing TestHelper dependency, simplify mock setup
23
+ - Rewrite external-modules plugin tests with it.each for bare specifiers and local paths, add packageName extraction tests
24
+ - Rewrite output plugin tests, add rewriteRelativeSpecifiers unit tests for extension-less and bare specifier handling
25
+ - Simplify process-manager tests by condensing redundant assertions and removing duplicate spy verifications
26
+ - Rewrite tsbuild CLI tests with it.each for --help/-h and --version/-v flags, group into describe blocks
27
+ - Expand type-script-project tests with triggerRebuild (rename, unlink, empty changes), close, handleBuildError (watch mode), resolveConfiguration (browser platform, entry point inference, invalid tsconfig, malformed package.json), getEntryPoints, and transpile (env expansion, esbuild warnings/errors, SWC decorator metadata plugin)
28
+ - Streamline integration tests with condensed fixtures and consistent Logger mock formatting
29
+ - Rewrite constants, declaration-bundler, declaration-processor, decorator, entry-points, errors, file-manager, and files tests with simplified patterns
30
+
1
31
  ## [1.6.4](https://github.com/D1g1talEntr0py/tsbuild/compare/v1.6.3...v1.6.4) (2026-03-21)
2
32
 
3
33
  ### Bug Fixes
@@ -1323,22 +1323,6 @@ var DeclarationBundler = class {
1323
1323
  }
1324
1324
  return { code: outputParts.join(newLine), exports: [...finalTypeExports, ...finalValueExports], allDeclarations };
1325
1325
  }
1326
- /**
1327
- * Extract exported names from a processed source file
1328
- * @param processedSourceFile - The processed source file
1329
- * @returns Array of exported names
1330
- */
1331
- getModuleExports(processedSourceFile) {
1332
- const exports = [];
1333
- for (const statement of processedSourceFile.statements) {
1334
- if (isExportDeclaration2(statement) && statement.exportClause && isNamedExports2(statement.exportClause)) {
1335
- for (const element of statement.exportClause.elements) {
1336
- exports.push(element.name.text);
1337
- }
1338
- }
1339
- }
1340
- return exports;
1341
- }
1342
1326
  /**
1343
1327
  * Main bundling orchestration method
1344
1328
  * @param entryPoint - The entry point file path
@@ -2158,7 +2142,7 @@ var _TypeScriptProject = class _TypeScriptProject {
2158
2142
  }
2159
2143
  async build() {
2160
2144
  const tsLogo = TextFormat.bgBlue(TextFormat.bold(TextFormat.whiteBright(" TS ")));
2161
- Logger.header(`${tsLogo} tsbuild v${"1.6.4"}${this.configuration.compilerOptions.incremental && this.configuration.buildCache?.isValid() ? " [incremental]" : ""}`);
2145
+ Logger.header(`${tsLogo} tsbuild v${"1.6.5"}${this.configuration.compilerOptions.incremental && this.configuration.buildCache?.isValid() ? " [incremental]" : ""}`);
2162
2146
  try {
2163
2147
  const processes = [];
2164
2148
  const filesWereEmitted = await this.typeCheck();
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  TypeScriptProject
3
- } from "./LQR6E3EH.js";
3
+ } from "./SFYLP6W7.js";
4
4
  import "./7FPDHUPW.js";
5
5
  export {
6
6
  TypeScriptProject
package/dist/tsbuild.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  BuildError,
4
4
  TypeScriptProject
5
- } from "./LQR6E3EH.js";
5
+ } from "./SFYLP6W7.js";
6
6
  import "./7FPDHUPW.js";
7
7
 
8
8
  // src/tsbuild.ts
@@ -30,7 +30,7 @@ if (help) {
30
30
  process.exit(0);
31
31
  }
32
32
  if (version) {
33
- console.log("1.6.4");
33
+ console.log("1.6.5");
34
34
  process.exit(0);
35
35
  }
36
36
  var typeScriptOptions = {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@d1g1tal/tsbuild",
3
3
  "author": "D1g1talEntr0py",
4
- "version": "1.6.4",
4
+ "version": "1.6.5",
5
5
  "license": "MIT",
6
6
  "description": "A fast, ESM-only TypeScript build tool combining the TypeScript API for type checking and declaration generation, esbuild for bundling, and SWC for decorator metadata.",
7
7
  "homepage": "https://github.com/D1g1talEntr0py/tsbuild#readme",