Skip to content

Latest commit

Β 

History

History
282 lines (164 loc) Β· 13.5 KB

CHANGELOG.md

File metadata and controls

282 lines (164 loc) Β· 13.5 KB

@emotion/native

11.9.3

Patch Changes

  • #2759 Thanks @srmagura, @Andarist! - Change the argument of the shouldForwardProp option of styled from PropertyKey to string in the TypeScript definitions.
  • #2333 3055efdd Thanks @Andarist! - shouldForwardProp has been changed from being a bivariant method to a contravariant function - it improves the type-safety for those that type this option.
  • #2333 3055efdd Thanks @antongolub! - FilteringStyledOptions and StyledOptions types no longer require a type argument for the Props generic.

11.0.0

Major Changes

  • 95ea2839 #2014 Thanks @Andarist! - Functions are no longer accepted as values for the style prop. This unifies the behavior with the web version of Emotion as style's equivalent is className prop and functions are not resolved for it.
  • 139ea336 #2060 Thanks @efoken! - StyleSheet.create is used now under the hood. This means that when used in combination with React Native Web atomic class names are applied on components instead of inline styles.
  • 95ea2839 #2014 Thanks @Andarist! - Updated css-to-react-native dependency to the 3.x version - it comes with some breaking changes listed here.

Minor Changes

  • 843bfb11 #1630 Thanks @Andarist! - @emotion/native & @emotion/primitives packages come with macros now. Both can be used as @emotion/native/macro & @emotion/primitives/macro respectively.

Patch Changes

  • 11fc27f8 #1750 Thanks @Zn4rK! - Match supported components to what is exported from the latest version of React Native (0.61.5).
  • db16ac35 #2013 Thanks @Andarist! - Fixed an issue with styles being lost for nested factory calls like:

    const bgColor = color => css`
      background-color: ${color};
    `
    
    const Text = styled.Text`
      color: hotpink;
      ${({ backgroundColor }) => bgColor(backgroundColor)};
    `
  • Updated dependencies [95ea2839, db16ac35, 95ea2839, 139ea336, 79036056, 2d597857]:

    • @emotion/primitives-core@11.0.0

11.0.0-rc.0

Major Changes

Patch Changes

  • Updated dependencies [9c4ebc16]:
    • @emotion/primitives-core@11.0.0-rc.0

11.0.0-next.19

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.19

11.0.0-next.18

Major Changes

  • 95ea2839 #2014 Thanks @Andarist! - Updated css-to-react-native dependency to the 3.x version - it comes with some breaking changes listed here.
  • 95ea2839 #2014 Thanks @Andarist! - Functions are no longer accepted as values for the style prop. This unifies the behavior with the web version of Emotion as style's equivalent is className prop and functions are not resolved for it.

Patch Changes

  • db16ac35 #2013 Thanks @Andarist! - Fixed an issue with styles being lost for nested factory calls like:

    const bgColor = color => css`
      background-color: ${color};
    `
    
    const Text = styled.Text`
      color: hotpink;
      ${({ backgroundColor }) => bgColor(backgroundColor)};
    `
  • Updated dependencies [95ea2839, db16ac35, 95ea2839]:

    • @emotion/primitives-core@11.0.0-next.18

11.0.0-next.17

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.17

11.0.0-next.16

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.16

11.0.0-next.15

Minor Changes

  • 620f7327 #1954 Thanks @Andarist! - Reworked TypeScript types around types for React Native's core components. All of them, and all wrapped class components, should now accept ref prop properly.

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.15

11.0.0-next.14

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.14

11.0.0-next.13

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.13

11.0.0-next.12

Patch Changes

  • 11fc27f8 #1750 Thanks @Zn4rK! - Match supported components to what is exported from the latest version of React Native (0.61.5).

  • Updated dependencies []:

    • @emotion/primitives-core@11.0.0-next.12

11.0.0-next.11

Patch Changes

11.0.0-next.10

Minor Changes

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.10

11.0.0-next.9

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.9

11.0.0-next.8

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.8

11.0.0-next.7

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.7

11.0.0-next.6

Minor Changes

  • 843bfb11 #1630 Thanks @Andarist! - @emotion/native & @emotion/primitives packages come with macros now. Both can be used as @emotion/native/macro & @emotion/primitives/macro respectively.

Patch Changes

  • Updated dependencies []:
    • @emotion/primitives-core@11.0.0-next.6

11.0.0-next.5

Patch Changes

  • Updated dependencies []:
    • emotion-theming@11.0.0-next.5
    • @emotion/primitives-core@11.0.0-next.5

11.0.0-next.4

Patch Changes

  • Updated dependencies []:
    • emotion-theming@11.0.0-next.4
    • @emotion/primitives-core@11.0.0-next.4

11.0.0-next.3

Patch Changes

  • Updated dependencies []:
    • emotion-theming@11.0.0-next.3
    • @emotion/primitives-core@11.0.0-next.3

11.0.0-next.2

Major Changes

Patch Changes

  • Updated dependencies [79036056]:
    • emotion-theming@11.0.0-next.2
    • @emotion/primitives-core@11.0.0-next.2

11.0.0-next.1

Patch Changes

  • Updated dependencies [1eaa3a38]:
    • emotion-theming@11.0.0-next.1
    • @emotion/primitives-core@11.0.0-next.1

11.0.0-next.0

Major Changes

  • 302bdba1 #1600 Thanks @mitchellhamilton! - Ensure packages are major bumped so that pre-release versions of the linked packages are consistent in the major number

Patch Changes

  • Updated dependencies [302bdba1]:
    • emotion-theming@11.0.0-next.0
    • @emotion/primitives-core@11.0.0-next.0

10.0.27

Patch Changes

  • 4c62ae9 #1698 Thanks @Andarist! - Add LICENSE file
  • Updated dependencies [4c62ae9]:
    • emotion-theming@10.0.27
    • @emotion/primitives-core@10.0.27

10.0.22

Patch Changes

  • ae90f000 #841 Thanks @nitin42! - Improve error message for shorthand properties with missing units.

  • Updated dependencies [ae90f000]:

    • @emotion/primitives-core@10.0.22

10.0.14

Patch Changes

10.0.11

Patch Changes