Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update babel-plugin-react-native-web to the latest version 🚀 #144

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

greenkeeper[bot]
Copy link

@greenkeeper greenkeeper bot commented May 19, 2018

Version 0.7.0 of babel-plugin-react-native-web was just published.

Dependency babel-plugin-react-native-web
Current Version 0.5.4
Type devDependency

The version 0.7.0 is not covered by your current version range.

If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.

It might be worth looking into these changes and trying to get this project onto the latest version of babel-plugin-react-native-web.

If you have a solid test suite and good coverage, a passing build is a strong indicator that you can take advantage of these changes directly by merging the proposed change into your project. If the build fails or you don’t have such unconditional trust in your tests, this branch is a great starting point for you to work on the update.


Release Notes 0.7.0

Breaking changes

  • ES modules are now exported and the package is labelled sideEffect:false. Babel plugin is legacy. (c4864f5)
  • Fixes and potential breaking changes to the Responder system. TheResponderEventPlugin now rejects browser emulated mouse events that occur after touch events. This fixes several issues, but it's possible that you may have depended on the previously incorrect behaviour #835 #888 #932. (edc99e7)
  • Remove erroneous NetInfo.isConnected.getConnectionInfo() API. (8b1e6f8)

New features

  • Support for CSP policy requiring nonce on <style>. (ee5e800)
  • Mark focusable DOM nodes with 'data-focusable' for integration with TV focus libraries #827. (e8f2c98)

Fixes

  • Fix onLayout without ResizeObserver #911 #941. (dcdf146)
  • Fix findNodeHandle import in VirtualizedList. (02b6f3f)
  • Flex styles can be applied as inline styles #798. (1e8577f)
  • Remove browser UI from numeric TextInput in Firefox #900. (96c3f09)
FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper bot 🌴

@greenkeeper
Copy link
Author

greenkeeper bot commented May 19, 2018

Version 0.7.1 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented May 19, 2018

Version 0.7.2 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented May 26, 2018

Version 0.7.3 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 4, 2018

Version 0.8.0 just got published.

Update to this version instead 🚀

Release Notes 0.8.0

This release provides compatibility with the vast majority of React Native v0.55.

Breaking changes

  • Use of the responder events on an element will now prevent the browser's default click behavior #970. (c336995)
  • The props passed to ReactDOM are now whitelisted #898. (e0f010d)
  • A jest preset is included in the react-native-web package and should be used in place of the previous snapshot serializer. (8f0c39c)
  • StyleSheet.hairlineWidth is now always 1 due to browser rounding errors. (3f8624e)
  • Image is no longer draggable by default. (0eae7be)
  • Image decoding is async when possible, no longer uses requestIdleCallback internally #764. (b8f54f6)
  • Linking API updates the application document's URL and supports deep-links. (0ee3310)
  • Animated update. (f254c8e)
  • ListView update. (5fcb36f)
  • Export basic stubs for platform-specific modules that may be imported (but not rendered / called) in files running on web. (cf43ffd)

New features

  • Image supports blurRadius and tintColor, as well as correctly applying shadows to image pixels. (3153cd8)
  • Text support for textDecoration{Color,Style} styles. (f62ed22)
  • Share support (using WebShare API.) (10407f3)
  • SwipeableFlatList support. (b299eb6)
  • SwipeableListView support. (b299eb6)
  • SectionList support. (377f23f)
  • FlatList support. (fc0b814)
  • ScrollView supports stickyHeaderIndices #434. (bb66639)
  • DeviceInfo basic support. (206a236)
  • LayoutAnimation basic support. (cb545b0)
  • NativeEventEmitter support. (ea744fe)
  • Alert API stub. (19b356a).
  • babel-plugin-react-native-web can be configured to rewrite paths to either the CommonJS or ESModule exports #961. (026a92f)

