Skip to content

fix: consume npm @flowcore/data-pump + @flowcore/sdk (drop frozen JSR copies)#92

Merged
jbiskur merged 1 commit into
mainfrom
fix/migrate-npm-data-pump-sdk
Jun 23, 2026
Merged

fix: consume npm @flowcore/data-pump + @flowcore/sdk (drop frozen JSR copies)#92
jbiskur merged 1 commit into
mainfrom
fix/migrate-npm-data-pump-sdk

Conversation

@jbiskur

@jbiskur jbiskur commented Jun 23, 2026

Copy link
Copy Markdown
Contributor

Why

pathways still imported the pre-Bun-migration JSR packages: jsr:@flowcore/data-pump@0.21.4jsr:@flowcore/sdk@4.2.2. That SDK copy's NotificationClient has an unguarded JSON.parse(data.message) that crashes the host process on a malformed frame and wedges the pump (observed repeatedly in fishfacts-ai-backend).

@flowcore/sdk and @flowcore/data-pump both migrated to Bun/npm; the SDK fix shipped as npm @flowcore/sdk@4.2.4. But pathways never moved off the frozen JSR copies, so the fix couldn't flow through.

Change

Switch the two imports to npm:

  • @flowcore/data-pump: jsr:^0.21.4npm:^0.22.1 (0.22.0 is the bun migration — no API change from 0.21.4; transitively uses npm @flowcore/sdk ^4.2.3)
  • @flowcore/sdk: npm:^4.2.2npm:^4.2.4 (the guarded NotificationClient)

deno.lock now resolves both via npm; jsr:@flowcore/sdk is gone. deno check passes; full suite green except tests/server.test.ts (local port-3001 conflict only — passes on CI).

🤖 Generated with Claude Code

… copies)

pathways still pulled the pre-Bun-migration JSR packages:
jsr:@flowcore/data-pump@0.21.4 → jsr:@flowcore/sdk@4.2.2, whose
NotificationClient has an unguarded JSON.parse that crashes the host process on
a malformed frame (and wedges the pump). Both packages migrated to Bun/npm, and
the SDK fix shipped as npm @flowcore/sdk@4.2.4.

Switch the two imports to the npm packages:
- @flowcore/data-pump: jsr:^0.21.4 → npm:^0.22.1 (0.22.0 = bun migration, no API
  change from 0.21.4; transitively uses npm @flowcore/sdk ^4.2.3)
- @flowcore/sdk: npm:^4.2.2 → npm:^4.2.4 (the guarded NotificationClient)

deno.lock now resolves both to npm; jsr:@flowcore/sdk is gone. deno check passes;
suite green except tests/server.test.ts (local port 3001 conflict only).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@jbiskur jbiskur merged commit 58403d1 into main Jun 23, 2026
1 check passed
@jbiskur jbiskur deleted the fix/migrate-npm-data-pump-sdk branch June 23, 2026 12:36
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