Skip to content

Releases: testcontainers/testcontainers-node

v12.0.1

27 May 14:12
4d8de0c

Choose a tag to compare

Changes

🐛 Bug Fixes

🧹 Maintenance

📦 Dependency Updates

v12.0.0

19 May 14:57
80d537a

Choose a tag to compare

🚨 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

  • Use configured health checks as the default wait strategy @digital88 (#1096)

🐛 Bug Fixes

📖 Documentation

🧹 Maintenance

📦 Dependency Updates

v11.14.0

08 Apr 08:58
afe8b72

Choose a tag to compare

Changes

🚀 Features

📖 Documentation

🧹 Maintenance

📦 Dependency Updates

v11.13.0

17 Mar 09:48
9261021

Choose a tag to compare

Changes

🚀 Features

📖 Documentation

🧹 Maintenance

📦 Dependency Updates

v11.12.0

17 Feb 21:08
0481c58

Choose a tag to compare

Changes

🚀 Features

🐛 Bug Fixes

📖 Documentation

🧹 Maintenance

📦 Dependency Updates

v11.11.0

27 Dec 18:31
a558850

Choose a tag to compare

Changes

🚀 Features

🐛 Bug Fixes

🧹 Maintenance

📦 Dependency Updates

v11.10.0

09 Dec 21:05
68cf3cd

Choose a tag to compare

Changes

🚀 Features

🧹 Maintenance

📦 Dependency Updates

v11.9.0

27 Nov 20:11
dc51ad7

Choose a tag to compare

Changes

🚀 Features

📦 Dependency Updates

v11.8.1

11 Nov 14:34
737f3c2

Choose a tag to compare

Changes

🐛 Bug Fixes

📦 Dependency Updates

v11.8.0

05 Nov 09:26
6432d9e

Choose a tag to compare

Changes

🚀 Features

📦 Dependency Updates