All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.1.1 (2019-01-16)
- redux: do not freeze actions in dev mode (#29) (fd496df), closes #21
- types: mark FunctionArgsTuple deprecated (2b8aecd)
2.1.0 (2018-11-28)
2.0.0 (2018-10-29)
- react: don't export component Props (6709b50)
- bump deps and TS to 3.1 (9d6ef47)
- react: implement ElementProps,ElementState,ElementConfig (6b7a6ca)
- types: add FunctionArgsTuple for function args type extraction (37e4e42)
- types: implement Values mapped type like Flow has (8d36793)
- types: reimplement Omit and add Diff (121c491)
- utils: add Empty for type token creation (d20978a)
- utils: add Enum helper for creating type safe enums (c89f36f)
- tsc: remove exclude as it break linting pipeline (dd45aee)
- react: GetComponentProps and friends was removed, use the new mapped types instead
- types: Omit now mirrors Pick like behaviour. Previously Omit accepted 2 object types. Now the 2nd type is a keyof from primary object definition. To get previous behaviour we are introducing Diff mapped type, so use that from now on.
- minimal supported version of TS is now 3.1
1.0.0 (2018-09-24)
- type-guards: improve isObject type narrowing and implement new mapped types (#20) (e13da70)
- type-guards: consumers of isObject which used previously explicitly type generic for constraint
may experience compile errors because now
isObjectdoes type narrowing properly without any imperative need to define generic on function call. To fix this just remove those explicit generic types on object asisObjectwill now work correctly as expected:
Before:
const possibleObj: SomeModel | string = getData()
if (isObject<SomeModel>(possibleObj)) {
// possibleObj is SomeModel
}After:
const possibleObj: SomeModel | string = getData()
if (isObject(possibleObj)) {
// possibleObj is SomeModel
}0.13.2 (2018-09-10)
- react: return function definition instead of boolean in ChildrenAsFunction (9eb2a2e)
0.13.1 (2018-09-07)
- react: retrurn children from ChildrenAsFunction to mirror Children.only (689b53f)
0.13.0 (2018-09-06)
- react: add children helpers and Debug component (#19) (f0b1f5a)
0.12.0 (2018-09-06)
- type-guards: better isEmpty (#18) (59a1a1d)
0.11.1 (2018-09-06)
- type-guards: properly narrow isFunction guard to potentional function type (#17) (09fa4c8)
0.11.0 (2018-09-06)
- type-guards: add isEmpty (7debc76)
- types: add Brand mapped type for nominal type checking capabilities (d4f47ed)
- types: add new mapped types helpers (399b2cf)
- types: add PickWithType and PickWithTypeUnion mapped types (609266f)
0.10.0 (2018-09-04)
- type-guards: add isPromise and isDate guards (#14) (53ac010)
0.9.0 (2018-08-27)
0.8.0 (2018-08-20)
- type-guards: add core type-guards with types (#10) (5bd3b22)
0.7.0 (2018-08-20)
- react: implement defaultProps helpers (#9) (f0bfefc)
0.6.0 (2018-08-20)
- make react utils public (d7efe5e)
- react: add pickWithRest for handling generic ...rest (#8) (12c17c5)
0.5.0 (2018-08-16)
0.4.0 (2018-08-15)
0.3.0 (2018-08-15)
- build: don't bundle rx deps. mark it as optionalDeps (#5) (ecacc58)
- redux: make actions readonly on both type and runtime level (#4) (13f6e7c)
0.2.0 (2018-08-14)
- redux: export missing ofType (37bec2b)
- redux: implement rx ofType operator (01ea0d1)
- redux: implement createAction with type helpers (cbede4f)