Changelog

for the component hpbare/sht3x v2.0.0
# Changelog

Follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and [SemVer](https://semver.org/spec/v2.0.0.html).

## [2.0.0] - 2026-12-03

### Added
- Heap-allocated opaque handle (`SHT3x_Handle`): `SHT3x_Init()` allocates and returns the handle; `SHT3x_Destroy()` frees it.
- `SHT3x_Config` with `user_ctx` and `SHT3x_GetUserContext()`, allowing callbacks to retrieve platform handles (e.g., I2C device handle).
- Runtime configuration setters: `SHT3x_SetMode()`, `SHT3x_SetI2cAddress()`, `SHT3x_SetRepeatability()`, `SHT3x_SetMps()`, `SHT3x_EnableArt()`, and `SHT3x_EnableClockStretch()`.
- Explicit periodic lifecycle APIs: `SHT3x_StartPeriodicMeasurement()` and `SHT3x_StopPeriodicMeasurement()`.
- Explicit `SHT3x_SoftReset()` public API.
- `SHT3x_StatusRegister` bitfield union for direct access to status flags.

### Changed
- Moved headers under `include/` (`sht3x.h`, `sht3x_types.h`, `sht3x_defs.h`, `sht3x_priv.h`).
- I2C callbacks (`SHT3x_I2cWrite`, `SHT3x_I2cRead`) now take `SHT3x_Handle s` instead of `addr`.
- Renamed APIs from v1.0.0:

  | v1.0.0 | v2.0.0 |
  | --- | --- |
  | `SHT3x_Dev` | `SHT3x_Handle` + `SHT3x_Config` |
  | `SHT3x_Data` | `SHT3x_MeasurementData` |
  | `SHT3x_Mode` | `SHT3x_MeasurementMode` |
  | `SHT3X_I2C_ADDR_DEFAULT` / `_ALT` | `SHT3X_I2C_ADDR_VSS` / `_VDD` |
  | `SHT3X_ERR_*` | `SHT3X_ERROR_*` (+ `SHT3X_ERROR_NO_MEM`) |
  | `SHT3x_Read()` | `SHT3x_ReadMeasurement()` |
  | `SHT3x_ReadStatus()` | `SHT3x_ReadStatusRegister()` |
  | `SHT3x_ClearStatus()` | `SHT3x_ClearStatusRegister()` |
  | `SHT3x_Deinit()` | `SHT3x_Destroy()` |

## [1.0.0] - 2026-12-03

### Added
- Initial bare-metal SHT3x-DIS driver (single-shot, periodic, clock stretching, CRC-8, heater, status register).