@jakubmazanec/changesets-changelog 2.0.14 → 2.0.15-unstable.6aa58b17

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/README.md CHANGED
@@ -19,6 +19,7 @@ npm install @jakubmazanec/changesets-changelog
19
19
  #### Prerequisites
20
20
 
21
21
  - Node.js 24 or later
22
+ - TypeScript 5 or later
22
23
  <!-- prerequisites -->
23
24
 
24
25
  ## Usage
@@ -1,28 +1,6 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var getDependencyReleaseLine_exports = {};
20
- __export(getDependencyReleaseLine_exports, {
21
- getDependencyReleaseLine: () => getDependencyReleaseLine
22
- });
23
- module.exports = __toCommonJS(getDependencyReleaseLine_exports);
24
- var import_get_github_info = require("@changesets/get-github-info");
25
- async function getDependencyReleaseLine(changesets, updatedDependencies, options) {
2
+ import { getInfo } from "@changesets/get-github-info";
3
+ export async function getDependencyReleaseLine(changesets, updatedDependencies, options) {
26
4
  if (!options?.repository) {
27
5
  throw new Error(
28
6
  'Please provide a repository in Changesets changelog setting, e.g.: "changelog": ["@jakubmazanec/changesets-changelog", { "repository": "org/repo" }]'
@@ -34,7 +12,7 @@ async function getDependencyReleaseLine(changesets, updatedDependencies, options
34
12
  const changesetLink = `- Updated dependencies [${(await Promise.all(
35
13
  changesets.map(async (changeset) => {
36
14
  if (changeset.commit) {
37
- let { links } = await (0, import_get_github_info.getInfo)({
15
+ let { links } = await getInfo({
38
16
  repo: String(options.repository),
39
17
  commit: changeset.commit
40
18
  });
@@ -48,8 +26,4 @@ async function getDependencyReleaseLine(changesets, updatedDependencies, options
48
26
  );
49
27
  return [changesetLink, ...updatedDepenenciesLines].join("\n");
50
28
  }
51
- // Annotate the CommonJS export names for ESM import in node:
52
- 0 && (module.exports = {
53
- getDependencyReleaseLine
54
- });
55
29
  //# sourceMappingURL=getDependencyReleaseLine.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../source/getDependencyReleaseLine.ts"],
4
4
  "sourcesContent": ["import {getInfo} from '@changesets/get-github-info';\nimport {type ModCompWithPackage, type NewChangesetWithCommit} from '@changesets/types';\n\nexport async function getDependencyReleaseLine(\n changesets: NewChangesetWithCommit[],\n updatedDependencies: ModCompWithPackage[],\n options?: Record<string, unknown>,\n) {\n if (!options?.repository) {\n throw new Error(\n 'Please provide a repository in Changesets changelog setting, e.g.: \"changelog\": [\"@jakubmazanec/changesets-changelog\", { \"repository\": \"org/repo\" }]',\n );\n }\n\n if (!updatedDependencies.length) {\n return '';\n }\n\n const changesetLink = `- Updated dependencies [${(\n await Promise.all(\n changesets.map(async (changeset) => {\n if (changeset.commit) {\n let {links} = await getInfo({\n repo: String(options.repository),\n commit: changeset.commit,\n });\n\n return links.commit;\n }\n\n return undefined;\n }),\n )\n )\n .filter((_) => _)\n .join(', ')}]:`;\n\n let updatedDepenenciesLines = updatedDependencies.map(\n (dependency) => ` - ${dependency.name}@${dependency.newVersion}`,\n );\n\n return [changesetLink, ...updatedDepenenciesLines].join('\\n');\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAAsB;AAGtB,eAAsB,yBACpB,YACA,qBACA,SACA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,oBAAoB;AAAA,IAChD,CAAC,eAAe,OAAO,WAAW,IAAI,IAAI,WAAW,UAAU;AAAA,EACjE;AAEA,SAAO,CAAC,eAAe,GAAG,uBAAuB,EAAE,KAAK,IAAI;AAC9D;",
6
6
  "names": []
7
7
  }
@@ -1,28 +1,6 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var getReleaseLine_exports = {};
20
- __export(getReleaseLine_exports, {
21
- getReleaseLine: () => getReleaseLine
22
- });
23
- module.exports = __toCommonJS(getReleaseLine_exports);
24
- var import_get_github_info = require("@changesets/get-github-info");
25
- async function getReleaseLine(changeset, type, options) {
2
+ import { getInfo, getInfoFromPullRequest } from "@changesets/get-github-info";
3
+ export async function getReleaseLine(changeset, type, options) {
26
4
  if (!options?.repository) {
27
5
  throw new Error(
28
6
  'Please provide a repository in Changesets changelog setting, e.g.: "changelog": ["@jakubmazanec/changesets-changelog", { "repository": "org/repo" }]'
@@ -52,7 +30,7 @@ async function getReleaseLine(changeset, type, options) {
52
30
  let commitToFetchFrom = commitFromSummary ?? changeset.commit;
53
31
  if (commitToFetchFrom) {
54
32
  try {
55
- let { links } = await (0, import_get_github_info.getInfo)({
33
+ let { links } = await getInfo({
56
34
  repo: String(options.repository),
57
35
  commit: commitToFetchFrom
58
36
  });
@@ -64,7 +42,7 @@ async function getReleaseLine(changeset, type, options) {
64
42
  }
65
43
  }
66
44
  } else {
67
- let { links } = await (0, import_get_github_info.getInfoFromPullRequest)({
45
+ let { links } = await getInfoFromPullRequest({
68
46
  repo: String(options.repository),
69
47
  pull: pullRequestFromSummary
70
48
  });
@@ -91,8 +69,4 @@ async function getReleaseLine(changeset, type, options) {
91
69
  -${prefix ? `${prefix} \u2013` : ""} ${firstLine}
92
70
  ${lines.map((line) => ` ${line}`).join("\n")}`;
93
71
  }
94
- // Annotate the CommonJS export names for ESM import in node:
95
- 0 && (module.exports = {
96
- getReleaseLine
97
- });
98
72
  //# sourceMappingURL=getReleaseLine.js.map
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../source/getReleaseLine.ts"],
4
4
  "sourcesContent": ["import {getInfo, getInfoFromPullRequest} from '@changesets/get-github-info';\nimport {type NewChangeset, type VersionType} from '@changesets/types';\n\nexport type GetReleaseLineChangeset = NewChangeset & {\n commit?: string | undefined;\n};\n\nexport async function getReleaseLine(\n changeset: GetReleaseLineChangeset,\n type: VersionType,\n options?: Record<string, unknown>,\n) {\n if (!options?.repository) {\n throw new Error(\n 'Please provide a repository in Changesets changelog setting, e.g.: \"changelog\": [\"@jakubmazanec/changesets-changelog\", { \"repository\": \"org/repo\" }]',\n );\n }\n\n let pullRequestFromSummary: number | undefined;\n let commitFromSummary: string | undefined;\n let usersFromSummary: string[] = [];\n let replacedChangelog = changeset.summary\n .replaceAll(/^\\s*(?:pr|pull|pull\\s+request):\\s*#?(\\d+)/gim, (_, rawPullRequest) => {\n let pullRequest = Number(rawPullRequest);\n\n if (!Number.isNaN(pullRequest)) {\n pullRequestFromSummary = pullRequest;\n }\n\n return '';\n })\n .replaceAll(/^\\s*commit:\\s*(\\S+)/gim, (_, commit: string) => {\n commitFromSummary = commit;\n\n return '';\n })\n .replaceAll(/^\\s*(?:author|user):\\s*@?(\\S+)/gim, (_, user: string) => {\n usersFromSummary.push(user);\n\n return '';\n })\n .trim();\n let [firstLine, ...lines] = replacedChangelog.split('\\n').map((line) => line.trimEnd());\n let commitLink: string | undefined;\n let pullRequestLink: string | undefined;\n let usersLink: string | undefined;\n\n if (pullRequestFromSummary === undefined) {\n let commitToFetchFrom = commitFromSummary ?? changeset.commit;\n\n if (commitToFetchFrom) {\n try {\n let {links} = await getInfo({\n repo: String(options.repository),\n commit: commitToFetchFrom,\n });\n\n commitLink = links.commit;\n pullRequestLink = links.pull ?? undefined;\n usersLink = links.user ?? undefined;\n } catch {\n commitLink = undefined;\n }\n }\n } else {\n let {links} = await getInfoFromPullRequest({\n repo: String(options.repository),\n pull: pullRequestFromSummary,\n });\n\n if (commitFromSummary) {\n links = {\n ...links,\n commit: `[\\`${commitFromSummary}\\`](https://github.com/${options.repository}/commit/${commitFromSummary})`,\n };\n }\n\n commitLink = links.commit ?? undefined;\n pullRequestLink = links.pull;\n usersLink = links.user ?? undefined;\n }\n\n if (usersFromSummary.length) {\n usersLink = usersFromSummary\n .map((userFromSummary) => `[@${userFromSummary}](https://github.com/${userFromSummary})`)\n .join(', ');\n }\n\n let prefix = [\n pullRequestLink ? ` ${pullRequestLink}` : '',\n commitLink ? ` ${commitLink}` : '',\n usersLink ? ` (${usersLink})` : '',\n ].join('');\n\n return `\\n\\n-${prefix ? `${prefix} \u2013` : ''} ${firstLine}\\n${lines\n .map((line) => ` ${line}`)\n .join('\\n')}`;\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,6BAA8C;AAO9C,eAAsB,eACpB,WACA,MACA,SACA;AACA,MAAI,CAAC,SAAS,YAAY;AACxB,UAAM,IAAI;AAAA,MACR;AAAA,IACF;AAAA,EACF;AAEA,MAAI;AACJ,MAAI;AACJ,MAAI,mBAA6B,CAAC;AAClC,MAAI,oBAAoB,UAAU,QAC/B,WAAW,gDAAgD,CAAC,GAAG,mBAAmB;AACjF,QAAI,cAAc,OAAO,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AAA,UAC1B,MAAM,OAAO,QAAQ,UAAU;AAAA,UAC/B,QAAQ;AAAA,QACV,CAAC;AAED,qBAAa,MAAM;AACnB,0BAAkB,MAAM,QAAQ;AAChC,oBAAY,MAAM,QAAQ;AAAA,MAC5B,QAAQ;AACN,qBAAa;AAAA,MACf;AAAA,IACF;AAAA,EACF,OAAO;AACL,QAAI,EAAC,MAAK,IAAI,MAAM,uBAAuB;AAAA,MACzC,MAAM,OAAO,QAAQ,UAAU;AAAA,MAC/B,MAAM;AAAA,IACR,CAAC;AAED,QAAI,mBAAmB;AACrB,cAAQ;AAAA,QACN,GAAG;AAAA,QACH,QAAQ,MAAM,iBAAiB,0BAA0B,QAAQ,UAAU,WAAW,iBAAiB;AAAA,MACzG;AAAA,IACF;AAEA,iBAAa,MAAM,UAAU;AAC7B,sBAAkB,MAAM;AACxB,gBAAY,MAAM,QAAQ;AAAA,EAC5B;AAEA,MAAI,iBAAiB,QAAQ;AAC3B,gBAAY,iBACT,IAAI,CAAC,oBAAoB,KAAK,eAAe,wBAAwB,eAAe,GAAG,EACvF,KAAK,IAAI;AAAA,EACd;AAEA,MAAI,SAAS;AAAA,IACX,kBAAkB,IAAI,eAAe,KAAK;AAAA,IAC1C,aAAa,IAAI,UAAU,KAAK;AAAA,IAChC,YAAY,KAAK,SAAS,MAAM;AAAA,EAClC,EAAE,KAAK,EAAE;AAET,SAAO;AAAA;AAAA,GAAQ,SAAS,GAAG,MAAM,YAAO,EAAE,IAAI,SAAS;AAAA,EAAK,MACzD,IAAI,CAAC,SAAS,KAAK,IAAI,EAAE,EACzB,KAAK,IAAI,CAAC;AACf;",
6
6
  "names": []
7
7
  }
package/build/main.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './getDependencyReleaseLine';
2
- export * from './getReleaseLine';
1
+ export * from './getDependencyReleaseLine.js';
2
+ export * from './getReleaseLine.js';
package/build/main.js CHANGED
@@ -1,27 +1,6 @@
1
1
  "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __copyProps = (to, from, except, desc) => {
7
- if (from && typeof from === "object" || typeof from === "function") {
8
- for (let key of __getOwnPropNames(from))
9
- if (!__hasOwnProp.call(to, key) && key !== except)
10
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
11
- }
12
- return to;
13
- };
14
- var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
15
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
16
- var main_exports = {};
17
- module.exports = __toCommonJS(main_exports);
18
- var import_dotenv = require("dotenv");
19
- __reExport(main_exports, require("./getDependencyReleaseLine"), module.exports);
20
- __reExport(main_exports, require("./getReleaseLine"), module.exports);
21
- (0, import_dotenv.config)();
22
- // Annotate the CommonJS export names for ESM import in node:
23
- 0 && (module.exports = {
24
- ...require("./getDependencyReleaseLine"),
25
- ...require("./getReleaseLine")
26
- });
2
+ import { config } from "dotenv";
3
+ config();
4
+ export * from "./getDependencyReleaseLine.js";
5
+ export * from "./getReleaseLine.js";
27
6
  //# sourceMappingURL=main.js.map
package/build/main.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../source/main.ts"],
4
- "sourcesContent": ["import {config} from 'dotenv';\n\nconfig();\n\nexport * from './getDependencyReleaseLine';\nexport * from './getReleaseLine';\n"],
5
- "mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,oBAAqB;AAIrB,yBAAc,uCAJd;AAKA,yBAAc,6BALd;AAAA,IAEA,sBAAO;",
4
+ "sourcesContent": ["import {config} from 'dotenv';\n\nconfig();\n\nexport * from './getDependencyReleaseLine.js';\nexport * from './getReleaseLine.js';\n"],
5
+ "mappings": ";AAAA,SAAQ,cAAa;AAErB,OAAO;AAEP,cAAc;AACd,cAAc;",
6
6
  "names": []
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jakubmazanec/changesets-changelog",
3
- "version": "2.0.14",
3
+ "version": "2.0.15-unstable.6aa58b17",
4
4
  "description": "Changelog for projects using Changesets.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -10,15 +10,17 @@
10
10
  "license": "MIT",
11
11
  "author": "Jakub Mazanec <jakub@mazanec.dev>",
12
12
  "sideEffects": false,
13
- "type": "commonjs",
13
+ "type": "module",
14
14
  "exports": "./build/main.js",
15
15
  "files": [
16
16
  "build",
17
17
  "source"
18
18
  ],
19
19
  "scripts": {
20
- "build": "del-cli build tsconfig.tsbuildinfo && esbuild \"source/**/*\" --platform=node --target=node24.3 --format=cjs --outdir=build --sourcemap && tsc",
20
+ "build": "del-cli build tsconfig.tsbuildinfo && esbuild \"source/**/*\" --platform=node --target=node24.3 --outdir=build --sourcemap && tsc",
21
21
  "clean": "del-cli coverage build *.tsbuildinfo",
22
+ "develop": "concurrently \"esbuild \"source/**/*\" --platform=node --target=node24.3 --outdir=build --sourcemap --watch\" \"tsc --watch\"",
23
+ "document": "del-cli docs && typedoc --options typedoc.config.cjs",
22
24
  "format": "prettier . --write --ignore-unknown",
23
25
  "lint": "eslint .",
24
26
  "test": "del-cli coverage && vitest run --coverage --passWithNoTests",
@@ -31,16 +33,19 @@
31
33
  "devDependencies": {
32
34
  "@changesets/parse": "^0.4.1",
33
35
  "@changesets/types": "^6.1.0",
34
- "@jakubmazanec/eslint-config": "^4.1.0",
36
+ "@jakubmazanec/eslint-config": "4.1.10-unstable.6aa58b17",
35
37
  "@types/lodash": "^4.17.21",
36
38
  "@types/node": "^24.0.4",
37
39
  "@vitest/coverage-v8": "^3.2.4",
40
+ "concurrently": "^9.2.1",
38
41
  "del-cli": "^6.0.0",
39
42
  "esbuild": "^0.27.0",
40
43
  "eslint": "^9.33.0",
41
44
  "lodash": "^4.17.21",
42
45
  "prettier": "^3.6.2",
43
46
  "prettier-plugin-packagejson": "^2.5.19",
47
+ "typedoc": "^0.28.14",
48
+ "typedoc-plugin-markdown": "^4.9.0",
44
49
  "typescript": "^5.9.3",
45
50
  "vitest": "^3.2.4"
46
51
  },
package/source/main.ts CHANGED
@@ -2,5 +2,5 @@ import {config} from 'dotenv';
2
2
 
3
3
  config();
4
4
 
5
- export * from './getDependencyReleaseLine';
6
- export * from './getReleaseLine';
5
+ export * from './getDependencyReleaseLine.js';
6
+ export * from './getReleaseLine.js';