testcontainers / testcontainers-rs

A library for integration-testing against docker containers from within Rust.
https://rust.testcontainers.org
Apache License 2.0
697 stars 133 forks source link

chore: release v0.18.0 #663

Closed github-actions[bot] closed 2 months ago

github-actions[bot] commented 2 months ago

πŸ€– New release

Changelog

## [0.18.0] - 2024-06-15 ### Details #### Bug Fixes - [❗] Make `DOCKER_CONFIG` usage consistent with Docker CLI ([#654](https://github.com/testcontainers/testcontainers-rs/pull/654)) #### Features - [❗] Support UDP and SCTP port mappings ([#655](https://github.com/testcontainers/testcontainers-rs/pull/655)) - Impl `From` for `ContainerPort` with TCP default ([#658](https://github.com/testcontainers/testcontainers-rs/pull/658)) - Support HTTP wait strategy ([#659](https://github.com/testcontainers/testcontainers-rs/pull/659)) - Allow passing `u16` to `Ports` #### Miscellaneous Tasks - Use nightly `rustfmt` ([#657](https://github.com/testcontainers/testcontainers-rs/pull/657)) #### Refactor - [❗] Get rid of associated type `ImageArgs` and rename to `cmd` ([#649](https://github.com/testcontainers/testcontainers-rs/pull/649)) - Avoid unnecessary owned structs and boxing ([#651](https://github.com/testcontainers/testcontainers-rs/pull/651)) - [❗] Add `ImageExt` trait to avoid explicit conversion to `RunnableImage` ([#652](https://github.com/testcontainers/testcontainers-rs/pull/652)) - [❗] Rename `RunnableImage` to `ContainerRequest` ([#653](https://github.com/testcontainers/testcontainers-rs/pull/653)) - [❗] Exposed and mapped ports api ([#656](https://github.com/testcontainers/testcontainers-rs/pull/656)) - Preliminary refactoring of `wait` strategies ([#661](https://github.com/testcontainers/testcontainers-rs/pull/661))


This PR was generated with release-plz.

Migration Guide

Overview

Most of the breaking changes introduced in this version primarily impact developers who implement their own images. For general usage, the API remains mostly the same, with some improvements and enhancements for better performance and flexibility.

1. Renaming of RunnableImage

2. Changes to Image Methods

3. Changes to Image::exposed_ports

4. Removal of Associated Type Args in Image

5. Simplification of Trait Implementation in Image

6. Changes to RunnableImage::with_mapped_port

netlify[bot] commented 2 months ago

Deploy Preview for testcontainers-rust ready!

Name Link
Latest commit c8e0ec62a7bd58755a4cbbcb9d98aa682afa62c8
Latest deploy log https://app.netlify.com/sites/testcontainers-rust/deploys/666dfcdb4bcd9d0008f5d92d
Deploy Preview https://deploy-preview-663--testcontainers-rust.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.