@edcalderon/versioning 1.5.3 → 1.5.4

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,81 +1,26 @@
1
- ## [1.5.3](https://github.com/edcalderon/my-second-brain/compare/v1.5.1...v1.5.3) (2026-03-22)
2
-
3
-
4
- ### Bug Fixes
5
-
6
- * **auth:** add Supabase SQL templates ([274db4f](https://github.com/edcalderon/my-second-brain/commit/274db4fb81682a654dd4ef1d0aeb3653b3e780e7))
7
- * **auth:** correct repository link and bump to v1.0.1 ([280f2d2](https://github.com/edcalderon/my-second-brain/commit/280f2d2f6f99f12199a986adfff4cb5843cc0411))
8
- * **auth:** update lockfile after react-native peer bump and publish v1.1.1 ([8d95c64](https://github.com/edcalderon/my-second-brain/commit/8d95c6473d6bdf12c58c27f8175c5bf15ca42637))
9
- * **auth:** update repository link to direct tree URL, bump to v1.0.2 ([85e2e0c](https://github.com/edcalderon/my-second-brain/commit/85e2e0c5603fae9d863e8cfe0bbb03b94e4f7a31))
10
- * **ci:** use --frozen-lockfile to resolve @ed/auth workspace link from lockfile; remove packages/auth from monorepo versioning scope ([99e38c0](https://github.com/edcalderon/my-second-brain/commit/99e38c03abf6fa4c3ead41b0ad34840ef859a5e0))
11
- * **release:** skip re-tagging on plain release command since tag exists from patch ([e1212e1](https://github.com/edcalderon/my-second-brain/commit/e1212e1fc141b3146e04220aa785565a51b88ae4))
12
- * restore workspace:* for @ed/auth, disable syncDependencies to prevent overwrite on release ([e941714](https://github.com/edcalderon/my-second-brain/commit/e941714c52a3dcecc677919df4d0068245d67a41))
13
- * **versioning:** execute postChangelog hook in release manager and run update-readme ([219e62e](https://github.com/edcalderon/my-second-brain/commit/219e62eb86b234eabf0ab7b306e10b864e2f0f51))
14
-
1
+ ## [1.5.4](https://github.com/edcalderon/my-second-brain/compare/versioning-v1.5.3...versioning-v1.5.4) (2026-03-22)
15
2
 
16
- ### Features
17
-
18
- * **auth:** add canonical Authentik OIDC client helpers ([64fb5c6](https://github.com/edcalderon/my-second-brain/commit/64fb5c6a377614fd820cabaf46ac2aeaa476a5e4)), closes [#13](https://github.com/edcalderon/my-second-brain/issues/13)
19
- * **auth:** add Web3 authentication support (SIWE/SIWS) v1.2.0 ([f585d46](https://github.com/edcalderon/my-second-brain/commit/f585d465d9ee8a7653b098ac550a780e94fc1c2d))
20
- * **auth:** prepare @edcalderon/auth for NPM publishing ([ba57163](https://github.com/edcalderon/my-second-brain/commit/ba5716360d6c454286d9a349bcaf7f762f60fd6d))
21
- * **auth:** Upgrade to fully universal compatibility (Web, Next, React Native) ([5c8aade](https://github.com/edcalderon/my-second-brain/commit/5c8aade273f021e56b19f75bec1ac17e6683e301))
22
- * **versioning:** add workspace env extension ([c3c7131](https://github.com/edcalderon/my-second-brain/commit/c3c71315aabe8cb266a0a1b59a2194169471d19f))
23
- * **versioning:** workspace-scripts extension v1.0.0 — auto-generate dev:all, build:all, per-app scripts ([adb586c](https://github.com/edcalderon/my-second-brain/commit/adb586cc7021fd6b554fe62884a3dc9d24b8c311))
24
3
 
25
4
 
26
5
 
27
6
 
28
-
29
- ## [1.5.2](https://github.com/edcalderon/my-second-brain/compare/v1.5.1...v1.5.2) (2026-03-22)
30
-
7
+ ## [1.5.3](https://github.com/edcalderon/my-second-brain/compare/v1.5.1...v1.5.3) (2026-03-22)
31
8
 
32
9
  ### Bug Fixes
33
10
 
34
- * **auth:** add Supabase SQL templates ([274db4f](https://github.com/edcalderon/my-second-brain/commit/274db4fb81682a654dd4ef1d0aeb3653b3e780e7))
35
- * **auth:** correct repository link and bump to v1.0.1 ([280f2d2](https://github.com/edcalderon/my-second-brain/commit/280f2d2f6f99f12199a986adfff4cb5843cc0411))
36
- * **auth:** update lockfile after react-native peer bump and publish v1.1.1 ([8d95c64](https://github.com/edcalderon/my-second-brain/commit/8d95c6473d6bdf12c58c27f8175c5bf15ca42637))
37
- * **auth:** update repository link to direct tree URL, bump to v1.0.2 ([85e2e0c](https://github.com/edcalderon/my-second-brain/commit/85e2e0c5603fae9d863e8cfe0bbb03b94e4f7a31))
38
- * **ci:** use --frozen-lockfile to resolve @ed/auth workspace link from lockfile; remove packages/auth from monorepo versioning scope ([99e38c0](https://github.com/edcalderon/my-second-brain/commit/99e38c03abf6fa4c3ead41b0ad34840ef859a5e0))
39
- * **release:** skip re-tagging on plain release command since tag exists from patch ([e1212e1](https://github.com/edcalderon/my-second-brain/commit/e1212e1fc141b3146e04220aa785565a51b88ae4))
40
- * restore workspace:* for @ed/auth, disable syncDependencies to prevent overwrite on release ([e941714](https://github.com/edcalderon/my-second-brain/commit/e941714c52a3dcecc677919df4d0068245d67a41))
41
-
11
+ * **versioning:** execute postChangelog hook in release manager and run update-readme ([219e62e](https://github.com/edcalderon/my-second-brain/commit/219e62eb86b234eabf0ab7b306e10b864e2f0f51))
42
12
 
43
13
  ### Features
44
14
 
45
- * **auth:** add canonical Authentik OIDC client helpers ([64fb5c6](https://github.com/edcalderon/my-second-brain/commit/64fb5c6a377614fd820cabaf46ac2aeaa476a5e4)), closes [#13](https://github.com/edcalderon/my-second-brain/issues/13)
46
- * **auth:** add Web3 authentication support (SIWE/SIWS) v1.2.0 ([f585d46](https://github.com/edcalderon/my-second-brain/commit/f585d465d9ee8a7653b098ac550a780e94fc1c2d))
47
- * **auth:** prepare @edcalderon/auth for NPM publishing ([ba57163](https://github.com/edcalderon/my-second-brain/commit/ba5716360d6c454286d9a349bcaf7f762f60fd6d))
48
- * **auth:** Upgrade to fully universal compatibility (Web, Next, React Native) ([5c8aade](https://github.com/edcalderon/my-second-brain/commit/5c8aade273f021e56b19f75bec1ac17e6683e301))
49
15
  * **versioning:** add workspace env extension ([c3c7131](https://github.com/edcalderon/my-second-brain/commit/c3c71315aabe8cb266a0a1b59a2194169471d19f))
50
16
  * **versioning:** workspace-scripts extension v1.0.0 — auto-generate dev:all, build:all, per-app scripts ([adb586c](https://github.com/edcalderon/my-second-brain/commit/adb586cc7021fd6b554fe62884a3dc9d24b8c311))
51
17
 
52
-
53
-
54
-
55
-
56
18
  ## [1.5.2](https://github.com/edcalderon/my-second-brain/compare/v1.5.1...v1.5.2) (2026-03-22)
57
19
 
20
+ (No changes recorded for versioning in v1.5.2)
58
21
 
59
- ### Bug Fixes
60
-
61
- * **auth:** add Supabase SQL templates ([274db4f](https://github.com/edcalderon/my-second-brain/commit/274db4fb81682a654dd4ef1d0aeb3653b3e780e7))
62
- * **auth:** correct repository link and bump to v1.0.1 ([280f2d2](https://github.com/edcalderon/my-second-brain/commit/280f2d2f6f99f12199a986adfff4cb5843cc0411))
63
- * **auth:** update lockfile after react-native peer bump and publish v1.1.1 ([8d95c64](https://github.com/edcalderon/my-second-brain/commit/8d95c6473d6bdf12c58c27f8175c5bf15ca42637))
64
- * **auth:** update repository link to direct tree URL, bump to v1.0.2 ([85e2e0c](https://github.com/edcalderon/my-second-brain/commit/85e2e0c5603fae9d863e8cfe0bbb03b94e4f7a31))
65
- * **ci:** use --frozen-lockfile to resolve @ed/auth workspace link from lockfile; remove packages/auth from monorepo versioning scope ([99e38c0](https://github.com/edcalderon/my-second-brain/commit/99e38c03abf6fa4c3ead41b0ad34840ef859a5e0))
66
- * **release:** skip re-tagging on plain release command since tag exists from patch ([e1212e1](https://github.com/edcalderon/my-second-brain/commit/e1212e1fc141b3146e04220aa785565a51b88ae4))
67
- * restore workspace:* for @ed/auth, disable syncDependencies to prevent overwrite on release ([e941714](https://github.com/edcalderon/my-second-brain/commit/e941714c52a3dcecc677919df4d0068245d67a41))
68
22
 
69
23
 
70
- ### Features
71
-
72
- * **auth:** add canonical Authentik OIDC client helpers ([64fb5c6](https://github.com/edcalderon/my-second-brain/commit/64fb5c6a377614fd820cabaf46ac2aeaa476a5e4)), closes [#13](https://github.com/edcalderon/my-second-brain/issues/13)
73
- * **auth:** add Web3 authentication support (SIWE/SIWS) v1.2.0 ([f585d46](https://github.com/edcalderon/my-second-brain/commit/f585d465d9ee8a7653b098ac550a780e94fc1c2d))
74
- * **auth:** prepare @edcalderon/auth for NPM publishing ([ba57163](https://github.com/edcalderon/my-second-brain/commit/ba5716360d6c454286d9a349bcaf7f762f60fd6d))
75
- * **auth:** Upgrade to fully universal compatibility (Web, Next, React Native) ([5c8aade](https://github.com/edcalderon/my-second-brain/commit/5c8aade273f021e56b19f75bec1ac17e6683e301))
76
- * **versioning:** add workspace env extension ([c3c7131](https://github.com/edcalderon/my-second-brain/commit/c3c71315aabe8cb266a0a1b59a2194169471d19f))
77
- * **versioning:** workspace-scripts extension v1.0.0 — auto-generate dev:all, build:all, per-app scripts ([adb586c](https://github.com/edcalderon/my-second-brain/commit/adb586cc7021fd6b554fe62884a3dc9d24b8c311))
78
-
79
24
 
80
25
 
81
26
 
package/README.md CHANGED
@@ -8,28 +8,9 @@ A comprehensive versioning and changelog management tool designed for monorepos
8
8
 
9
9
  ---
10
10
 
11
- ## 📋 Latest Changes (v1.5.3)
11
+ ## 📋 Latest Changes (v1.5.4)
12
12
 
13
- ### Bug Fixes
14
13
 
15
- * **auth:** add Supabase SQL templates ([274db4f](https://github.com/edcalderon/my-second-brain/commit/274db4fb81682a654dd4ef1d0aeb3653b3e780e7))
16
- * **auth:** correct repository link and bump to v1.0.1 ([280f2d2](https://github.com/edcalderon/my-second-brain/commit/280f2d2f6f99f12199a986adfff4cb5843cc0411))
17
- * **auth:** update lockfile after react-native peer bump and publish v1.1.1 ([8d95c64](https://github.com/edcalderon/my-second-brain/commit/8d95c6473d6bdf12c58c27f8175c5bf15ca42637))
18
- * **auth:** update repository link to direct tree URL, bump to v1.0.2 ([85e2e0c](https://github.com/edcalderon/my-second-brain/commit/85e2e0c5603fae9d863e8cfe0bbb03b94e4f7a31))
19
- * **ci:** use --frozen-lockfile to resolve @ed/auth workspace link from lockfile; remove packages/auth from monorepo versioning scope ([99e38c0](https://github.com/edcalderon/my-second-brain/commit/99e38c03abf6fa4c3ead41b0ad34840ef859a5e0))
20
- * **release:** skip re-tagging on plain release command since tag exists from patch ([e1212e1](https://github.com/edcalderon/my-second-brain/commit/e1212e1fc141b3146e04220aa785565a51b88ae4))
21
- * restore workspace:* for @ed/auth, disable syncDependencies to prevent overwrite on release ([e941714](https://github.com/edcalderon/my-second-brain/commit/e941714c52a3dcecc677919df4d0068245d67a41))
22
- * **versioning:** execute postChangelog hook in release manager and run update-readme ([219e62e](https://github.com/edcalderon/my-second-brain/commit/219e62eb86b234eabf0ab7b306e10b864e2f0f51))
23
-
24
-
25
- ### Features
26
-
27
- * **auth:** add canonical Authentik OIDC client helpers ([64fb5c6](https://github.com/edcalderon/my-second-brain/commit/64fb5c6a377614fd820cabaf46ac2aeaa476a5e4)), closes [#13](https://github.com/edcalderon/my-second-brain/issues/13)
28
- * **auth:** add Web3 authentication support (SIWE/SIWS) v1.2.0 ([f585d46](https://github.com/edcalderon/my-second-brain/commit/f585d465d9ee8a7653b098ac550a780e94fc1c2d))
29
- * **auth:** prepare @edcalderon/auth for NPM publishing ([ba57163](https://github.com/edcalderon/my-second-brain/commit/ba5716360d6c454286d9a349bcaf7f762f60fd6d))
30
- * **auth:** Upgrade to fully universal compatibility (Web, Next, React Native) ([5c8aade](https://github.com/edcalderon/my-second-brain/commit/5c8aade273f021e56b19f75bec1ac17e6683e301))
31
- * **versioning:** add workspace env extension ([c3c7131](https://github.com/edcalderon/my-second-brain/commit/c3c71315aabe8cb266a0a1b59a2194169471d19f))
32
- * **versioning:** workspace-scripts extension v1.0.0 — auto-generate dev:all, build:all, per-app scripts ([adb586c](https://github.com/edcalderon/my-second-brain/commit/adb586cc7021fd6b554fe62884a3dc9d24b8c311))
33
14
 
34
15
  For full version history, see [CHANGELOG.md](./CHANGELOG.md) and [GitHub releases](https://github.com/edcalderon/my-second-brain/releases)
35
16
 
@@ -4,10 +4,12 @@ export interface ChangelogConfig {
4
4
  outfile?: string;
5
5
  releaseCount?: number;
6
6
  sameFile?: boolean;
7
+ tagPrefix?: string;
8
+ path?: string;
7
9
  }
8
10
  export declare class ChangelogManager {
9
11
  private config;
10
- constructor(config?: ChangelogConfig);
12
+ constructor(config?: any);
11
13
  generate(from?: string, to?: string): Promise<string>;
12
14
  private updateExistingChangelog;
13
15
  getLatestRelease(): Promise<string | null>;
package/dist/changelog.js CHANGED
@@ -38,25 +38,47 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
39
  exports.ChangelogManager = void 0;
40
40
  const fs = __importStar(require("fs-extra"));
41
+ const path = __importStar(require("path"));
41
42
  const conventional_changelog_1 = __importDefault(require("conventional-changelog"));
42
43
  class ChangelogManager {
43
44
  constructor(config = {}) {
45
+ const cwd = process.cwd();
46
+ let computedPath = config.changelog?.path || config.path;
47
+ if (!computedPath && fs.existsSync(path.join(cwd, '.git'))) {
48
+ computedPath = '.';
49
+ }
50
+ else if (!computedPath) {
51
+ try {
52
+ const { execSync } = require('child_process');
53
+ const gitRoot = execSync('git rev-parse --show-toplevel', { encoding: 'utf8' }).trim();
54
+ computedPath = path.relative(gitRoot, cwd);
55
+ }
56
+ catch (err) {
57
+ computedPath = '.';
58
+ }
59
+ }
44
60
  this.config = {
45
- preset: 'angular',
46
- infile: 'CHANGELOG.md',
47
- outfile: 'CHANGELOG.md',
61
+ preset: config.changelog?.preset || 'angular',
62
+ infile: config.changelogFile || 'CHANGELOG.md',
63
+ outfile: config.changelogFile || 'CHANGELOG.md',
48
64
  sameFile: true,
65
+ tagPrefix: config.changelog?.tagPrefix || config.tagPrefix,
66
+ path: computedPath,
49
67
  ...config
50
68
  };
51
69
  }
52
70
  async generate(from, to) {
53
71
  return new Promise((resolve, reject) => {
54
72
  let changelog = '';
55
- const stream = (0, conventional_changelog_1.default)({
73
+ const stream = conventional_changelog_1.default({
56
74
  preset: this.config.preset,
57
75
  releaseCount: this.config.releaseCount,
58
76
  ...(from && { from }),
59
- ...(to && { to })
77
+ ...(to && { to }),
78
+ ...(this.config.tagPrefix && { tagPrefix: this.config.tagPrefix })
79
+ }, undefined, // context
80
+ {
81
+ ...(this.config.path && { path: this.config.path })
60
82
  });
61
83
  stream.on('data', (chunk) => {
62
84
  changelog += chunk.toString();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edcalderon/versioning",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "A comprehensive versioning and changelog management tool for monorepos",
5
5
  "main": "dist/index.js",
6
6
  "bin": {
@@ -0,0 +1,7 @@
1
+ const conventionalChangelog = require('conventional-changelog');
2
+ const stream = conventionalChangelog(
3
+ { preset: 'angular', tagPrefix: 'versioning-v' },
4
+ undefined,
5
+ { path: process.cwd() }
6
+ );
7
+ stream.pipe(process.stdout);
@@ -50,7 +50,8 @@
50
50
  },
51
51
  "changelog": {
52
52
  "preset": "angular",
53
- "releaseCount": 0
53
+ "releaseCount": 0,
54
+ "tagPrefix": "versioning-v"
54
55
  },
55
56
  "sync": {
56
57
  "includeRoot": true