Skip to content

Latest commit

 

History

History
91 lines (52 loc) · 3.43 KB

CHANGELOG.md

File metadata and controls

91 lines (52 loc) · 3.43 KB

Changelog

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and adheres to Semantic Versioning.

[Unreleased]

  • Improve typesafety of createRestyleFunction for correct property values. #36 by @hammadj
  • Add start and end (e.g. paddingStart) properties where applicable to better support RTL layouts. #38 by @salzhrani

1.1.0 - 2020-07-25

  • Improve type safety and type inference of createVariant, createBox, createText, useRestyle, createRestyleFunction and createRestyleComponent. #16 and #21 by @hammadj, #26 by @Johan-duitot
  • Add a createTheme helper function to enforce proper shape for user themes. #18 by @hammadj
  • Add shorthand names for spacing and backgroundColor props. #22 by @hammadj
  • Fix a bug in createVariant where defaults were only applied when the variant prop was passed in. #28 by @hammadj
  • Add a hook useResponsiveProp to deconstruct responsive prop values. #27 by @hammadj

1.0.4 - 2020-02-26

  • Public release

1.0.3 - 2020-01-10

  • Fix bug where 0 or other falsy values aren't allowed in the theme.

1.0.2 - 2020-01-03

  • Accept children by default in components created with createBox and createText.

1.0.1 - 2020-01-03

  • Fix a bug where children would always be a required prop in createRestyleComponent.

1.0.0 - 2019-12-20

  • Rename library to @shopify/restyle
  • [BREAKING] Rename useStyleSystem to useRestyle
  • [BREAKING] Rename createStyleSystemFunction to createRestyleFunction
  • [BREAKING] Rename createStyleSystemComponent to createRestyleComponent

0.1.10 - 2019-12-05

  • Accept override component prop types in createText and createBox.

0.1.9 - 2019-10-28

  • Accept optional underlying component to use in createText and createBox.

0.1.8 - 2019-09-26

  • Fix component created with createText not accepting React Native Text properties.

Removed

  • Removed component override prop, it's not really needed in practice and it makes managing the types much more complicated.

0.1.7 - 2019-09-25

Added

  • Added optional type argument to useTheme to set the returned type, e.g. useTheme<Theme>()

0.1.6 - 2019-09-24

Added

  • Added shadow style function to createBox
  • Added textShadow style function to createText

0.1.5 - 2019-09-19

  • Map shadowColor and textShadowColor to colors theme key

0.1.3 - 2019-09-13

Added

  • Added defaults parameter to createVariant to set default values that should be applied before anything from the theme.

0.1.2 - 2019-09-11

  • Compile library without JSX

0.1.1 - 2019-09-11

  • Changed TypeScript compile target to es5 (instead of esnext)

0.1.0 - 2019-09-10

  • Initial release