Skip to content

Latest commit

 

History

History
235 lines (130 loc) · 8.45 KB

File metadata and controls

235 lines (130 loc) · 8.45 KB

Change Log

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.1.1 (2019-01-16)

Bug Fixes

  • redux: do not freeze actions in dev mode (#29) (fd496df), closes #21
  • types: mark FunctionArgsTuple deprecated (2b8aecd)

2.1.0 (2018-11-28)

Features

  • types: add InstanceTypes (6ab93b1)
  • utils: add tuple function to create proper tuple types (b7b7723)

2.0.0 (2018-10-29)

Bug Fixes

  • react: don't export component Props (6709b50)

Chores

  • bump deps and TS to 3.1 (9d6ef47)

Features

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

Reverts

  • tsc: remove exclude as it break linting pipeline (dd45aee)

BREAKING CHANGES

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

Features

  • type-guards: improve isObject type narrowing and implement new mapped types (#20) (e13da70)

BREAKING CHANGES

  • type-guards: consumers of isObject which used previously explicitly type generic for constraint may experience compile errors because now isObject does type narrowing properly without any imperative need to define generic on function call. To fix this just remove those explicit generic types on object as isObject will 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)

Bug Fixes

  • react: return function definition instead of boolean in ChildrenAsFunction (9eb2a2e)

0.13.1 (2018-09-07)

Bug Fixes

  • react: retrurn children from ChildrenAsFunction to mirror Children.only (689b53f)

0.13.0 (2018-09-06)

Features

  • react: add children helpers and Debug component (#19) (f0b1f5a)

0.12.0 (2018-09-06)

Features

  • type-guards: better isEmpty (#18) (59a1a1d)

0.11.1 (2018-09-06)

Bug Fixes

  • type-guards: properly narrow isFunction guard to potentional function type (#17) (09fa4c8)

0.11.0 (2018-09-06)

Features

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

Bug Fixes

  • type-guards: fix isNumber return type (#15) (bbb5ce8), closes #15

Features

  • type-guards: add isPromise and isDate guards (#14) (53ac010)

0.9.0 (2018-08-27)

Features

0.8.0 (2018-08-20)

Features

  • type-guards: add core type-guards with types (#10) (5bd3b22)

0.7.0 (2018-08-20)

Features

  • react: implement defaultProps helpers (#9) (f0bfefc)

0.6.0 (2018-08-20)

Bug Fixes

  • make react utils public (d7efe5e)

Features

  • react: add pickWithRest for handling generic ...rest (#8) (12c17c5)

0.5.0 (2018-08-16)

Features

  • redux: make ActionsOfType public so consumers can get action type from union (8a0118e), closes #3

0.4.0 (2018-08-15)

Features

  • react: add reaxt type helpers (0d7f347)
  • types: add constructor and omit (8a84e1a)

0.3.0 (2018-08-15)

Bug Fixes

  • build: don't bundle rx deps. mark it as optionalDeps (#5) (ecacc58)

Features

  • redux: make actions readonly on both type and runtime level (#4) (13f6e7c)

0.2.0 (2018-08-14)

Bug Fixes

  • redux: export missing ofType (37bec2b)

Features

  • redux: implement rx ofType operator (01ea0d1)

0.1.0 (2018-08-13)

Features

  • redux: implement createAction with type helpers (cbede4f)