Breaking:
- options argument with
auto
removed frommodel()
- MST
types.model
(and_model
) removed. Model can be initialized with object like MST model or with MST model now.
Other:
- add missed
jsonDate
to exportedtypes
- weakRef
LikesafeRef
but do not set value toundefined
if reference node not found - valuesEnum
export const AddressType = {
Legal: 'legal',
Actual: 'actual',
Postal: 'postal',
}
const strict = true // no other types can be
const AddressTypeEnum = valuesEnum(AddressType, strict)
- fix incorrect gen check
- optimize creating objects with many views
- @babel/runtime
- sideEffects: false
- check if mst type already while converting type arguments
- model props() and actions() for extending
- getMstType() TS def
- correcting MST peer version
@flow
and@action
decorators removed. All simple functions (except@view
'ed) will be considered as actions. All generators will become flow's. getters will become views. Use@view
for parametrized views.- field with model type will not be automatically initialized with empty objects any more. So this code will throw error in new version:
@model class Base {}
@model class Container {
@Base base
}
Use default value
@model class Container {
@Base base = {}
}
or auto: true
option instead:
@model({auto: true}) class Base {}
@model class Container {
@Base base
}
- basic typescript definitions
- initial version