Skip to content

Latest commit

 

History

History
180 lines (127 loc) · 10.3 KB

CHANGELOG.md

File metadata and controls

180 lines (127 loc) · 10.3 KB

Change Log

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

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

[3.0.0-rc] - 2022-02-16

[3.0.0-rc] Added

  • Add define(), isValidationError() static method to the ValidationError object. b261662 eb2d8e2
  • Add the generic type variable Id to the ValidationError. eb2d8e2
  • Add [Symbol.toStringTag]() get accessor to return the object different class name. eb2d8e2
  • Add ValidationErrors object that is is an extension of the CommonErrors object that represents multiple identification numbers under which the errors of the ValidationError type are prepared to throw. 43a0162
  • Add TypeErrors object that is an extension of the CommonErrors object that represents multiple identification numbers under which the errors of the TypeError type are prepared to throw. ff2feeb
  • Add TypeError object that is an extension of the CommonError class and is thrown when an operation could not be performed, typically(but not exclusively) when a value is not of the expected type, with the message built from the described problem and its solution, optional an explicit identification and type, on the given or stored template. 8112c16
  • Add RangeErrors object that is an extension of the CommonErrors object that represents multiple identification numbers under which the errors of the RangeError type are prepared to throw. 72b8582
  • Add RangeError object that is an extension of the CommonError class and is thrown when a value is not in the set or range of allowed values with the message built from the described problem and its solution, optional explicit identification and minimum/maximum range on the given or stored template. 77e4e0a
  • Add Errors object that is an extension of the CommonErrors object that represents multiple identification numbers under which the errors of the Error type are prepared to throw. a5f391c
  • Add Error object that is an extension of the CommonError class and is thrown when a runtime error occurs with a message built from a solution to the described problem but with additional identification, on the template. 789083e
  • Add CommonErrors object that represents the storage of errors with unique identification numbers. a17461b
  • Add CommonError abstract object to throw an identified error with a solution to the described problem, additional type, and range built on the template. 9089375

[3.0.0-rc] Changed

  • Change the constructor() of the ValidationError to use direct parameters instead of object.
  • Change #tpl property to #template and the default value to Problem{id}: {problem} => Fix: {fix}.
  • Change the property name to name accessor.

[3.0.0-rc] Removed

  • Remove #callback private property from the ValidationError to simplify the object.
  • Remove VEAllowedCallback type and ErrorMessage interface to simplify the object. 00229cd 30716b2
  • Remove set problem(), set message(), set fix(), set template() accessors of an ValidationError instance. b261662
  • Remove #guardMessage(), #guardTemplate(), defineMessage(), static method from the ValidationError(). b261662
  • Remove updateMessage(), throw(), setTemplate(), setProblem(), setMessage(), setFix() instance method from the ValidationError(). b261662

[2.0.2] - 2021-08-12

2.0.2 Fixed

  • ff06f3a
    Fixed package.json peer dependencies cause of @angular-package/callback.

[2.0.1] - 2021-08-12

2.0.1 Fixed

  • c77f3cf
    Fix JS documentation of ValidationError.

  • bc8e965
    Fix documentation of README.md.

[2.0.0] - 2021-08-12

2.0.0 Added

2.0.0 Changed

  • 069d111
    Changed static public template property to use static private #template property that is guarded by the private static #guardTemplate() method.
    Changed instance fix property to use private #fix.
    Changed instance problem property to use private #problem.
    Changed public static defineMessage() method to use private static #guardMessage() to guards the provided message.
    Changed constructor to use public setMessage() method and add new callback parameter to handle private instance of Callback.
  • 0708846 bcc6521 0bbd886
    Updated README.md.

[1.0.3] - 2021-08-06

1.0.3 Added

  • 5752d9e
    Tests for the MessageFunctionBuilder.
  • 488270d
    Tests for the MessageBuilder.

1.0.3 Changed

  • 5bd6a2b
    jsdoc description of the MessageBuilder.
  • 1dffd31 Updated README.md.

1.0.3 Fixed

  • 5427c65
    Add message builder to api.

[1.0.2] - 2021-08-04

1.0.2 Update

  • Update README.md.

1.0.2 Fix

  • 253dda9
    Fixes the homepage link in the package.json.

[1.0.1] - 2021-08-04

1.0.1 Fix

  • ab8729f
    Remove unnecessary peer dependencies.