Skip to content

Latest commit

 

History

History
44 lines (27 loc) · 1.62 KB

CHANGELOG.md

File metadata and controls

44 lines (27 loc) · 1.62 KB

Changelog Elm package

All notable changes to dillonkearns/elm-ts-json elm package will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[Unreleased]

[2.1.1] - 2022-08-24

Fixed

  • Object keys are correctly quoted in cases where unquoted keys cause invalid syntax. See #12. Thank you @pabra for the fix!

[2.1.0] - 2021-10-18

Added

  • TsJson.Decode.discriminatedUnion helper makes it easier to do simple unions that use the discriminated union convention.
  • TsJson.Decode.stringUnion for simple enumeration-style string unions.
  • Added stringLiteral for Codec and Decode modules

[2.0.0] - 2021-10-11

Added

  • New Codec API

Changed

  • Decoder and Encoder types point to new internal type to avoid future breaking changes. This won't actually break code, but Elm will mark it as a breaking change because the underlying type is different.

[1.1.0] - 2021-03-10

Fixed

  • Add TsJson.Encodde.variantTagged function.
  • Remove duplicate object properties when a decoder decodes a field multiple times. TypeScript was giving the Duplicate identifier 'foo'.(2300) error for this output. The toTypeScript function no longer will result in repeated properties.