Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

fix(deps): update dependency react-native-web to v0.18.10 #562

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 11, 2022

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
react-native-web 0.17.1 -> 0.18.10 age adoption passing confidence

Release Notes

necolas/react-native-web

v0.18.10

Compare Source

v0.18.9

Compare Source

v0.18.8

Compare Source

v0.18.7

Compare Source

v0.18.6

Compare Source

v0.18.5

Compare Source

v0.18.4

Compare Source

v0.18.3

Compare Source

v0.18.2

Compare Source

v0.18.1

Compare Source

v0.18.0: 0.18

Compare Source

Breaking changes

  • Browser support has been reduced. Changes as follows: Safari 10.1+, Edge (Chromium), no IE, no legacy Android browser.
  • Styles are inserted on module eval, not component render. This is needed to account for changes to rendering in React 18.
  • Style sheets rendered on the server will now include styles from all the eval-ed modules, rather than only the styles produced by the initial render.
  • StyleSheet.create() is now the identify function, returning the input style objects. Previously, it replaced styles with numeric ids. This improves compatibility with React Native, but accessing the returned style objects at runtime is still not recommended as it can prevent static extraction to CSS. (#​2068)
  • StyleSheet.getSheet() can be used on the server to retrieve the current style sheet as a CSS string. (#​2196)
  • I18nManager is now a mock API included only for compatibility with React Native. The ability to flip left/right properties or values has now been removed entirely (use start/end instead). See below for new localization APIs.
  • Inline styles are no longer automatically vendor-prefixed. This improves inline style performance and discourages use of inline styles. This should have little effect in practice if your app is predominantly using StyleSheet.create().
  • The deprecated accessible, accessibilityState, and accessibilityValue props have been removed.
  • The :focus-visible polyfill has been removed, as by default modern browsers no longer show focus rings for pointer interactions.
  • VirtualizedList, FlatList, and SectionList vendor components have been updated to match latest React Native. (#​2241) Thanks to @​DavidRieman.
  • The legacy jest preset and snapshot serializer has been removed from the npm package.
  • The unstable_createElement API has changed. Children are no longer accepted as the 3rd argument, they must be included in the props as the 2nd argument. The 3rd argument is now an options object with a field to set the expected writing direction ({ writingDirection }).

New features

  • Localized LTR/RTL layouts can now be nesting to arbitrary depths simply by setting the dir or lang prop on a component. By default, layouts are rendering RTL. To render RTL you must set dir="rtl" on an outer element rendered by React.
  • Localized LTR/RTL layouts can be switched dynamically at runtime.
  • useLocaleContext is a new export API. Use it to query a component's locale and writing direction context for fine-grained control over localized layout.
  • Rendering into multiple windows and shadow roots in now supported. (#​1517, #​2138)
  • Extraction to static CSS and consumption of external CSS is now possible but not yet recommended. The StyleSheet runtime can consume any styles that match an expected format, but StyleSheet.flatten cannot work with extracted styles. (See below for more details.)

Fixes

  • Fixes static and dynamic shortform / longform deduplication. (#​2007)
  • Display the focus ring on CheckBox and Switch elements. (#​2242)
  • Prevent href navigation for disabled Pressables and Touchables. (#​2299)
  • Linking.openURL supports target value. (#​2277)

Notes

StyleSheet runtime

StyleSheet has been rewritten to better separate the runtime from the compiler. The performance of the new merging runtime is on par with using css-modules. The core runtime is a standalone package called styleQ; refer to the styleQ documentation for more details.

image

The performance of inline styles has also been significantly improved, although StyleSheet still has to perform extra work to transform non-standard React Native styles and polyfill logical styles.

image

The StyleSheet import is now a standalone module. StyleSheet itself is a function that can be called to resolve styles to DOM className and style values, e.g.,

const [ className, inlineStyle ] = StyleSheet([ styles.root, prop.styles ])
StyleSheet extraction

One of the benefits behind the new architecture is that StyleSheet can resolve compiled styles that conform to the expected format, whether they are produced by the built-in compiler or an external source. However, this is not yet recommended, as explained below.

Style compilers must produce annotated objects that are treated as class name maps, and classes are de-duplicated based on whether they share the same key, e.g.,

{
  $$css: true,
  display: 'display-class',
  opacity: 'opacity-class'
}

This is the first step towards allowing 3rd party tools to extract styles to static CSS files, and optionally dropping the client-side compiler, without needing to integrate deeply with the StyleSheet runtime or having to modify props/prop values in the source code, i.e., only the StyleSheet.create() call needs transforming by the compiler.

The existence of the StyleSheet.flatten() API is a problem for build-time compiling of some styles. Components that flatten styles (e.g., Animated, Image) expect to be able to work with the source styles, and use the source values at runtime. A compiler that aims to extract all styles and have no runtime transform would also need to disallow the use of StyleSheet.flatten() entirely. A future release of React Native for Web may remove use of StyleSheet.flatten from internal implementations, but cannot prevent this API from being used in product code or 3rd party packages.

v0.17.7

Compare Source

v0.17.6

Compare Source

v0.17.5

Compare Source

v0.17.4

Compare Source

v0.17.3

Compare Source

v0.17.2

Compare Source


Configuration

📅 Schedule: Branch creation - "after 4pm on friday,before 9am on monday,every weekend" in timezone Europe/Paris, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch 2 times, most recently from b04b598 to 97ec98d Compare February 18, 2022 20:53
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.17.5 fix(deps): update dependency react-native-web to v0.17.6 Feb 18, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 97ec98d to ef2fcf1 Compare February 25, 2022 15:54
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from ef2fcf1 to 3255669 Compare March 4, 2022 16:52
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.17.6 fix(deps): update dependency react-native-web to v0.17.7 Mar 4, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch 2 times, most recently from 0f54aca to 670040a Compare May 20, 2022 16:10
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 670040a to c473d59 Compare June 3, 2022 14:42
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from c473d59 to 9434e26 Compare June 10, 2022 21:55
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.17.7 fix(deps): update dependency react-native-web to v0.18.0 Jun 11, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 9434e26 to 5d17c8d Compare June 17, 2022 16:01
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.0 fix(deps): update dependency react-native-web to v0.18.1 Jun 17, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 5d17c8d to 5c727c5 Compare June 24, 2022 14:43
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 5c727c5 to 00c652a Compare July 1, 2022 16:11
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.1 fix(deps): update dependency react-native-web to v0.18.2 Jul 1, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 00c652a to f245604 Compare July 2, 2022 19:42
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.2 fix(deps): update dependency react-native-web to v0.18.3 Jul 2, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from f245604 to 7069d88 Compare July 3, 2022 01:05
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.3 fix(deps): update dependency react-native-web to v0.18.4 Jul 3, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 7069d88 to e5fb9a3 Compare July 8, 2022 14:48
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.4 fix(deps): update dependency react-native-web to v0.18.6 Jul 8, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from e5fb9a3 to b5634ac Compare July 22, 2022 16:30
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.6 fix(deps): update dependency react-native-web to v0.18.7 Jul 22, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from b5634ac to 257752c Compare August 5, 2022 16:59
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 257752c to 2da1e4f Compare August 26, 2022 14:32
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.7 fix(deps): update dependency react-native-web to v0.18.8 Aug 26, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 2da1e4f to 9cb8801 Compare September 2, 2022 15:09
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.8 fix(deps): update dependency react-native-web to v0.18.9 Sep 2, 2022
@renovate renovate bot force-pushed the renovate/react-native-web-0.x branch from 9cb8801 to 89d06c1 Compare November 20, 2022 10:50
@renovate renovate bot changed the title fix(deps): update dependency react-native-web to v0.18.9 fix(deps): update dependency react-native-web to v0.18.10 Nov 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants