@proteinjs/build 1.9.1 → 2.0.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.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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
+ ## [1.9.2](https://github.com/proteinjs/build/compare/@proteinjs/build@1.9.1...@proteinjs/build@1.9.2) (2026-04-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **versionWorkspace:** skip commit/push when repo has no pending changes ([68b43ba](https://github.com/proteinjs/build/commit/68b43ba9cc0c5cf33f4bf1e224f098b00b08486a))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.9.0](https://github.com/proteinjs/build/compare/@proteinjs/build@1.8.2...@proteinjs/build@1.9.0) (2026-04-13)
7
18
 
8
19
 
@@ -1,3 +1,26 @@
1
1
  export declare function versionWorkspace(): Promise<void>;
2
+ export type CommitBump = 'major' | 'minor' | 'patch';
3
+ /**
4
+ * Classify the net semver bump implied by the set of commits in HEAD that
5
+ * aren't yet on the tracked upstream branch (`git log @{u}..HEAD`).
6
+ *
7
+ * - `major`: any commit declares `BREAKING CHANGE` in subject/body, or
8
+ * uses the conventional-commits `!` marker (`feat!:`,
9
+ * `fix(scope)!:`, etc.).
10
+ * - `minor`: any commit is a `feat` (type, optionally scoped, no `!`).
11
+ * - `patch`: any other commit is present (fix/chore/refactor/docs/…).
12
+ * - `undefined`: no unpushed commits, OR no tracked upstream (the `@{u}`
13
+ * shorthand errors silently — treated as "nothing to ship").
14
+ *
15
+ * Uses `%B` (full body) separated by a null byte so footer-style
16
+ * `BREAKING CHANGE:` lines are visible. Shells out to `git` directly so we
17
+ * don't depend on any repo state beyond a valid upstream ref.
18
+ */
19
+ export declare function classifyUnpushedCommits(dir: string): Promise<CommitBump | undefined>;
20
+ /**
21
+ * Classify a single commit message by conventional-commits rules. Exported
22
+ * so unit tests can exercise it without spawning git.
23
+ */
24
+ export declare function classifyCommitMessage(message: string): CommitBump | undefined;
2
25
  export declare function evictGitLocks(workspacePath: string): Promise<void>;
3
26
  //# sourceMappingURL=versionWorkspace.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"versionWorkspace.d.ts","sourceRoot":"","sources":["../../src/versionWorkspace.ts"],"names":[],"mappings":"AAaA,wBAAsB,gBAAgB,kBAsErC;AAmoBD,wBAAsB,aAAa,CAAC,aAAa,EAAE,MAAM,iBAUxD"}
1
+ {"version":3,"file":"versionWorkspace.d.ts","sourceRoot":"","sources":["../../src/versionWorkspace.ts"],"names":[],"mappings":"AAaA,wBAAsB,gBAAgB,kBAwJrC;AAsxBD,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAcrD;;;;;;;;;;;;;;;GAeG;AACH,wBAAsB,uBAAuB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAmB1F;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAuB7E;AAED,wBAAsB,aAAa,CAAC,aAAa,EAAE,MAAM,iBAUxD"}