Fixes

  • Shadow style props are resolved as per React Native. (a40521f and da38e87)
  • Clipboard preserves line breaks in original source #979. (14f7dfd)
  • Image implements resizeMode=center|repeat as per React Native. (9fb818c)
  • NativeModules includes UIManager property. (bfaca05)
  • UIManager measurement tasks don't block the main thread. (b4e3427)
  • Image layout in Firefox. (a82cfbe)
  • Image loading callbacks are correctly called when rendering an image assumed to be in the browser cache. (d5c6b98)
  • Image doesn't throw error when loading an empty string source #962. (16b2fb9)
  • Add target property to onLayout event object. (0816c40)
  • TextInput allows numbers-and-punctuation keyboardType. (2756ab4)
  • InteractionManager basic support improvements. (f684a36)
  • ScrollView is scrollable when horizontal and combined with RefreshControl. (c003604)
  • AppState doesn't throw an error for memoryWarning event. (4bc16fa)
  • Vibration includes a default pattern. (2237777)
  • ImageBackground now works with <Text> children. (6a22528)
  • processColor is now compatible with React Native. (ff5a928)
  • All CommonJS exports in the package can be imported without adding .default to the require statement. (61bf7e7)
  • Fix issues related to webpack bundling of modules mixing import and module.exports. (e317062)

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 5, 2018

Version 0.8.1 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 5, 2018

Version 0.8.2 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 6, 2018

Version 0.8.3 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 14, 2018

Version 0.8.4 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 26, 2018

Version 0.8.5 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 28, 2018

Version 0.8.6 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 5, 2018

Version 0.8.7 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 6, 2018

Version 0.8.8 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 19, 2018

Version 0.8.9 just got published.

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Dec 31, 2018

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 1, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 7, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 13, 2019

Update to this version instead 🚀

Release Notes for 0.11.0

This release includes: a refactor of StyleSheet internals to improve browser layout times; improved compatibility with React Native; reduced bundle sizes in worse-case-scenario; and improved text truncation capabilities in supporting browsers.

Breaking changes

  • CSS output has changed to better optimize browser layout times (9f860b8 and d4417e9)
  • Remove the default export from the ESM build to help with tree-shaking (69bd0f6)
  • Remove ART from the exports to reduce CJS bundle size (3d3ea9a)
  • Remove resizeMode static from Image (49edcb2)
  • Replace outline with outline{Color,Style,Width} styles (f048d84)
  • Replace animationName prop with animationKeyframes prop.

Deprecations

  • The className prop on View and Text is deprecated and will be removed shortly (d50f630)

New features

  • Add TextInput support for onContentSizeChange, by @awinograd (67979b7)
  • Add Text support for numberOfLines greater than 1. Only supported in WebKit and Blink browsers; limited localization support (f048d84)

Fixes

  • Organize unimplemented modules in directories to help reduce CJS build size, by @EvanBacon (2a418be)
  • Fix the NativeEventEmitter implementation @EvanBacon (9ce2b5b)
  • Allow text shadow to be set if only a textShadowBlur and textShadowColor are provided, by @SKAhack (cf7b020)
  • Fix animation style prop types.
  • Fix use of maxWidth with Text using numberOfLines prop.
  • Passing null values for style props now produces improved compatibility with React Native rendering.

Appendix

  • StyleSheet refactor reduces browser layout times in the stress tests by up to 30%.
  • StyleSheet refactor reduces HTML payload size for SRR, e.g., the size of the HTML produced by the Twitter PWA's initial home timeline rendering is reduced from 25.56 KB to 21.35 KB (-16%) gzipped.

@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 16, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Mar 22, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented May 21, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented May 21, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jul 2, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 9, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Aug 16, 2019

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jan 24, 2020

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 6, 2020

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Feb 24, 2020

Update to this version instead 🚀

@greenkeeper
Copy link
Author

greenkeeper bot commented Jun 2, 2020


🚨 Reminder! Less than one month left to migrate your repositories over to Snyk before Greenkeeper says goodbye on June 3rd! 💜 🚚💨 💚

Find out how to migrate to Snyk at greenkeeper.io


Update to this version instead 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant