Skip to content

Latest commit

 

History

History
100 lines (60 loc) · 2.75 KB

CHANGELOG.md

File metadata and controls

100 lines (60 loc) · 2.75 KB

CHANGELOG

Fixed

  • 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 or undefined
  • [Critical bug] Deserializing structures using Model.deserialize() was not working with objects not created via serializy
  • [Critical bug] Linked with contains .deserialize() property in each object

Changed

  • Warning, error, exception messages (typo, more friendly messages)
  • [Internal] Changed return value of field()/fieldArray()

Added

  • 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)

Removed

  • [Internal] Scheme types : ONE_STRING, TWO_STRINGS, THREE_STRINGS (Combine this types into one STRINGS)

Fixed

  • Problem with .deserialize() function

Changed

  • Fully removed yarn from project because already using npm

Internal

  • Fixed internal typings
  • Added isPrimitive() helper
  • Renamed ConvertationConfig to ConvertConfig (TypeScript interface)

Fixed

  • Warnings in console if field is null

Removed

  • Casting to types: 'float', 'integer'. Instead of these use 'number'

Changed

  • Renamed 'UnknownModel' to 'Model' if you use field(simpleObjectStructure)
  • Update warning/exception messages (fix typo and added emojis)

Added

  • Optional custom deserializer in field(customSerializer, customDeserializer) scheme
    Now is possible to use just field(customSerializer) if you don't needed to have this field in deserialized structure
  • Unit tests for:
    • build files
    • constants module
    • scheme module

Added

  • Added new types for type declaration: 'any', 'object'

Added

  • Created a library (rollup build, small documentation)
  • Added functions: field(), fieldArray(), model()