Commit Graph

59 Commits

Author SHA1 Message Date
Kou 46286b2723 fix(package.json): Warning because peerDependencies >=0.57 <0.59 (#279) (#327) 2019-02-08 12:27:07 +01:00
semantic-release-bot 3497ae9411 chore(release): 5.0.6 [skip ci]
## [5.0.6](https://github.com/react-native-community/react-native-webview/compare/v5.0.5...v5.0.6) (2019-02-06)

### Bug Fixes

* **WKWebView.m:** Reapplied [#134](https://github.com/react-native-community/react-native-webview/issues/134) with additional checks to tackle unintentional scrolls ([#296](https://github.com/react-native-community/react-native-webview/issues/296)) ([3f58b0e](https://github.com/react-native-community/react-native-webview/commit/3f58b0e))
2019-02-06 14:32:01 +00:00
semantic-release-bot a76e0ae811 chore(release): 5.0.5 [skip ci]
## [5.0.5](https://github.com/react-native-community/react-native-webview/compare/v5.0.4...v5.0.5) (2019-02-05)

### Bug Fixes

* **iOS/android getViewManagerConfig:** Fix crash with react-native < 0.58 ([263fc5e](https://github.com/react-native-community/react-native-webview/commit/263fc5e))
2019-02-05 14:59:05 +00:00
semantic-release-bot 0fe45de879 chore(release): 5.0.4 [skip ci]
## [5.0.4](https://github.com/react-native-community/react-native-webview/compare/v5.0.3...v5.0.4) (2019-02-04)

### Bug Fixes

* **UIWebview:** Deprecate UIWebView and add link to issue ([#313](https://github.com/react-native-community/react-native-webview/issues/313)) ([4c80240](https://github.com/react-native-community/react-native-webview/commit/4c80240))
2019-02-04 18:00:23 +00:00
semantic-release-bot 0535c04c11 chore(release): 5.0.3 [skip ci]
## [5.0.3](https://github.com/react-native-community/react-native-webview/compare/v5.0.2...v5.0.3) (2019-02-04)

### Bug Fixes

* **android/iOS:** Fixed react-native 0.58 warnings ([#311](https://github.com/react-native-community/react-native-webview/issues/311)) ([4a4ccd8](https://github.com/react-native-community/react-native-webview/commit/4a4ccd8))
2019-02-04 13:14:47 +00:00
Thibault Malbranche 4a4ccd8141
fix(android/iOS): Fixed react-native 0.58 warnings (#311) 2019-02-04 14:13:14 +01:00
semantic-release-bot 49b44284ce chore(release): 5.0.2 [skip ci]
## [5.0.2](https://github.com/react-native-community/react-native-webview/compare/v5.0.1...v5.0.2) (2019-02-03)

### Bug Fixes

* **webviewShared.js:** Support all valid URI schemes and add testing ([#293](https://github.com/react-native-community/react-native-webview/issues/293)) ([fb78d13](https://github.com/react-native-community/react-native-webview/commit/fb78d13)), closes [/tools.ietf.org/html/rfc3986#section-3](https://github.com//tools.ietf.org/html/rfc3986/issues/section-3)
2019-02-03 18:47:33 +00:00
Malcolm Scruggs fb78d13120 fix(webviewShared.js): Support all valid URI schemes and add testing (#293)
* Change origin whitelist to allow for all valid URIs

- Now supports +, -, and .
- Prevent whitelist from matching when preceded by unwanted characters
- URI must begin with letter
- URI Scheme syntax: https://tools.ietf.org/html/rfc3986#section-3.1

* Add jest testing framework and run it on CI

* Add tests for WebViewShared's createOnShouldStartLoadWithRequest
2019-02-03 19:45:58 +01:00
semantic-release-bot b3a07b22b3 chore(release): 5.0.1 [skip ci]
## [5.0.1](https://github.com/react-native-community/react-native-webview/compare/v5.0.0...v5.0.1) (2019-02-01)

### Bug Fixes

* **PostMessage:** Renamed ReactNativeWebview to ReactNativeWebView ([d5fc028](https://github.com/react-native-community/react-native-webview/commit/d5fc028)), closes [#304](https://github.com/react-native-community/react-native-webview/issues/304)
2019-02-01 21:05:40 +00:00
semantic-release-bot 2d80402d9f chore(release): 5.0.0 [skip ci]
# [5.0.0](https://github.com/react-native-community/react-native-webview/compare/v4.1.0...v5.0.0) (2019-02-01)

### Features

* **Android/iOS postMessage:** refactoring the old postMessage implementation ([#303](https://github.com/react-native-community/react-native-webview/issues/303)) ([f3bdab5](https://github.com/react-native-community/react-native-webview/commit/f3bdab5)), closes [#29](https://github.com/react-native-community/react-native-webview/issues/29) [#272](https://github.com/react-native-community/react-native-webview/issues/272) [#221](https://github.com/react-native-community/react-native-webview/issues/221) [#105](https://github.com/react-native-community/react-native-webview/issues/105) [#66](https://github.com/react-native-community/react-native-webview/issues/66)

### BREAKING CHANGES

* **Android/iOS postMessage:** Communication from webview to react-native has been completely rewritten. React-native-webview will not use or override window.postMessage anymore. Reasons behind these changes can be found throughout so many issues that it made sense to go that way.

Instead of using window.postMessage(data, *), please now use window.ReactNativeWebView.postMessage(data).

Side note: if you wish to keep compatibility with the old version when you upgrade, you can use the injectedJavascript prop to do that:

const injectedJavascript = `(function() {
  window.postMessage = function(data) {
    window.ReactNativeWebView.postMessage(data);
  };
})()`;

Huge thanks to @jordansexton and @KoenLav!
2019-02-01 17:38:54 +00:00
semantic-release-bot 79afbd697d chore(release): 4.1.0 [skip ci]
# [4.1.0](https://github.com/react-native-community/react-native-webview/compare/v4.0.0...v4.1.0) (2019-02-01)

### Features

* **WKwebview:** Allow _target links to be opened up in the same way as UIWebView. ([#270](https://github.com/react-native-community/react-native-webview/issues/270)) ([6643a8e](https://github.com/react-native-community/react-native-webview/commit/6643a8e)), closes [#139](https://github.com/react-native-community/react-native-webview/issues/139)
2019-02-01 01:19:38 +00:00
semantic-release-bot 27b6804ee7 chore(release): 4.0.0 [skip ci]
# [4.0.0](https://github.com/react-native-community/react-native-webview/compare/v3.2.2...v4.0.0) (2019-01-30)

### Features

* **iOS/Android:** Add `cacheEnabled` prop ([#152](https://github.com/react-native-community/react-native-webview/issues/152)) ([83ce79f](https://github.com/react-native-community/react-native-webview/commit/83ce79f))

### BREAKING CHANGES

* **iOS/Android:** This change makes caching enabled by default when previously there was no caching behavior which may cause unexpected behaviour changes in your existing implementations.
2019-01-30 09:34:23 +00:00
semantic-release-bot 7e9592c08b chore(release): 3.2.2 [skip ci]
## [3.2.2](https://github.com/react-native-community/react-native-webview/compare/v3.2.1...v3.2.2) (2019-01-29)

### Bug Fixes

* **android:** Fix Download on android P  ([#273](https://github.com/react-native-community/react-native-webview/issues/273)) ([15d904f](https://github.com/react-native-community/react-native-webview/commit/15d904f)), closes [#266](https://github.com/react-native-community/react-native-webview/issues/266)
2019-01-29 09:07:15 +00:00
semantic-release-bot c518f716c6 chore(release): 3.2.1 [skip ci]
## [3.2.1](https://github.com/react-native-community/react-native-webview/compare/v3.2.0...v3.2.1) (2019-01-23)

### Bug Fixes

* **Gradle:** Allow kotlinVersion override using ext with gradle.properties ([#267](https://github.com/react-native-community/react-native-webview/issues/267)) ([2846e27](https://github.com/react-native-community/react-native-webview/commit/2846e27))
2019-01-23 00:59:21 +00:00
semantic-release-bot 1f80927c38 chore(release): 3.2.0 [skip ci]
# [3.2.0](https://github.com/react-native-community/react-native-webview/compare/v3.1.3...v3.2.0) (2019-01-22)

### Features

* **android props:** Add `androidHardwareAccelerationDisabled` prop ([#265](https://github.com/react-native-community/react-native-webview/issues/265)) ([d3fc5e6](https://github.com/react-native-community/react-native-webview/commit/d3fc5e6))
2019-01-22 09:22:43 +00:00
semantic-release-bot 2e7960b19d chore(release): 3.1.3 [skip ci]
## [3.1.3](https://github.com/react-native-community/react-native-webview/compare/v3.1.2...v3.1.3) (2019-01-18)

### Bug Fixes

* **gradle:** Add support library as a dependency ([#253](https://github.com/react-native-community/react-native-webview/issues/253)) ([5180033](https://github.com/react-native-community/react-native-webview/commit/5180033)), closes [#174](https://github.com/react-native-community/react-native-webview/issues/174) [#184](https://github.com/react-native-community/react-native-webview/issues/184) [#245](https://github.com/react-native-community/react-native-webview/issues/245)
2019-01-18 15:42:57 +00:00
semantic-release-bot cf039a550b chore(release): 3.1.2 [skip ci]
## [3.1.2](https://github.com/react-native-community/react-native-webview/compare/v3.1.1...v3.1.2) (2019-01-11)

### Bug Fixes

* **WKWebview:** Update webview property when allowsBackForwardNavigationGestures prop changes ([#173](https://github.com/react-native-community/react-native-webview/issues/173)) ([4bc1dc2](https://github.com/react-native-community/react-native-webview/commit/4bc1dc2))
2019-01-11 18:55:24 +00:00
semantic-release-bot ac406bf66f chore(release): 3.1.1 [skip ci]
## [3.1.1](https://github.com/react-native-community/react-native-webview/compare/v3.1.0...v3.1.1) (2019-01-11)

### Bug Fixes

* **WKWebView:** Add "Frame load interrupted" error handling for OAuth ([#147](https://github.com/react-native-community/react-native-webview/issues/147)) ([6f61224](https://github.com/react-native-community/react-native-webview/commit/6f61224))
2019-01-11 14:03:17 +00:00
semantic-release-bot c9a777bdfb chore(release): 3.1.0 [skip ci]
# [3.1.0](https://github.com/react-native-community/react-native-webview/compare/v3.0.3...v3.1.0) (2019-01-11)

### Features

* **WKWebview:** Add incognito prop to iOS WKWebview ([62f871c](https://github.com/react-native-community/react-native-webview/commit/62f871c))
2019-01-11 14:00:30 +00:00
semantic-release-bot 6d64db99ec chore(release): 3.0.3 [skip ci]
## [3.0.3](https://github.com/react-native-community/react-native-webview/compare/v3.0.2...v3.0.3) (2019-01-11)

### Bug Fixes

* **android:** Blank screen due to missing super() call in RNCWebViewManager.java ([#241](https://github.com/react-native-community/react-native-webview/issues/241)) ([4e1d113](https://github.com/react-native-community/react-native-webview/commit/4e1d113)), closes [#240](https://github.com/react-native-community/react-native-webview/issues/240) [#224](https://github.com/react-native-community/react-native-webview/issues/224)
2019-01-11 09:46:34 +00:00
semantic-release-bot 09a9e57b71 chore(release): 3.0.2 [skip ci]
## [3.0.2](https://github.com/react-native-community/react-native-webview/compare/v3.0.1...v3.0.2) (2019-01-10)

### Bug Fixes

* **android:** replace deprecated `WebView.PictureListener`->`onContentSizeChange` impl ([#164](https://github.com/react-native-community/react-native-webview/issues/164)) ([9014c4c](https://github.com/react-native-community/react-native-webview/commit/9014c4c))
2019-01-10 10:39:14 +00:00
semantic-release-bot 028e3f8512 chore(release): 3.0.1 [skip ci]
## [3.0.1](https://github.com/react-native-community/react-native-webview/compare/v3.0.0...v3.0.1) (2019-01-10)

### Bug Fixes

* **android:** cleanup `build.gradle` & fix [#218](https://github.com/react-native-community/react-native-webview/issues/218) ([#238](https://github.com/react-native-community/react-native-webview/issues/238)) ([24ec4f7](https://github.com/react-native-community/react-native-webview/commit/24ec4f7))
2019-01-10 10:25:22 +00:00
semantic-release-bot f64f526376 chore(release): 3.0.0 [skip ci]
# [3.0.0](https://github.com/react-native-community/react-native-webview/compare/v2.15.0...v3.0.0) (2019-01-07)

### Features

* **WKWebview:** Add shared process pool so cookies and localStorage are shared across webviews in iOS ([#138](https://github.com/react-native-community/react-native-webview/issues/138)) ([afadc62](https://github.com/react-native-community/react-native-webview/commit/afadc62)), closes [#68](https://github.com/react-native-community/react-native-webview/issues/68)

### BREAKING CHANGES

* **WKWebview:** useSharedProcessPool prop is set to true by default. If you want the old behavior, please use useSharedProcessPool={false}
2019-01-07 14:20:36 +00:00
semantic-release-bot 335792ce4c chore(release): 2.15.0 [skip ci]
# [2.15.0](https://github.com/react-native-community/react-native-webview/compare/v2.14.3...v2.15.0) (2019-01-07)

### Features

* **Android Webview:** Add file download support for Android ([#203](https://github.com/react-native-community/react-native-webview/issues/203)) ([2114a9b](https://github.com/react-native-community/react-native-webview/commit/2114a9b)), closes [#80](https://github.com/react-native-community/react-native-webview/issues/80)
2019-01-07 14:04:31 +00:00
semantic-release-bot ef2f7e1530 chore(release): 2.14.3 [skip ci]
## [2.14.3](https://github.com/react-native-community/react-native-webview/compare/v2.14.2...v2.14.3) (2018-12-14)

### Bug Fixes

* **WKWebview:** Reverts [#134](https://github.com/react-native-community/react-native-webview/issues/134), fixes issue where keyboard dismiss would scroll to top ([#210](https://github.com/react-native-community/react-native-webview/issues/210)) ([9f37dde](https://github.com/react-native-community/react-native-webview/commit/9f37dde))
2018-12-14 23:03:16 +00:00
semantic-release-bot 832356678c chore(release): 2.14.2 [skip ci]
## [2.14.2](https://github.com/react-native-community/react-native-webview/compare/v2.14.1...v2.14.2) (2018-12-14)

### Bug Fixes

* **WKWebview:** Surface evaluateJavaScript errors ([#179](https://github.com/react-native-community/react-native-webview/issues/179)) ([ec469cf](https://github.com/react-native-community/react-native-webview/commit/ec469cf))
2018-12-14 10:26:30 +00:00
semantic-release-bot 6eaca5f005 chore(release): 2.14.1 [skip ci]
## [2.14.1](https://github.com/react-native-community/react-native-webview/compare/v2.14.0...v2.14.1) (2018-12-14)

### Bug Fixes

* **WKWebview:** Fixed non-working iOS alert. ([#188](https://github.com/react-native-community/react-native-webview/issues/188)) ([41d9bdc](https://github.com/react-native-community/react-native-webview/commit/41d9bdc))
2018-12-14 10:20:18 +00:00
semantic-release-bot 42706fc733 chore(release): 2.14.0 [skip ci]
# [2.14.0](https://github.com/react-native-community/react-native-webview/compare/v2.13.0...v2.14.0) (2018-11-30)

### Features

* **Android Webview:** Support onShouldStartLoadWithRequest on Android ([#107](https://github.com/react-native-community/react-native-webview/issues/107)) ([b1b6626](https://github.com/react-native-community/react-native-webview/commit/b1b6626)), closes [#59](https://github.com/react-native-community/react-native-webview/issues/59) [#106](https://github.com/react-native-community/react-native-webview/issues/106) [#106](https://github.com/react-native-community/react-native-webview/issues/106)
2018-11-30 02:12:14 +00:00
semantic-release-bot 48230e4dcf chore(release): 2.13.0 [skip ci]
# [2.13.0](https://github.com/react-native-community/react-native-webview/compare/v2.12.1...v2.13.0) (2018-11-25)

### Features

* **WKWebView:** [ios] Add allowsLinkPreview property to WKWebView ([#170](https://github.com/react-native-community/react-native-webview/issues/170)) ([731dd03](https://github.com/react-native-community/react-native-webview/commit/731dd03))
2018-11-25 10:18:20 +00:00
semantic-release-bot 7918b360d0 chore(release): 2.12.1 [skip ci]
## [2.12.1](https://github.com/react-native-community/react-native-webview/compare/v2.12.0...v2.12.1) (2018-11-22)

### Bug Fixes

* **types:** Fixing typing. ([#167](https://github.com/react-native-community/react-native-webview/issues/167)) ([65bd972](https://github.com/react-native-community/react-native-webview/commit/65bd972))
2018-11-22 14:20:58 +00:00
semantic-release-bot 9ffb6711cc chore(release): 2.12.0 [skip ci]
# [2.12.0](https://github.com/react-native-community/react-native-webview/compare/v2.11.0...v2.12.0) (2018-11-22)

### Features

* **types:** Post message types ([#166](https://github.com/react-native-community/react-native-webview/issues/166)) ([0ff0fd3](https://github.com/react-native-community/react-native-webview/commit/0ff0fd3))
2018-11-22 14:11:22 +00:00
semantic-release-bot 3b247e3f1a chore(release): 2.11.0 [skip ci]
# [2.11.0](https://github.com/react-native-community/react-native-webview/compare/v2.10.0...v2.11.0) (2018-11-22)

### Features

* **WKWebview:** [ios] Add 'pagingEnabled' property to the iOS WKWebview ([#165](https://github.com/react-native-community/react-native-webview/issues/165)) ([4870e1f](https://github.com/react-native-community/react-native-webview/commit/4870e1f))
2018-11-22 12:59:10 +00:00
semantic-release-bot f79b7133c1 chore(release): 2.10.0 [skip ci]
# [2.10.0](https://github.com/react-native-community/react-native-webview/compare/v2.9.0...v2.10.0) (2018-11-21)

### Features

* **Android:** Support Android file upload ([#60](https://github.com/react-native-community/react-native-webview/issues/60)) ([752a5b2](https://github.com/react-native-community/react-native-webview/commit/752a5b2)), closes [#33](https://github.com/react-native-community/react-native-webview/issues/33)
2018-11-21 10:47:40 +00:00
semantic-release-bot f69942d70a chore(release): 2.9.0 [skip ci]
# [2.9.0](https://github.com/react-native-community/react-native-webview/compare/v2.8.1...v2.9.0) (2018-11-21)

### Features

* **types:** added missing types ([#157](https://github.com/react-native-community/react-native-webview/issues/157)) ([f70700d](https://github.com/react-native-community/react-native-webview/commit/f70700d))
2018-11-21 08:46:49 +00:00
semantic-release-bot 9b70012435 chore(release): 2.8.1 [skip ci]
## [2.8.1](https://github.com/react-native-community/react-native-webview/compare/v2.8.0...v2.8.1) (2018-11-20)

### Bug Fixes

* **WKWebView:** Fix the message handle bug. ([#143](https://github.com/react-native-community/react-native-webview/issues/143)) ([2b9292e](https://github.com/react-native-community/react-native-webview/commit/2b9292e))
2018-11-20 00:49:35 +00:00
semantic-release-bot 624ed340f4 chore(release): 2.8.0 [skip ci]
# [2.8.0](https://github.com/react-native-community/react-native-webview/compare/v2.7.1...v2.8.0) (2018-11-19)

### Features

* **WKWebview:** Add fix for keyboard dismiss leaving viewport shifted in iOS 12 ([#134](https://github.com/react-native-community/react-native-webview/issues/134)) ([5425039](https://github.com/react-native-community/react-native-webview/commit/5425039))
2018-11-19 10:23:08 +00:00
semantic-release-bot d398323b5b chore(release): 2.7.1 [skip ci]
## [2.7.1](https://github.com/react-native-community/react-native-webview/compare/v2.7.0...v2.7.1) (2018-11-19)

### Bug Fixes

* **WKWebview:** Fixed for supporting mediaPlaybackRequiresUserAction option under iOS 10. ([#129](https://github.com/react-native-community/react-native-webview/issues/129)) ([c0c0116](https://github.com/react-native-community/react-native-webview/commit/c0c0116))
2018-11-19 10:20:22 +00:00
semantic-release-bot 57e6134e67 chore(release): 2.7.0 [skip ci]
# [2.7.0](https://github.com/react-native-community/react-native-webview/compare/v2.6.0...v2.7.0) (2018-11-19)

### Features

* **WKWebview:** Add 'userAgent' property to the iOS WKWebView. ([#112](https://github.com/react-native-community/react-native-webview/issues/112)) ([2ec5fa5](https://github.com/react-native-community/react-native-webview/commit/2ec5fa5))
2018-11-19 10:15:16 +00:00
semantic-release-bot 24572d01a3 chore(release): 2.6.0 [skip ci]
# [2.6.0](https://github.com/react-native-community/react-native-webview/compare/v2.5.0...v2.6.0) (2018-11-19)

### Features

* **typings:** Add typescript definitions ([#95](https://github.com/react-native-community/react-native-webview/issues/95)) ([715fe61](https://github.com/react-native-community/react-native-webview/commit/715fe61))
2018-11-19 10:01:16 +00:00
doomsower 715fe61cc5 feat(typings): Add typescript definitions (#95)
Typescript definitions are based on flow
Tested them a bit in my project
I think couple of event types are screwed in flow definitions (synthetic/non-synthetic are mixed), tried my best to test which events are really received.
2018-11-19 10:59:21 +01:00
semantic-release-bot 30237f39ba chore(release): 2.5.0 [skip ci]
# [2.5.0](https://github.com/react-native-community/react-native-webview/compare/v2.4.3...v2.5.0) (2018-10-21)

### Features

* **WKWebview:** [iOS] Add 'allowsBackForwardNavigationGestures' property ([#97](https://github.com/react-native-community/react-native-webview/issues/97)) ([7f35344](https://github.com/react-native-community/react-native-webview/commit/7f35344))
2018-10-21 21:14:29 +00:00
semantic-release-bot d55ce2b7bf chore(release): 2.4.3 [skip ci]
## [2.4.3](https://github.com/react-native-community/react-native-webview/compare/v2.4.2...v2.4.3) (2018-10-18)

### Bug Fixes

* **semantic-release:** Added Missong devDeps for CI ([1394c7d](https://github.com/react-native-community/react-native-webview/commit/1394c7d))
* **semantic-release:** Use git plugin to auto commit ([c727dd9](https://github.com/react-native-community/react-native-webview/commit/c727dd9))
2018-10-18 09:44:14 +00:00
Thibault Malbranche 1394c7de06 fix(semantic-release): Added Missong devDeps for CI 2018-10-18 11:42:21 +02:00
Thibault Malbranche 171f778134 fix(semantic-release): Auto increment package.json
Bumped deps version to use new format
2018-10-18 11:31:19 +02:00
Bae Hyeonseung 59b513b754 fix(package.json): Add license to podspec and update package.json version dynamically. (#98)
Fix cocoapods install error and warning.
```
Fetching podspec for `react-native-webview` from `../node_modules/react-native-webview`
[!] The `react-native-webview` pod failed to validate due to 1 error:
    - WARN  | attributes: Missing required attribute `license`.
    - ERROR | version: The version of the spec should be higher than 0.
    - WARN  | license: Missing license type.
    - WARN  | source: Git sources should specify a tag.
```
2018-10-18 11:08:49 +02:00
Thibault Malbranche 525ebfa06e
chore(ci and npm): Setup CircleCI and semantic-release
Setup CircleCI and semantic-release
2018-10-17 14:54:44 +02:00
Thibault Malbranche e7534c2b61 Update package.json 2018-10-13 00:56:22 +02:00
Thibault Malbranche 7e0ef2354c Update package.json 2018-10-13 00:54:52 +02:00
Thibault Malbranche 8cb43c0722 Update package.json 2018-10-13 00:49:59 +02:00
Dulmandakh 8c60e5afcf depends on react-native@^0.57 2018-09-12 04:00:12 +08:00