fix: accept componentIds as an array; run on Node 24 by luvkapur · Pull Request #1 · teambit/bit-git-sync · GitHub
Skip to content

fix: accept componentIds as an array; run on Node 24 - #1

Merged
luvkapur merged 2 commits into
mainfrom
fix/component-ids-array-node24
Oct 16, 2026
Merged

luvkapur merged 2 commits into
mainfrom
fix/component-ids-array-node24

Conversation

@luvkapur

@luvkapur luvkapur commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

What

  • Router: accept client_payload.componentIds as an array as well as a comma-separated string.

    • Before: a dispatch with an array (an API-created webhook, or a hand-rolled dispatch) crashed with TypeError: componentIds.split is not a function. It happened live on teambit/acme-modular-store.
    • An empty array is treated like an absent value, so the filter fails open as before.
  • Runtime: node20 → node24 in action.yml and in the esbuild target. Every run summary carried GitHub's Node.js 20 deprecation notice; it is gone.

  • CI (new): .github/workflows/ci.yml runs on every PR and on main. It installs bit, runs bit test, and verifies that dist/index.js is fresh and loads. The repository had no CI before.

Validation

  • bit test: 75/75 pass, including two new router tests (an array that matches the scope; an empty array that fails open).
  • node scripts/verify-bundle.mjs: the rebuilt dist/index.js loads under Node ESM and routes.
  • The new CI job passes on this PR: 75 tests, bundle verified.

After merge

Move the v1 tag to the merge commit, so every repository on teambit/bit-git-sync@v1 picks the fix up.

luvkapur and others added 2 commits October 16, 2026 11:24
A dispatch whose client_payload.componentIds is an array (an API-created
webhook, or a hand-rolled dispatch) crashed the router with
"componentIds.split is not a function". The router now joins an array
before the cross-scope relevance check; a string routes as before.

Runs on node24, which removes the Node.js 20 deprecation notice from
every run summary.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@luvkapur
luvkapur merged commit 7301acf into main Oct 16, 2026
1 check 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