Migrate kafkajs to @confluentinc/kafka-javascript by joebowbeer · Pull Request #1192 · testcontainers/testcontainers-node

Conversation

@joebowbeer

Closes #1191

Migration Guide: https://docs.confluent.io/kafka-clients/javascript/current/migration.html

I used the following commands to update the packages and lock:

nvm use 24
npm install -g npm@latest
npm install
npm audit fix
cd packages/modules/kafka
npm install -D @confluentinc/kafka-javascript
npm uninstall kafkajs
cd ../redpanda
npm install -D @confluentinc/kafka-javascript
npm uninstall kafkajs

Notes:

# npm audit report

jws  =4.0.0 || <3.2.3
Severity: high
auth0/node-jws Improperly Verifies HMAC Signature
https://github.com/advisories/GHSA-869p-cjfg-cm3x
fix available via `npm audit fix`
node_modules/jsonwebtoken/node_modules/jws
node_modules/jws

@netlify

@joebowbeer

This comment was marked as resolved.

@joebowbeer

This comment was marked as resolved.

@joebowbeer

This comment was marked as resolved.

Signed-off-by: Joe Bowbeer <joe.bowbeer@gmail.com>

@joebowbeer

@cristianrgreco I addressed the three SASL_SSL test errors

This is ready to merge.

Btw, one of the unmodified tests fails for me locally in Rancher Desktop on Apple Silicon, as noted

This is because there's no arm64 image for the requested zookeeper image.

@cristianrgreco

Thanks @joebowbeer! I'm a bit swamped at the moment, will look at it soon

@cristianrgreco cristianrgreco changed the title chore: migrate kafkajs to @confluentinc/kafka-javascript Migrate kafkajs to @confluentinc/kafka-javascript

Dec 9, 2025

cristianrgreco

Labels

maintenance

Improvements that do not change functionality

2 participants

@joebowbeer @cristianrgreco