packages feed

servant-hateoas-0.3.4: CHANGELOG.md

# Changelog

All notable changes to the servant-hateoas library will be documented in this
file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [PVP versioning](https://pvp.haskell.org/).

## v0.3.4 _(2024-12-30)_

### Added
- Added class `HasTemplateLink` for fully templated links to endpoints
- Added combinator `data Title (sym :: Symbol)` for human-readable titles of resources

### Changed
- Class `HasRelationLink` now returns complete links instead of partially templated ones
- Replaced all usages of `Link` with `RelationLink`, allowing more flexibility when gathering information about the resource the link refers to
- Extended the rendering of `HALResource` by props `type` (Content-Type) and `title`

## v0.3.3 _(2024-12-28)_

### Added
- Added function `fromURI` for creating `RelationLink` from an `URI`

### Changed
- Replaced fully templated links with partially templated links for layers whose endpoints take arguments

## v0.3.2 _(2024-12-27)_

### Changed
- Rendering prop `templated: true` hypermedia relations for HAL+JSON-Responses when the relations `href` is templated

## v0.3.1 _(2024-12-27)_

### Added
- Added support for layers indicating usage of queries

### Changed
- Fixed bug where instances for `BuildLayerLinks` only worked for layers whose endpoints do not take any arguments

## v0.3.0 _(2024-12-24)_

### Added
- Added functionality to derive a HATEOAS Layer-Api and rewritten HATEOAS API from your API and their respective server-implementations.

### Changed
- Removed argument `api` from class `ToResource`

### Removed
- Temporarily removed support for content-type `application/vnd.collection+json`

## v0.2.2 _(2024-12-01)_

### Changed
- Removed `SomeToJSON` and replaced it with `SomeF f ToJSON` from `constrained-some`

## v0.2.1 _(2024-10-25)_

### Changed
- Export `CollectionItem`
- Improved documentation

## v0.2.0 _(2024-10-29)_

### Added
- Support for Content-Type `application/collection+json`
- Classes `EmbeddingResource res` & `CollectingResource res` for resource-modification

### Changed
- *(breaking change)* Renamed class `HasResource` to `Resource`, removed associated type and Content-Type param

## v0.1.1 _(2024-10-25)_

### Changed
- Improved documentation

## v0.1.0 _(2024-10-25)_

### Added
- Released