@aneuhold/core-ts-lib 2.3.1 → 2.3.3

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
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 🔖 [2.3.3] (2025-10-16)
9
+
10
+ ### 🏗️ Changed
11
+
12
+ - Added JSDoc comments to all public types in `src/types` for improved documentation and clarity
13
+ - Updated `JsonWithVersionProperty`, `PackageJson`, `PackageJsonInfo`, and `PackageJsonMap` interfaces with detailed descriptions
14
+
15
+ ## 🔖 [2.3.2] (2025-07-04)
16
+
17
+ ### ✅ Added
18
+
19
+ - New `hasChangesComparedToMain` method in `FileSystemService` to check if directory has changes compared to main branch
20
+ - New `getGitDiffCommand` private method in `FileSystemService` to determine appropriate git diff command
21
+
22
+ ### 🏗️ Changed
23
+
24
+ - Updated `PackageServiceUtils.bumpVersionAndInitializeChangelog` to check for changes before version bumping
25
+ - Package version bump now skips if no changes are detected compared to main branch
26
+
8
27
  ## 🔖 [2.2.14] (2025-06-26)
9
28
 
10
29
  ### 🏗️ Changed
@@ -47,6 +66,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
47
66
 
48
67
  <!-- Link References -->
49
68
 
69
+ [2.3.3]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.3.2...core-ts-lib-v2.3.3
70
+ [2.3.2]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.2.14...core-ts-lib-v2.3.2
50
71
  [2.2.14]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.2.13...core-ts-lib-v2.2.14
51
72
  [2.2.13]: https://github.com/aneuhold/ts-libs/compare/core-ts-lib-v2.2.12...core-ts-lib-v2.2.13
52
73
  [2.2.12]: https://github.com/aneuhold/ts-libs/releases/tag/core-ts-lib-v2.2.12
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Represents a JSON object with a required `version` property.
3
+ * Used as a base interface for package metadata types.
4
+ */
1
5
  export interface JsonWithVersionProperty {
2
6
  version: string;
3
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"JsonWithVersionProperty.d.ts","sourceRoot":"","sources":["../../src/types/JsonWithVersionProperty.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB"}
1
+ {"version":3,"file":"JsonWithVersionProperty.d.ts","sourceRoot":"","sources":["../../src/types/JsonWithVersionProperty.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;CACjB"}
@@ -1,3 +1,7 @@
1
+ /**
2
+ * Represents a JSON object with a required `version` property.
3
+ * Used as a base interface for package metadata types.
4
+ */
1
5
  export interface JsonWithVersionProperty {
2
6
  version: string;
3
7
  }
@@ -1,4 +1,8 @@
1
1
  import { JsonWithVersionProperty } from './JsonWithVersionProperty.js';
2
+ /**
3
+ * Represents the contents of a `package.json` file, including dependencies and metadata.
4
+ * Extends JsonWithVersionProperty for version tracking.
5
+ */
2
6
  export interface PackageJson extends JsonWithVersionProperty {
3
7
  name: string;
4
8
  packageManager?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PackageJson.d.ts","sourceRoot":"","sources":["../../src/types/PackageJson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE,MAAM,WAAW,WAAY,SAAQ,uBAAuB;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C"}
1
+ {"version":3,"file":"PackageJson.d.ts","sourceRoot":"","sources":["../../src/types/PackageJson.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;GAGG;AACH,MAAM,WAAW,WAAY,SAAQ,uBAAuB;IAC1D,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACzC,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/C"}
@@ -1,5 +1,9 @@
1
1
  import { JsonWithVersionProperty } from './JsonWithVersionProperty.js';
2
2
 
3
+ /**
4
+ * Represents the contents of a `package.json` file, including dependencies and metadata.
5
+ * Extends JsonWithVersionProperty for version tracking.
6
+ */
3
7
  export interface PackageJson extends JsonWithVersionProperty {
4
8
  name: string;
5
9
  packageManager?: string;
@@ -1,4 +1,8 @@
1
1
  import { PackageJson } from './PackageJson.js';
2
+ /**
3
+ * Contains the parsed contents and file path of a package.json file.
4
+ * Used for package metadata management.
5
+ */
2
6
  export interface PackageJsonInfo {
3
7
  packageJsonContents: PackageJson;
4
8
  packageJsonPath: string;
@@ -1 +1 @@
1
- {"version":3,"file":"PackageJsonInfo.d.ts","sourceRoot":"","sources":["../../src/types/PackageJsonInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C,MAAM,WAAW,eAAe;IAC9B,mBAAmB,EAAE,WAAW,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;CACzB"}
1
+ {"version":3,"file":"PackageJsonInfo.d.ts","sourceRoot":"","sources":["../../src/types/PackageJsonInfo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAE/C;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,mBAAmB,EAAE,WAAW,CAAC;IACjC,eAAe,EAAE,MAAM,CAAC;CACzB"}
@@ -1,5 +1,9 @@
1
1
  import { PackageJson } from './PackageJson.js';
2
2
 
3
+ /**
4
+ * Contains the parsed contents and file path of a package.json file.
5
+ * Used for package metadata management.
6
+ */
3
7
  export interface PackageJsonInfo {
4
8
  packageJsonContents: PackageJson;
5
9
  packageJsonPath: string;
@@ -1,4 +1,8 @@
1
1
  import { PackageJsonInfo } from './PackageJsonInfo.js';
2
+ /**
3
+ * Maps package names to their corresponding PackageJsonInfo objects.
4
+ * Useful for managing multiple package.json files in a monorepo.
5
+ */
2
6
  export interface PackageJsonMap {
3
7
  [packageName: string]: PackageJsonInfo;
4
8
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PackageJsonMap.d.ts","sourceRoot":"","sources":["../../src/types/PackageJsonMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD,MAAM,WAAW,cAAc;IAC7B,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CAAC;CACxC"}
1
+ {"version":3,"file":"PackageJsonMap.d.ts","sourceRoot":"","sources":["../../src/types/PackageJsonMap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAEvD;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,CAAC,WAAW,EAAE,MAAM,GAAG,eAAe,CAAC;CACxC"}
@@ -1,5 +1,9 @@
1
1
  import { PackageJsonInfo } from './PackageJsonInfo.js';
2
2
 
3
+ /**
4
+ * Maps package names to their corresponding PackageJsonInfo objects.
5
+ * Useful for managing multiple package.json files in a monorepo.
6
+ */
3
7
  export interface PackageJsonMap {
4
8
  [packageName: string]: PackageJsonInfo;
5
9
  }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@aneuhold/core-ts-lib",
3
3
  "author": "Anton G. Neuhold Jr.",
4
4
  "license": "MIT",
5
- "version": "2.3.1",
5
+ "version": "2.3.3",
6
6
  "description": "A core library for all of my TypeScript projects",
7
7
  "packageManager": "pnpm@10.12.1",
8
8
  "type": "module",
@@ -56,4 +56,4 @@
56
56
  "typescript": "~5.8.3",
57
57
  "vitest": "^3.2.4"
58
58
  }
59
- }
59
+ }