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