@releasekit/notes 0.2.0-next.0 → 0.2.0-next.1

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.
@@ -556,7 +556,8 @@ async function categorizeEntries(provider, entries, context) {
556
556
  entries[idx] = { ...entries[idx], scope };
557
557
  }
558
558
  }
559
- for (const [category, indices] of Object.entries(categoryMap)) {
559
+ for (const [category, rawIndices] of Object.entries(categoryMap)) {
560
+ const indices = Array.isArray(rawIndices) ? rawIndices : [];
560
561
  const categoryEntries = indices.map((i) => entries[i]).filter((e) => e !== void 0);
561
562
  if (categoryEntries.length > 0) {
562
563
  result.push({ category, entries: categoryEntries });
@@ -564,7 +565,8 @@ async function categorizeEntries(provider, entries, context) {
564
565
  }
565
566
  } else {
566
567
  const categoryMap = parsed;
567
- for (const [category, indices] of Object.entries(categoryMap)) {
568
+ for (const [category, rawIndices] of Object.entries(categoryMap)) {
569
+ const indices = Array.isArray(rawIndices) ? rawIndices : [];
568
570
  const categoryEntries = indices.map((i) => entries[i]).filter((e) => e !== void 0);
569
571
  if (categoryEntries.length > 0) {
570
572
  result.push({ category, entries: categoryEntries });
package/dist/cli.cjs CHANGED
@@ -406,7 +406,8 @@ async function categorizeEntries(provider, entries, context) {
406
406
  entries[idx] = { ...entries[idx], scope };
407
407
  }
408
408
  }
409
- for (const [category, indices] of Object.entries(categoryMap)) {
409
+ for (const [category, rawIndices] of Object.entries(categoryMap)) {
410
+ const indices = Array.isArray(rawIndices) ? rawIndices : [];
410
411
  const categoryEntries = indices.map((i) => entries[i]).filter((e) => e !== void 0);
411
412
  if (categoryEntries.length > 0) {
412
413
  result.push({ category, entries: categoryEntries });
@@ -414,7 +415,8 @@ async function categorizeEntries(provider, entries, context) {
414
415
  }
415
416
  } else {
416
417
  const categoryMap = parsed;
417
- for (const [category, indices] of Object.entries(categoryMap)) {
418
+ for (const [category, rawIndices] of Object.entries(categoryMap)) {
419
+ const indices = Array.isArray(rawIndices) ? rawIndices : [];
418
420
  const categoryEntries = indices.map((i) => entries[i]).filter((e) => e !== void 0);
419
421
  if (categoryEntries.length > 0) {
420
422
  result.push({ category, entries: categoryEntries });
package/dist/cli.js CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  runPipeline,
12
12
  saveAuth,
13
13
  writeMonorepoChangelogs
14
- } from "./chunk-NHDLQLG2.js";
14
+ } from "./chunk-W7DVGQ7D.js";
15
15
 
16
16
  // src/cli.ts
17
17
  import * as fs from "fs";
package/dist/index.cjs CHANGED
@@ -456,7 +456,8 @@ async function categorizeEntries(provider, entries, context) {
456
456
  entries[idx] = { ...entries[idx], scope };
457
457
  }
458
458
  }
459
- for (const [category, indices] of Object.entries(categoryMap)) {
459
+ for (const [category, rawIndices] of Object.entries(categoryMap)) {
460
+ const indices = Array.isArray(rawIndices) ? rawIndices : [];
460
461
  const categoryEntries = indices.map((i) => entries[i]).filter((e) => e !== void 0);
461
462
  if (categoryEntries.length > 0) {
462
463
  result.push({ category, entries: categoryEntries });
@@ -464,7 +465,8 @@ async function categorizeEntries(provider, entries, context) {
464
465
  }
465
466
  } else {
466
467
  const categoryMap = parsed;
467
- for (const [category, indices] of Object.entries(categoryMap)) {
468
+ for (const [category, rawIndices] of Object.entries(categoryMap)) {
469
+ const indices = Array.isArray(rawIndices) ? rawIndices : [];
468
470
  const categoryEntries = indices.map((i) => entries[i]).filter((e) => e !== void 0);
469
471
  if (categoryEntries.length > 0) {
470
472
  result.push({ category, entries: categoryEntries });
package/dist/index.js CHANGED
@@ -24,7 +24,7 @@ import {
24
24
  writeJson,
25
25
  writeMarkdown,
26
26
  writeMonorepoChangelogs
27
- } from "./chunk-NHDLQLG2.js";
27
+ } from "./chunk-W7DVGQ7D.js";
28
28
  export {
29
29
  NotesError as ChangelogCreatorError,
30
30
  ConfigError,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@releasekit/notes",
3
- "version": "0.2.0-next.0",
3
+ "version": "0.2.0-next.1",
4
4
  "description": "Changelog generation with LLM-powered enhancement and flexible templating",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",