- Problems with deserializing
undefined
value - Wrongs warning/error messages linked with serializing empty objects and
null
values - Warnings in console when some property is
null
orundefined
- [Critical bug] Deserializing structures using
Model.deserialize()
was not working with objects not created viaserializy
- [Critical bug] Linked with contains
.deserialize()
property in each object
- Warning, error, exception messages (typo, more friendly messages)
- [Internal] Changed return value of
field()/fieldArray()
optional
field configuration property- New type of field declaration
field({ name: 'prop_name', type: 'prop_type', usageType: 'usage_prop_type' })
- [Internal] Unit tests
- Added abilities for
fieldArray()
function. Now available common schemes:fieldArray('prop_name', 'prop_type', 'usage_prop_type')
fieldArray('prop_name', ModelDeclaration)
- [Internal] Scheme types :
ONE_STRING
,TWO_STRINGS
,THREE_STRINGS
(Combine this types into oneSTRINGS
)
- Problem with
.deserialize()
function
- Fully removed
yarn
from project because already using npm
- Fixed internal typings
- Added
isPrimitive()
helper - Renamed
ConvertationConfig
toConvertConfig
(TypeScript interface)
- Warnings in console if field is
null
- Casting to types:
'float'
,'integer'
. Instead of these use'number'
- Renamed
'UnknownModel'
to'Model'
if you usefield(simpleObjectStructure)
- Update warning/exception messages (fix typo and added emojis)
- Optional custom deserializer in
field(customSerializer, customDeserializer)
scheme
Now is possible to use justfield(customSerializer)
if you don't needed to have this field in deserialized structure - Unit tests for:
- build files
- constants module
- scheme module
- Added new types for type declaration:
'any'
,'object'
- Created a library (rollup build, small documentation)
- Added functions:
field()
,fieldArray()
,model()