# Changelog All notable changes to this project 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 [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## 0.0.19 - 12-06-2019 ### Added - A route to POST a form Answer #21 (Horstmann) - Create ValidationError Class that extends error class, with the objective to return a dictionary of invalid answers (Horstmann) ### Changed - DbHandler's tests to suite with new forms answers added (Horstmann) - ValidationHandler to validate a Forms Answer instead of inputsAnswer - ValidationHandler's tests to suite new method to validate a Forms Answer ## 0.0.18 - 25-05-2019 ### Added - Create readFormAnswer method to read formAnswer from database #24 (Horstmann) - Create writeFormAnswer method to insert formAnswer into database #24 (Horstmann) - Create TestHandler to tests FormAnswers ### Changed - Fix OptHandler to return id in inputAnswer ## 0.0.17 - 25-05-2019 ### Added - inputAnswer method in OptHandler #23 (Horstmann) - formAnswer method in OptHandler #23 (Horstmann) ### Changed - FormsAnswer class to have an dictionary of InputsAnswer - FormsAnswer's constructor to use dictionary ## 0.0.16 - 06-05-2019 ### Added - A FormsAnswer Class to store answers from forms #22 (Horstmann) - A inputsAnswer Class to be the answer for each input in form #22 (Horstmann) ### Changed - Form's constructor documentation - Input's constructor documentation ## 0.0.15 - 26-04-2019 ### Added - A QueryOptions interface, that is used on dbHandler's executeQuery #20 ### Changed - dbHandler's tests to fit into new interface ### Security - Now dbHandler's executeQuery uses parametrized query to avoid SQL injection ## 0.0.14 - 26-04-2019 ### Removed - Dummies files as Item and Collection #16 (Horstmann) ## 0.0.13 - 26-04-2019 ### Added - A route to POST a form #10 (Horstmann) - Tests on route POST (Horstmann) ### Changed - dbHandler's tests to suit with new forms and inputs insertion ## 0.0.12 - 25-04-2019 ### Added - OptHandler to standardize constructors from Forms and Inputs #19 (Horstmann) - InputOptions interface on class Input #19 (Horstmann) - FormOptions interface on class Form #19 (Horstmann) ### Changed - Tests to adapt to new standard of options - dbHandler's readInputValidationWithInputId method to return a InputOptions instead of an input - Tests to adapt to new standard of options - ErrorHandler to add a new error message ## 0.0.11 - 17-04-2019 ### Added - ErrorHandler to standardize errors message through the project #17 (Horstmann) ### Changed - TestHandler documentation title - dbHandler tests to use ErrorHandler #18 (Horstmann) ## 0.0.10 - 16-04-2019 ### Added - TestHandler to test form and inputs #18 (Horstmann) ### Changed - controller form tests to use testHandler #18 (Horstmann) - controller form to improve code coverage - dbHandler tests to use testHandler #18 (Horstmann) - ValidationType to has as arguments an array of strings - ValidationHandler to receive a string as size instead number as validation arguments - ValidationHandler to cast size to number - ValidationHandler tests to use string instead of number as validation arguments ## 0.0.9 - 10-04-2019 ### Added - Method read in Form controller to get a Form ## 0.0.8 - 10-04-2019 ### Changed - main.ts to remove more dummie class - dbHandler to include method listForms ### Added - Form controller and method to list all forms ## 0.0.7 - 10-04-2019 ### Changed - main.ts to include dbHandler Middleware and remove dummie class ### Added - Create dbHandler Middleware to be able to access by routes #15 (Horstmann) ## 0.0.6 - 01-04-2019 ### Changed - Input class to match with database model (Add id and description) (Horstmann) - Form class to match with database model (Remove version add description) (Horstmann) - enumHandler to remove sides whitespaces (Horstmann) ### Added - Create readForm method to read form from database #7 (Horstmann) - Create readInput method to read input from database #7 (Horstmann) - Create writeForm method to insert form into database (Horstmann) - Comments to coverage ignore errors that are not reached on tests. ## 0.0.5 - 19-03-2019 ### Changed - Remove tslint-stylish from package.json, package is deprecated (Horstmann) - Update yarn.lock to avoid vulnerabilities (Horstmann) - Update CI file to handle database (Horstmann) ### Added - Class config using singleton patern, to centralize all configuration in one module (Horstmann) - DbHandler to be a layer between API and database #1 (Horstmann) ## 0.0.4 - 12-02-2019 ### Added - Class Form #3 (Horstmann) ## 0.0.3 - 07-02-2019 ### Changed - Added a new type of enum ValitationType #2 (Horstmann) ### Added - ValidationHandle to valited answer given a input #2 (Horstmann) ## 0.0.2 - 05-02-2019 ### Added - EnunHandler to handle types of inputs #4 (Horstmann) ## 0.0.1 - 04-02-2019 ### Added - This CHANGELOG file to hopefully serve as an evolving example of a standardized open source project CHANGELOG. - CI file to enable Gitlab Continuous Integration. - Docker files, as Dockerfile and docker-compose, to make easy development and Deploy #6 (Horstmann). - Update Node to 10.* #6 (Horstmann).