Skip to content

feat: accept multiple references in add and remove - #73

Merged
cbrake merged 2 commits into
mainfrom
cbrake/add-ref-space-delimiter
Sep 3, 2026
Merged

feat: accept multiple references in add and remove#73
cbrake merged 2 commits into
mainfrom
cbrake/add-ref-space-delimiter

Conversation

@cbrake

@cbrake cbrake commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

A release configuration could only name one reference per remove entry, so depopulating a board variant meant one line per part. add accepted several references but only when separated by commas, which left the released BOM mixing comma-separated references on added lines with space-separated ones everywhere else. That also meant a reference added by one operation could never be removed by another, since removal matched on space-separated references.

Both operations now take several references in a single ref field, separated by spaces or commas, and added references are stored space-separated to match the rest of the BOM. Added references are also sorted, using the sortRefs helper that was already present but never called.

Existing configurations keep working: a single reference and comma-separated lists are both still accepted.

A release configuration could only name one reference per `remove` entry, so
depopulating a board variant meant one line per part. `add` accepted several
references but only when separated by commas, which left the released BOM
mixing comma-separated references on added lines with space-separated ones
everywhere else. That also meant a reference added by one operation could never
be removed by another, since removal matched on space-separated references.

Both operations now take several references in a single `ref` field, separated
by spaces or commas, and added references are stored space-separated to match
the rest of the BOM. Added references are also sorted, using the sortRefs
helper that was already present but never called.

Existing configurations keep working: a single reference and comma-separated
lists are both still accepted.

Claude-Session: https://claude.ai/code/session_01Y2dKhCQGfRFMwJbrvcDmxJ
@cbrake
cbrake merged commit 7f71bc3 into main Sep 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant