http-api-data v0.4.2 Release Notes

Release Date: 2020-08-28 // over 3 years ago
    • โž• Add instances for Const and Identity

Previous changes from v0.4.1

    • ๐Ÿ‘‰ Use time-compat to provide instances for DayOfWeek.

    0.4

    • NominalDiffTime instances preserve precision (roundtrip)
    • โž• Add Semigroup.Min, Max, First, Last instances
    • โž• Add Tagged b a instances

    0.3.10

    • ๐Ÿ›  Fix 'SetCookie' instances (see #86)
    • โž• Add support for Fixed (see #78)

    0.3.9

    • ๐Ÿ‘ GHC-8.6 support
    • โœ‚ Remove dependency on uri-bytestring and use functions from http-types instead (see #75)
    • โž• Add support for SetCookie (see #74)

    0.3.8.1

    • ๐Ÿ‘ GHC-8.4.1 support

    0.3.8

    • Minor changes:
      • Stable URL-encoding for Forms (see #67):
        • Introduce urlEncodeParams and urlDecodeParams;
        • Introduce urlEncodeAsFormStable and use stable encoding for doctests;
        • Add toEntriesByKeyStable and toListStable;
      • Add Semigroup instance for Form (see #69);
      • Relax upper bound on Cabal (see #73).

    0.3.7.2

    • ๐Ÿ‘ Allow http-types-0.12
    • .cabal file adjustments

    0.3.7.1

    • ๐Ÿ‘€ GHC-8.2 support (see #55).

    0.3.7

    • Minor changes:
      • Use attoparsec-iso8601 for parsing of time types. Now the accepted formats are the same as by aeson, i.e. parsers are more lenient (see #41);
      • Preserve fractions of a second in ToHttpApiData instances (see #53);
      • Add ToHttpApiData and FromHttpApiData instances for TimeOfDay (see #53).

    0.3.6

    • Minor change:
      • Add toEncodedUrlPiece class method for URL-encoded path segments (see #50); use efficient encoding for types whose values don't need URL-encoding.

    0.3.5

    • Minor changes:
      • Add LenientData which always succeeds to parse (see #45).

    0.3.4

    • Minor changes:
      • Add support for GHC 8.2, drop support for GHC 7.6 (see #44).

    0.3.3

    • Minor changes:
      • Expose Form constructor from Web.FromUrlEncoded (see #40);
      • Fix example in FromForm documentation (see #39).

    0.3.2

    • Minor change:
      • Export Form type from Web.FormUrlEncoded (see #37).

    0.3.1

    • Minor changes:
      • Add instances for Data.UUID (see #34).

    0.3

    • Major changes:

      • Add Web.FormUrlEncoded to work with form data (see #32).
    • Minor changes:

      • Add instances for Numeric.Natural (see d944721).

    0.2.4

    • ๐Ÿ‘€ Make parseHeader total (instead of throwing exceptions on invalid Unicode, see #30).

    0.2.3

    • โž• Add more parser helpers for Bounded Enum types.

    0.2.2

    • โž• Add instances for more time types: LocalTime, ZonedTime, UTCTime and NominalDiffTime

    0.2.1

    • โž• Add helpers for multiple URL pieces and query params:
      • toUrlPieces, parseUrlPieces
      • toQueryParams, parseQueryParams

    0.2

    • ๐ŸŒ Export helper functions from Web.HttpApiData:
      • parseUrlPieceMaybe, parseHeaderMaybe, parseQueryParamMaybe
      • parseUrlPieceWithPrefix, parseHeaderWithPrefix, parseQueryParamWithPrefix
      • showTextData, readTextData, parseBoundedTextData
    • ๐Ÿ›  Fix AMP related warnings

    0.1.1

    • โž• Add use-text-show flag to optionally use more efficient TextShow instances