UNPKG

ts-convict

Version:

Model style decorators for your convict config.

50 lines (42 loc) 2.15 kB
# 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). ## [Unreleased] ## [1.1.0] - 2021-02-12 ### Added - allow empty configs - exposecd convicts validationMethod in the Config annotation - exposed formats object in @Config, now one can add as many custom formats as they like - updated all of the dependencies and fixed the issues which came with the updates - code is linted with eslint now instead of the deprecated tslint ## [1.0.0] - 2020-01-22 ### Added - completely refactored to use reflect-metadata as global schema repo - now implementation only needs a single class to pass into TSConvict to load it's entire schema - removed all of the metaSchemaRepo functionality so there is no adding to global anymore - ability to load many file paths at once to cascade configs - @Config decorator now just accepts a parser and a basefile to try and load if no file is passed to laod. - converted all the tests to use the new TSConvict class ## [0.2.0] - 2019-11-02 ### Added - renamed to just convict-model, dropped the @akirix - a lot of useful tests and even debug scripts - types are guessed when format left empty on a property annotation - simple top level gettter for convictModel called `getConvictModel` - refactored a bunch to open up more features from convict - defined the Config annotation - two ways to create now, both have the same useage too - simpleCreate: recursive create flat configs and merge to one - create: get the whole convict schema and whole config and load all at once ## [0.1.0] - 2019-10-10 ### Added - A super well done changelog. Hope you agree. - Other convict model classes as a property - some good tests ## [0.0.5] - 2019-05-16 ### Added - load convict model classes using classes or paths to files to load - write simple model classes. Simple as in basic data types for the attributes - ci scripts for dev-ops automation using Travis with Github - unit testing scripts