Permalink
Commits on Oct 29, 2018
  1. Docs: jsx syntax highlighting

    JPeer264 authored and jamiebuilds committed Oct 29, 2018
Commits on Oct 17, 2018
  1. Update package.json

    jamiebuilds committed Oct 17, 2018
  2. chore: removing unused package

    willmendesneto authored and jamiebuilds committed Oct 17, 2018
  3. test: adding unit tests

    willmendesneto authored and jamiebuilds committed Oct 15, 2018
Commits on Oct 10, 2018
Commits on Sep 25, 2018
  1. Update README.md

    jamiebuilds committed Sep 25, 2018
Commits on Sep 24, 2018
  1. Minor correction to TypeScript `setState` type

    BrandonWilliamsCS authored and jamiebuilds committed Jul 6, 2018
    Instead of allowing a `Partial<State>` to when calling `setState`, allow `Pick<State, K>` instead. Honestly, it looks like someone meant to do this in the first place but missed it, as the `K` generic type was already declared.
    
    This is a legitimate bug. Imagine that state is of type `{ x: number }`, and I try to call `setState({ x: undefined })`.
    With `Partial`, that's totally valid, because `Partial` creates a new type with the same keys, but each "optional". Of course, optional allows `undefined`.
    `Pick`, on the other hand, maps to a new type that only has a subset of the original keys but maintains the type of the remaining keys. So `{}` would be a valid argument, because it has the empty set of keys, but `{ x: undefined }` is out because `x` still needs to be a number.
    
    This is in line with the React version:
    https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/react/index.d.ts#L296
Commits on Sep 11, 2018
  1. Update package.json

    jamiebuilds committed Sep 11, 2018
  2. Update LICENSE

    jamiebuilds committed Sep 11, 2018
Commits on Sep 7, 2018
  1. small typo

    RyLeeHarrison authored and jamiebuilds committed Sep 7, 2018
Commits on Aug 24, 2018
  1. Update package.json

    jamiebuilds committed Aug 24, 2018
  2. Update LICENSE

    jamiebuilds committed Aug 24, 2018
Commits on May 24, 2018
  1. 2.1.1

    jamiebuilds committed May 24, 2018
Commits on May 17, 2018
  1. 2.1.0

    jamiebuilds committed May 17, 2018
  2. updates

    jamiebuilds committed May 17, 2018
Commits on May 15, 2018
  1. promises

    jamiebuilds committed Apr 23, 2018
Commits on May 14, 2018
  1. removed duplication from svg

    Pyrolistical authored and jamiebuilds committed May 11, 2018
    fixed outline on the S
Commits on May 9, 2018
Commits on May 2, 2018
  1. 2.0.3

    jamiebuilds committed May 2, 2018
  2. Allow passing options to Container

    sudhakar authored and jamiebuilds committed May 2, 2018
    Per FAQ, Container can be instantiated with constructor props. Updating types to allow props.
Commits on Apr 23, 2018
Commits on Apr 13, 2018
  1. 2.0.2

    jamiebuilds committed Apr 13, 2018
  2. get rid of umd build

    jamiebuilds committed Apr 13, 2018
Commits on Apr 12, 2018
  1. Update unstated.js

    jamiebuilds committed Apr 12, 2018
  2. 2.0.1

    jamiebuilds committed Apr 12, 2018
  3. Init @sindresorhus happiness

    jamiebuilds committed Apr 12, 2018
  4. 2.0.0

    jamiebuilds committed Apr 12, 2018