Skip to content

Update testcontainers-node monorepo to v12#432

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-testcontainers-node-monorepo
Open

Update testcontainers-node monorepo to v12#432
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-testcontainers-node-monorepo

Conversation

@renovate

@renovate renovate Bot commented May 28, 2025

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
testcontainers ^10.17.1^12.0.0 age confidence

Release Notes

testcontainers/testcontainers-node (testcontainers)

v12.0.1

Compare Source

Changes

🐛 Bug Fixes

🧹 Maintenance

📦 Dependency Updates

v12.0.0

Compare Source

🚨 Breaking Changes

  1. Node 20 is EOL. Minimum engine requirement is now >= 22.22, matching the constraints from our dependencies.

  2. 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

🐛 Bug Fixes

📖 Documentation

🧹 Maintenance

📦 Dependency Updates

v11.14.0

Compare Source

Changes
🚀 Features
📖 Documentation
🧹 Maintenance
📦 Dependency Updates

v11.13.0

Compare Source

Changes

🚀 Features

📖 Documentation

🧹 Maintenance

📦 Dependency Updates

v11.12.0

Compare Source

Changes
🚀 Features
🐛 Bug Fixes
📖 Documentation
🧹 Maintenance
📦 Dependency Updates

v11.11.0

Compare Source

Changes
🚀 Features
🐛 Bug Fixes
🧹 Maintenance
📦 Dependency Updates

v11.10.0

Compare Source

Changes

🚀 Features

🧹 Maintenance

📦 Dependency Updates

v11.9.0

Compare Source

Changes

🚀 Features

📦 Dependency Updates

v11.8.1

Compare Source

Changes

🐛 Bug Fixes

📦 Dependency Updates

v11.8.0

Compare Source

Changes

🚀 Features

📦 Dependency Updates

v11.7.2

Compare Source

Changes

🧹 Maintenance

📦 Dependency Updates

v11.7.1

Compare Source

Changes

🐛 Bug Fixes

v11.7.0

Compare Source

Changes

🚀 Features

🐛 Bug Fixes

📦 Dependency Updates

v11.6.0

Compare Source

Changes

🚀 Features

📖 Documentation

📦 Dependency Updates

v11.5.1

Compare Source

Changes

🐛 Bug Fixes

🧹 Maintenance

📦 Dependency Updates

v11.5.0

Compare Source

Changes

🚀 Features

🐛 Bug Fixes

🧹 Maintenance

📦 Dependency Updates

v11.4.0

Compare Source

Changes

🚀 Features

🐛 Bug Fixes

v11.3.2

Compare Source

Changes

📦 Dependency Updates

v11.3.1

Compare Source

Changes

🐛 Bug Fixes

v11.3.0

Compare Source

Changes

🚀 Features

🧹 Maintenance

📦 Dependency Updates

v11.2.1

Compare Source

Changes

🐛 Bug Fixes

v11.2.0

Compare Source

Changes

🚀 Features

🧹 Maintenance

📦 Dependency Updates

v11.1.0

Compare Source

Changes

🚀 Features

v11.0.3

Compare Source

Changes

🐛 Bug Fixes

📦 Dependency Updates

v11.0.2

Compare Source

Changes

🐛 Bug Fixes

v11.0.1

Compare Source

🐛 Bug Fixes

📦 Dependency Updates

v11.0.0

Compare Source

🚨 Breaking Changes


1. Minimum Node engine requirement set to 20.


2. Default module images have been removed.

Previously:

await new PostgreSqlContainer().start();

Now:

await new PostgreSqlContainer("postgres:13.3-alpine").start();

For convenience, here is a table of all the previous default values, which you could just copy/paste to get back working again, but have a think about which version you actually need. Some of these are quite old and need to be updated.

Default module images
Module Image
arangodb arangodb:3.10.0
azurecosmosdb mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-EN20250228
azurite mcr.microsoft.com/azure-storage/azurite:3.33.0
cassandra cassandra:5.0.2
chromadb chromadb/chroma:0.6.3
clickhouse clickhouse/clickhouse-server:25.3-alpine
cockroachdb cockroachdb/cockroach:v24.3.5
couchbase couchbase/server:6.5.1
elasticsearch elasticsearch:7.17.7
etcd quay.io/coreos/etcd:v3.6.0
eventstoredb eventstore/eventstore:24.10
gcloud gcr.io/google.com/cloudsdktool/cloud-sdk:517.0.0-emulators
hivemq hivemq/hivemq-ce:2023.5
k3s rancher/k3s:v1.31.2-k3s1
kafka confluentinc/cp-kafka:7.2.2
localstack localstack/localstack:2.2.0
mariadb mariadb:11.5.2
minio minio/minio:RELEASE.2024-12-13T22-19-12Z
mockserver mockserver/mockserver:5.15.0
mongodb mongo:4.0.1
mssqlserver mcr.microsoft.com/mssql/server:2022-CU13-ubuntu-22.04
mysql mysql:8.0.31
nats nats:2.8.4-alpine
neo4j neo4j:4.4.12
ollama ollama/ollama:0.1.44
postgresql postgres:13.3-alpine
qdrant qdrant/qdrant:v1.13.4
rabbitmq rabbitmq:3.12.11-management-alpine
redis redis:7.2
redpanda docker.redpanda.com/redpandadata/redpanda:v23.3.10
scylladb scylladb/scylla:6.2.0
selenium selenium/standalone-chrome:112.0
toxiproxy ghcr.io/shopify/toxiproxy:2.11.0
valkey valkey/valkey:8.0
weaviate semitechnologies/weaviate:1.24.5

3. Dropped support for Docker Compose v1 (EOL July 2023).


4. Docker compose version no longer available via ComposeClient

const { compose } = await getContainerRuntimeClient();
compose.version; // no longer available

5. Container stop timeouts have changed from seconds to milliseconds

Previously:

await container.stop({ timeout: 10 }); // 10 seconds

Now:

await container.stop({ timeout: 10_000 }); // 10 seconds

6. EventStoreDB has been renamed to KurrentDB

Previously:

import { EventStoreDBContainer } from "@​testcontainers/eventstoredb";
new EventStoreDBContainer("eventstore/eventstore:24.10").start();

Now:

import { KurrentDbContainer } from "@​testcontainers/kurrentdb";
new KurrentDbContainer("kurrentplatform/kurrentdb:25.0").start();

  1. RandomUniquePortGenerator replaced by RandomPortGenerator

Changes

🧹 Maintenance

📦 Dependency Updates


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@coderabbitai

coderabbitai Bot commented May 28, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review

Comment @coderabbitai help to get the list of available commands and usage tips.

@renovate renovate Bot force-pushed the renovate/major-testcontainers-node-monorepo branch from 4df06e6 to 6d7595e Compare May 30, 2025 14:33
@renovate renovate Bot enabled auto-merge (squash) June 29, 2025 13:30
@renovate renovate Bot force-pushed the renovate/major-testcontainers-node-monorepo branch 6 times, most recently from 5f9b689 to c52e8b0 Compare June 30, 2025 12:07
@renovate renovate Bot force-pushed the renovate/major-testcontainers-node-monorepo branch 9 times, most recently from 03e1cfc to 6958dbf Compare July 12, 2025 13:36
@renovate renovate Bot force-pushed the renovate/major-testcontainers-node-monorepo branch 8 times, most recently from b4cd882 to 7d6aa74 Compare July 23, 2025 01:58
@renovate renovate Bot force-pushed the renovate/major-testcontainers-node-monorepo branch 4 times, most recently from b5b6998 to 05a962c Compare July 24, 2025 07:41
@renovate renovate Bot force-pushed the renovate/major-testcontainers-node-monorepo branch 18 times, most recently from 02affc3 to 0ff5a00 Compare August 12, 2025 15:11
@renovate renovate Bot force-pushed the renovate/major-testcontainers-node-monorepo branch 9 times, most recently from d60fc5d to a0713c8 Compare August 20, 2025 00:04
@icereed

icereed commented Sep 21, 2025

Copy link
Copy Markdown
Owner

@copilot fix the tests please

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.

2 participants