Repository navigation
Releases
Releases · testcontainers/testcontainers-node
v12.2.2
Changes
🐛 Bug Fixes
- Add the missing builder methods to the TestContainer interface @Pushkar236 (#1655)
- Fix Redis and Valkey initial data import when the container runs as a non-root user @Mario-Mohar (#1626)
- Fix Dockerfile FROM parsing for --platform, tabs, line continuations and ARG defaults @Pushkar236 (#1646)
- Support Docker credential helpers that are .cmd scripts on Windows @b84330808 (#1638)
- Fix ScyllaDB failing to start when several containers run at once @cristianrgreco (#1645)
- Fix crash when a container connects to an exposed host port with nothing listening @cristianrgreco (#1617)
- Fix duplicate environment entries when withEnvironment sets a key twice @kenny-ish (#1614)
- Keep a custom project name when withNoRecreate is used @kenny-ish (#1610)
- Fix Kafka container starting before the broker is ready @cristianrgreco (#1605)
🧹 Maintenance
- Have review-pr retitle PRs, approve without a body and resolve addressed threads @cristianrgreco (#1653)
- Offer to approve a PR when a review leaves nothing to raise @cristianrgreco (#1649)
- Make agent PR instructions work for outside contributors @cristianrgreco (#1647)
- Test Elasticsearch, OpenSearch and MongoDB against every supported major version @cristianrgreco (#1593)
- Test Cassandra, Couchbase and KurrentDB against every supported major version @cristianrgreco (#1596)
- Fix Vite native config loader warning in Vitest runs @cristianrgreco (#1604)
- Document testing modules against every supported image version @cristianrgreco (#1587)
- Stop testing Kafka against end-of-life Confluent Platform 7.5 @cristianrgreco (#1592)
- Test Valkey and Redis against every supported major version @cristianrgreco (#1589)
- Test MariaDB, MySQL, PostgreSQL and CockroachDB against every supported major version @cristianrgreco (#1591)
- Test Neo4j, ScyllaDB and SQL Server against every supported major version @cristianrgreco (#1595)
- Stop agents documenting helper exports and implementation details @cristianrgreco (#1603)
- Enforce complexity, shadowing, block statement, useless else and readonly rules with Biome @cristianrgreco (#1590)
- Ignore Vitest teardown errors from late container logs @cristianrgreco (#1598)
- Enforce function length, nullish coalescing and no-console with Biome @cristianrgreco (#1585)
📦 Dependency Updates
- Bump the dependencies group across 1 directory with 24 updates @dependabot[bot] (#1660)
- Update supported image versions @cristianrgreco (#1651)
- Bump python from 3.14 to 3.15 in the dependencies group @dependabot[bot] (#1656)
- Apply npm audit fixes @cristianrgreco (#1650)
- Bump the dependencies group across 18 directories with 19 updates @dependabot[bot] (#1658)
- Bump mkdocs-material from 9.8.0 to 9.8.1 in the dependencies group @dependabot[bot] (#1657)
- Bump mongoose from 9.11.2 to 9.11.4 @dependabot[bot] (#1639)
- Bump fast-xml-parser from 5.7.3 to 5.12.0 @dependabot[bot] (#1640)
- Bump follow-redirects from 1.16.1 to 1.16.2 @dependabot[bot] (#1634)
- Bump qs from 6.15.2 to 6.17.1 @dependabot[bot] (#1635)
- Bump the dependencies group across 1 directory with 18 updates @dependabot[bot] (#1637)
- Bump the dependencies group across 16 directories with 15 updates @dependabot[bot] (#1636)
- Bump mkdocs-material from 9.7.7 to 9.8.0 in the dependencies group @dependabot[bot] (#1628)
- Bump the dependencies group with 15 updates @dependabot[bot] (#1620)
- Bump undici to 8.12.3 @nmummau (#1615)
- Bump vite from 8.3.2 to 8.3.5 @dependabot[bot] (#1612)
- Bump follow-redirects from 1.16.0 to 1.16.1 @dependabot[bot] (#1611)
- Bump the dependencies group across 10 directories with 11 updates @dependabot[bot] (#1609)
- Bump the dependencies group with 17 updates @dependabot[bot] (#1608)
- Update the default SocatContainer image to alpine/socat 1.8.1.3 @cristianrgreco (#1601)
- Update the Selenium video recorder and Service Bus SQL Server images @cristianrgreco (#1600)
v12.2.1
Changes
🐛 Bug Fixes
- Wait for Couchbase KV readiness before start resolves @cristianrgreco (#1514)
- Declare missing module dependencies @cristianrgreco (#1485)
- Increase timeout for waiting for host port bindings to 30 seconds @cristianrgreco (#1494)
- Only reuse reaper containers created by testcontainers-node @kilisamemarisaaa (#1453)
- Start Redpanda only after its config is in place @alpcanaydin (#1483)
🧹 Maintenance
- Add a write-code skill for code conventions @cristianrgreco (#1517)
- Replace hand-rolled stream handling with Node stream built-ins @cristianrgreco (#1566)
- Let agents commit and open draft PRs on request @cristianrgreco (#1586)
- Exclude agent worktrees from Vitest runs @cristianrgreco (#1515)
- Allow knip updates and remove the redundant Firestore dev dependency @cristianrgreco (#1509)
- Document Dependabot semver labels in the update-dependencies skill @cristianrgreco (#1516)
- Add agent skills for recurring repo workflows @cristianrgreco (#1486)
- Detect unused code and dependencies with knip @cristianrgreco (#1492)
- Remove the default embedding package from the chromadb dev dependencies @cristianrgreco (#1505)
- Run lint and compile once and share one dependency cache @cristianrgreco (#1495)
- Enforce import boundaries with Biome @cristianrgreco (#1491)
- Move docs build into the Checks workflow @cristianrgreco (#1502)
- Await the initial mongoose connection in MongoDB tests @cristianrgreco (#1500)
- Handle floating promises and enable noFloatingPromises @cristianrgreco (#1488)
- Build docs in strict mode in CI @cristianrgreco (#1489)
- Fix Claude action pushing with the read-only workflow token @cristianrgreco (#1493)
- Add Bun smoke test to CI @cristianrgreco (#1482)
- Replace ESLint and Prettier with Biome @cristianrgreco (#1440)
📦 Dependency Updates
- Bump the dependencies group across 1 directory with 15 updates @dependabot[bot] (#1503)
- Bump the dependencies group across 12 directories with 11 updates @dependabot[bot] (#1504)
- Bump handlebars from 4.7.9 to 4.7.10 @dependabot[bot] (#1487)
- Bump brace-expansion from 2.1.4 to 2.1.7 @dependabot[bot] (#1484)
- Bump ip-address from 10.4.0 to 10.7.2 @dependabot[bot] (#1475)
- Bump axios from 1.18.1 to 1.20.0 @dependabot[bot] (#1478)
- Bump @fastify/busboy from 3.1.1 to 3.2.2 @dependabot[bot] (#1479)
- Bump source-map-js from 1.2.1 to 1.2.2 @dependabot[bot] (#1481)
- Bump the dependencies group across 1 directory with 12 updates @dependabot[bot] (#1480)
- Bump the dependencies group across 10 directories with 9 updates @dependabot[bot] (#1476)
v12.2.0
Changes
🚀 Features
- Add InfluxDB module @JonnasFigueiredo (#1445)
- Add never-pull policy @gologames (#1460)
🐛 Bug Fixes
- Keep the tag of image references pinned by tag and digest @cristianrgreco (#1469)
- Close Docker log streams when consumers stop reading @0xTinker (#1432)
🧹 Maintenance
- Run the Claude workflow on Opus 5.5 at xhigh effort @cristianrgreco (#1471)
- Add Claude Code GitHub Workflow @cristianrgreco (#1470)
- Pull the MinIO image from Chainguard @JonnasFigueiredo (#1466)
- Drop the gcloud emulator test against an unavailable image @cristianrgreco (#1464)
- Pull the MinIO image from Quay @cristianrgreco (#1463)
📦 Dependency Updates
- Bump the dependencies group with 19 updates @dependabot[bot] (#1474)
- Bump the dependencies group across 20 directories with 20 updates @dependabot[bot] (#1473)
- Bump actions/checkout from 4 to 7 in the actions group @dependabot[bot] (#1472)
- Bump browserslist from 4.25.1 to 4.28.8 @dependabot[bot] (#1450)
- Bump @humanfs/node from 0.16.6 to 0.16.8 @dependabot[bot] (#1451)
- Bump fast-uri from 3.1.5 to 3.1.7 @dependabot[bot] (#1452)
- Bump js-yaml from 4.3.0 to 4.3.2 @dependabot[bot] (#1458)
- Bump adm-zip and cassandra-driver @dependabot[bot] (#1467)
- Bump the dependencies group across 14 directories with 15 updates @dependabot[bot] (#1465)
- Bump the dependencies group across 1 directory with 32 updates @dependabot[bot] (#1461)
v12.1.0
Changes
🚀 Features
- Add MongoDB Atlas Local support @jbl428 (#1396)
- Add Mosquitto module @ChxGuillaume (#1390)
📖 Documentation
- Document review-comment style and approval gate in AGENTS.md @cristianrgreco (#1397)
🧹 Maintenance
- Declare the supported Node.js version @gameroman (#1414)
- Use default stale issue timings @cristianrgreco (#1420)
📦 Dependency Updates
- Bump undici @dependabot[bot] (#1424)
- Bump ip-address from 10.2.0 to 10.4.0 @dependabot[bot] (#1426)
- Bump brace-expansion from 2.1.2 to 2.1.4 @dependabot[bot] (#1423)
- Bump fast-uri from 3.1.4 to 3.1.5 @dependabot[bot] (#1422)
- Apply npm audit fixes @cristianrgreco (#1421)
- Bump the actions group across 1 directory with 2 updates @dependabot[bot] (#1415)
- Bump the dependencies group across 11 directories with 10 updates @dependabot[bot] (#1416)
- Bump the dependencies group across 1 directory with 15 updates @dependabot[bot] (#1417)
- Bump mkdocs-material from 9.7.6 to 9.7.7 in the dependencies group @dependabot[bot] (#1403)
- Bump the dependencies group across 10 directories with 10 updates @dependabot[bot] (#1404)
- Bump the dependencies group with 14 updates @dependabot[bot] (#1405)
- Bump the dependencies group across 7 directories with 6 updates @dependabot[bot] (#1400)
- Bump the dependencies group with 14 updates @dependabot[bot] (#1401)
- Bump the dependencies group across 14 directories with 13 updates @dependabot[bot] (#1398)
- Bump the dependencies group with 16 updates @dependabot[bot] (#1399)
v12.0.4
Changes
🐛 Bug Fixes
- Fix container exec output truncation @cristianrgreco (#1381)
- Reuse insecure HTTP wait agent across retries @cristianrgreco (#1382)
📖 Documentation
- Document cross-language Testcontainers implementations in AGENTS.md @cristianrgreco (#1391)
- Add missing languages and reorder docs navigation @mdelapenya (#1385)
- Clarify branch naming and worktree setup in AGENTS.md @cristianrgreco (#1384)
🧹 Maintenance
- Fix intermittent Jest smoke test failures @cristianrgreco (#1395)
- Pin Dependabot weekly schedule to Monday @cristianrgreco (#1392)
- Remove unused ts-node dependency @cristianrgreco (#1380)
- Remove Husky pre-commit hook @cristianrgreco (#1379)
- Use Couchbase SDK readiness waits in tests @cristianrgreco (#1371)
📦 Dependency Updates
- Bump the dependencies group across 3 directories with 2 updates @dependabot[bot] (#1393)
- Bump the dependencies group with 3 updates @dependabot[bot] (#1394)
- NPM audit @cristianrgreco (#1388)
- Bump the dependencies group across 8 directories with 11 updates @dependabot[bot] (#1386)
- Bump the dependencies group with 11 updates @dependabot[bot] (#1387)
- Remove ESM-only get-port dependency path @cristianrgreco (#1378)
- Bump form-data @dependabot[bot] (#1368)
- Bump tar from 7.5.11 to 7.5.16 @dependabot[bot] (#1367)
- Bump js-yaml from 4.1.1 to 4.2.0 @dependabot[bot] (#1369)
- Bump the dependencies group across 1 directory with 15 updates @dependabot[bot] (#1376)
- Bump actions/checkout from 6 to 7 in the actions group across 1 directory @dependabot[bot] (#1372)
- Bump the dependencies group across 12 directories with 12 updates @dependabot[bot] (#1373)
- Ignore archiver major updates in Dependabot @cristianrgreco (#1375)
v12.0.3
Changes
🐛 Bug Fixes
- Downgrade archiver to restore Jest CJS compatibility @cristianrgreco (#1366)
📦 Dependency Updates
- Bump testcontainers/sshd image from 1.3.0 to 1.4.0 @mdelapenya (#1364)
v12.0.2
Changes
🐛 Bug Fixes
- Reset stateful regex log waits between matches @cristianrgreco (#1352)
- Fix Couchbase service configuration @cristianrgreco (#1356)
- Configure Azurite custom service ports @cristianrgreco (#1354)
- Preserve TCP and UDP bindings for the same container port @cristianrgreco (#1350)
- Apply custom MSSQL startup wait messages @cristianrgreco (#1351)
- Copy Redpanda runtime assets during build @cristianrgreco (#1357)
- Fix Redis and Valkey initial data handling @cristianrgreco (#1355)
📦 Dependency Updates
- Bump the dependencies group across 11 directories with 10 updates @dependabot[bot] (#1362)
- Bump the dependencies group across 1 directory with 27 updates @dependabot[bot] (#1363)
- Bump the dependencies group across 11 directories with 11 updates @dependabot[bot] (#1358)
- Bump the dependencies group across 6 directories with 6 updates @dependabot[bot] (#1349)
v12.0.1
Changes
🐛 Bug Fixes
- Fix Podman image healthcheck detection @cristianrgreco (#1341)
🧹 Maintenance
- Add npm dependency release age cooldown @cristianrgreco (#1339)
- Use Docker Hub Redpanda image @cristianrgreco (#1342)
- Use preinstalled Podman in checks @cristianrgreco (#1334)
- Simplify affected package checks @cristianrgreco (#1326)
- Add npm publish dry run workflow @cristianrgreco (#1333)
- Upgrade build agents from Ubuntu 22.04 to 24.04 @cristianrgreco (#986)
- Improve module compile checks @cristianrgreco (#1327)
📦 Dependency Updates
- Bump tmp from 0.2.5 to 0.2.6 @dependabot[bot] (#1343)
- Bump the dependencies group across 14 directories with 16 updates @dependabot[bot] (#1344)
- Bump the dependencies group with 13 updates @dependabot[bot] (#1338)
- Bump the dependencies group across 13 directories with 12 updates @dependabot[bot] (#1328)
- Bump the dependencies group across 1 directory with 22 updates @dependabot[bot] (#1331)
v12.0.0
🚨 Breaking Changes
-
Node 20 is EOL. Minimum engine requirement is now
>= 22.22, matching the constraints from our dependencies. -
Previously, when no wait strategy was configured, Testcontainers defaulted to
Wait.forListeningPorts().The new default wait strategy uses a Docker healthcheck when one is configured on the container image or service, falling back to
Wait.forListeningPorts()when no healthcheck is available.To keep the previous behaviour, configure
Wait.forListeningPorts()explicitly:import { DockerComposeEnvironment, GenericContainer, Wait } from "testcontainers"; // Container: opt back into the previous default of waiting for listening ports const container = await new GenericContainer("my-image:latest") .withExposedPorts(8080) .withWaitStrategy(Wait.forListeningPorts()) .start(); // Compose: apply the previous default to all services const environment = await new DockerComposeEnvironment(composeFilePath, "docker-compose.yml") .withDefaultWaitStrategy(Wait.forListeningPorts()) .up(); // Compose: or apply it to a specific compose container const environment = await new DockerComposeEnvironment(composeFilePath, "docker-compose.yml") .withWaitStrategy("api-1", Wait.forListeningPorts()) .up();
Changes
🚀 Features
- Use configured health checks as the default wait strategy @digital88 (#1096)
🐛 Bug Fixes
- Read
RYUK_CONTAINER_IMAGElazily so dotenv / other runtime overrides work @dvirarad (#1323) - Use
/tmpfor Kafka startup script @cristianrgreco (#1302)
📖 Documentation
- Clarify PR defaults in AGENTS.md @cristianrgreco (#1303)
🧹 Maintenance
- Repair npm publish version updates @cristianrgreco (#1330)
📦 Dependency Updates
- Bump ghcr.io/devcontainers/features/node from 1.7.1 to 2.0.0 in the dependencies group @dependabot[bot] (#1318)
- Bump the dependencies group across 18 directories with 20 updates @dependabot[bot] (#1321)
- Bump the dependencies group across 1 directory with 30 updates @dependabot[bot] (#1322)
- Bump the dependencies group across 1 directory with 23 updates @dependabot[bot] (#1300)
- Bump the dependencies group across 16 directories with 18 updates @dependabot[bot] (#1299)
v11.14.0
Changes
🚀 Features
- Add auto cleanup control for containers and compose environments @cristianrgreco (#1293)
- Add support for running in parallel for distinct UIDs @seanwu1105 (#1276)
📖 Documentation
- Document LocalStack authentication requirements @cristianrgreco (#1295)
🧹 Maintenance
- Only include TS files in test coverage paths @cristianrgreco (#1294)
- Fix etcd/vault
repository.urlin package.json @cristianrgreco (#1273)
📦 Dependency Updates
- Bump the dependencies group across 14 directories with 13 updates @dependabot[bot] (#1289)
- Bump the dependencies group across 1 directory with 21 updates @dependabot[bot] (#1287)
- Bump mkdocs-material from 9.7.5 to 9.7.6 in the dependencies group @dependabot[bot] (#1278)
- Bump the dependencies group across 11 directories with 10 updates @dependabot[bot] (#1279)
- Bump the dependencies group with 19 updates @dependabot[bot] (#1280)