Skip to content

Latest commit

 

History

History
125 lines (84 loc) · 3.82 KB

CHANGELOG.md

File metadata and controls

125 lines (84 loc) · 3.82 KB

Changelog

All notable changes to this project will be documented in this file.

[0.2.11] - 204-09-16

Added

  • ability to pass partial MFA (aka {mod, fun}) or complete MFA (aka {mof, fun, args}) to :transform, :dependent and :default directives

[0.2.10] - 2024-09-16

Added

  • fixes for 0.2.10 [45300d3]
    • default values are also applied to nested schemas when the parent node is nil
    • all type schemas are treat as optional by default
    • allow types as valid schema definition
      • :date
      • :time
      • :datetime
      • :naive_datetime
      • :pid

0.2.8 - 2024-08-01

Added

  • handle structs as input data for schemas [859a0fd]
  • support validate enumerable schemas on raw data structures (eg. :list type) [32aa540]

0.2.7 - 2024-07-28

Added

  • Support multiple dependencies for the :dependent type [1be99ef]
  • :cond type receives "root data" and is treated as required by default [336316c]
  • basic Jason.Protocol for Peri.Error (optional) [9031b1e]
  • correctly pass "root data" to :cond and :dependent types [b79dfbd]
  • allow usage of :one_of and get_schema/1 [cb1b250]
  • handle schemas definitions with string keys [266b5a2]

0.2.6 - 2024-06-27

Added

  • Data generation with based on StreamData provided as the Peri.generate/1 function that receives a schema and returns a stream of generated data that matches this schema. [c85b972]

0.2.5 - 2024-06-22

Added

  • Numeric and String Validations: Implemented new validation types for numeric and string data, including regex patterns, equality, inequality, range, and length validations. This allows for more granular and specific data validations. [9bb797e]

0.2.4 - 2024-06-21

  • Implemented new type {type, {:default, default}}. [a569ecf, 821935f]
  • Implemented new type {type, {:transform, mapper}}. [785179d]

0.2.3 - 2024-06-18

Added

  • Implemented schema validation, bang functions, and improved error inspection. [fc061f0]

Fixed

  • Improved error handling and inspecting. [f4d504b, afb054e]

0.2.2 - 2024-06-17

Added

  • Native support for keyword lists. [9f8aaef]
  • conforms?/1 function. [9a39ed8]

0.2.1 - 2024-06-16

Added

  • Continuous Integration (CI) setup. [16cf116]

Fixed

  • Corrected mix.exs file for hex package. [af5a744]

0.2.0 - 2024-06-15

Added

  • Enhanced error handling features. [f4d504b, afb054e]

Fixed

  • Documentation updates in README and Hex docs. [4fd48ce]

0.1.4 - 2024-06-10

Added

  • Support for any, atom, oneof, and either types. [6a225f4]

0.1.2 - 2024-06-05

Added

  • Removed unknown fields from schema validation. [3fa79d4]
  • Allowed custom, composable, and recursive schemas. [fd1f593]

Fixed

  • Support for string map keys. [1b6edef]

0.1.1 - 2024-06-02

Added

  • Support for tuple, lists, enum, and custom types. [7766adc]

0.1.0 - 2024-06-01

Added

  • Initial version of Peri with basic schema validation functionalities. [7044ea7]