Skip to content

fastify@5 + apache-arrow@21 compat (drop multipart)#2

Open
lmeyerov wants to merge 1 commit into
graphistryfrom
fastify5
Open

fastify@5 + apache-arrow@21 compat (drop multipart)#2
lmeyerov wants to merge 1 commit into
graphistryfrom
fastify5

Conversation

@lmeyerov

Copy link
Copy Markdown

Makes the graphistry fastify-arrow fork boot under fastify@5 (+ apache-arrow@21), for the streamgl fastify 3→5 migration (graphistry monorepo S5).

Changes

  • addContentTypeParser('octet-stream', …)'application/octet-stream' — fastify@5 validates a full MIME (ContentType.isValid); the bare token throws FST_ERR_CTP_INVALID_TYPE at .ready().
  • fastify-plugin metadata >= 2.x5.x; deps: fastify-plugin ^5, apache-arrow 21.1.0, dev fastify ^5.
  • DROP multipart (remove @fastify/multipart + the fromMultipart/isMultipart path). Rationale: every fastify-arrow consumer in the graphistry stack (gpu-worker/sessions/gpu-router) is application/octet-stream only; nothing posts multipart/form-data to a fastify-arrow endpoint (the one multipart sender, shapeGraphViaForm, targets forge-etl-python). Also avoids the @fastify/multipart v6→v9 callback-API rewrite (request.multipart()parts()/file()).

Validation

Boots clean under fastify@5.8.5 + arrow@21: register + .ready(); reply.stream + request.recordBatches decorators present.

🤖 Generated with Claude Code

- addContentTypeParser 'octet-stream' -> 'application/octet-stream' (fastify@5 validates a full
  MIME via ContentType.isValid; the bare token throws FST_ERR_CTP_INVALID_TYPE).
- fastify-plugin metadata -> '5.x'; deps: fastify-plugin ^5, apache-arrow 21.1.0, fastify(dev) ^5,
  DROP @fastify/multipart.
- DROP multipart support: every fastify-arrow consumer in the graphistry stack
  (gpu-worker/sessions/gpu-router) is application/octet-stream only; nothing posts
  multipart/form-data to a fastify-arrow endpoint (the one multipart sender, shapeGraphViaForm,
  targets forge-etl-python). Avoids the @fastify/multipart v6->v9 callback-API rewrite.

Boots clean under fastify@5.8.5 + arrow@21 (register + .ready(); reply.stream + request.recordBatches present).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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