|
| 1 | +# Changelog for `react-native-calendar-events` |
| 2 | + |
| 3 | +## 2.0.0 - 2020-08-01 |
| 4 | + |
| 5 | +In addition to bugfixes, this release introduces some minor breaking changes: |
| 6 | + |
| 7 | +- Support for React Native 0.60+ only |
| 8 | +- AndroidX support! |
| 9 | +- Android & iOS package name have changed. If you rely on React Native |
| 10 | + autolinking, you don't have to change a thing, otherwise, please see README to |
| 11 | + update installation instruction. |
| 12 | +- Permissions method names have changed for more explicit `checkPermissions` & |
| 13 | + `requestPermissions`. |
| 14 | +- For iOS, we now avoid crashes at all cost, which means |
| 15 | + - if a native method fails, it should be recoverable from JavaScript (promise |
| 16 | + rejection) - we tried to cover most native code part in the bridge to be |
| 17 | + able to catch all kind of exception |
| 18 | + - An exception has been made for fetching event: if some part of the |
| 19 | + serialization fails, a NSLog is emitted & the specific problematic part is |
| 20 | + ommited (eg: an alarm or a structuredLocation could be missing) and the |
| 21 | + process continues on other events. We keep in mind the idea of adding an |
| 22 | + `error` field into calendar event so the information is explicitely |
| 23 | + available from JavaScript. This is to avoid receving a promise rejection if |
| 24 | + you fetch 2 months of events & have a single tiny information that we failed |
| 25 | + to serialize. In this cases, you will receive all fetched calendar events |
| 26 | + with just a tiny information missing, which offers a better UX. |
| 27 | + |
| 28 | +### All platforms |
| 29 | + |
| 30 | +- Added `removeCalendar` method |
| 31 | + [#269](https://github.com/wmcmahan/react-native-calendar-events/pull/269) by |
| 32 | + [@hmcheu](https://github.com/hmcheu) |
| 33 | + |
| 34 | +### Android |
| 35 | + |
| 36 | +- Package is now `com.calendarevents.RNCalendarEvents` |
| 37 | + [a39efe7](https://github.com/wmcmahan/react-native-calendar-events/commit/a39efe79c730c578abe8614986d63520005a8e59) |
| 38 | + by [@MoOx](https://github.com/MoOx) |
| 39 | +- Fixed |
| 40 | + `'boolean android.database.Cursor.moveToNext()' on a null object reference` |
| 41 | + error |
| 42 | + [e7c9680](https://github.com/wmcmahan/react-native-calendar-events/commit/e7c9680dd24a84229df234abf82277115d3f4f00) |
| 43 | + by [@MoOx](https://github.com/MoOx) |
| 44 | +- Fixed parsing allowed availability |
| 45 | + [#268](https://github.com/wmcmahan/react-native-calendar-events/pull/268) by |
| 46 | + [@saghul](https://github.com/saghul) |
| 47 | +- Added AndroidX support for react-native 0.60 |
| 48 | + [#263](https://github.com/wmcmahan/react-native-calendar-events/pull/263) by |
| 49 | + [@yfuks](https://github.com/yfuks) |
| 50 | +- Added: use PermissionListener to avoid Android manual steps |
| 51 | + [#252](https://github.com/wmcmahan/react-native-calendar-events/pull/252) by |
| 52 | + [@saghul](https://github.com/saghul) |
| 53 | +- Added "NEVER ASK ME AGAIN" status added in Android |
| 54 | + [#273](https://github.com/wmcmahan/react-native-calendar-events/pull/273) by |
| 55 | + [@webtaculars](https://github.com/webtaculars) |
| 56 | +- Added key to skip setting timezone on Android |
| 57 | + [#271](https://github.com/wmcmahan/react-native-calendar-events/pull/271) by |
| 58 | + [@eleddie](https://github.com/eleddie) |
| 59 | + |
| 60 | +### iOS |
| 61 | + |
| 62 | +- Package is now `RNCalendarEvents` |
| 63 | + [5ea007c](https://github.com/wmcmahan/react-native-calendar-events/commit/5ea007c0cbb147f37b7c1b748e6acae0a9485b88) |
| 64 | + by [@MoOx](https://github.com/MoOx) |
| 65 | +- Fixed crashes related to structured location |
| 66 | + [#253](https://github.com/wmcmahan/react-native-calendar-events/pull/253) by |
| 67 | + [@eladgel](https://github.com/eladgel) & |
| 68 | + [4560a2f](https://github.com/wmcmahan/react-native-calendar-events/commit/4560a2ff883e1a8bad97ec16f3325d52ccccdff5) |
| 69 | + by [@MoOx](https://github.com/MoOx) |
| 70 | +- Fixed iOS 13 show bug |
| 71 | + [#279](https://github.com/wmcmahan/react-native-calendar-events/pull/279) by |
| 72 | + [@huang303513](https://github.com/huang303513) |
| 73 | +- Minimal version to iOS 9.0, like react-native 0.60 |
| 74 | + [5ea007c](https://github.com/wmcmahan/react-native-calendar-events/commit/5ea007c0cbb147f37b7c1b748e6acae0a9485b88) |
| 75 | + by [@MoOx](https://github.com/MoOx) |
| 76 | +- Avoid iOS crashes at all cost |
| 77 | + [314](https://github.com/wmcmahan/react-native-calendar-events/pull/314) by |
| 78 | + [@MoOx](https://github.com/MoOx) |
| 79 | + |
| 80 | +### Docs |
| 81 | + |
| 82 | +- Various minor README update |
| 83 | + [92c3238](https://github.com/wmcmahan/react-native-calendar-events/commit/92c3238eead14eb9a7d36398c3b9d17df0c9e270) |
| 84 | + by [@MoOx](https://github.com/MoOx) |
| 85 | +- Updated docs with correct type for string dates |
| 86 | + [#250](https://github.com/wmcmahan/react-native-calendar-events/pull/250) by |
| 87 | + [@hugofelp](https://github.com/eladgel) |
| 88 | + |
| 89 | +## Pre 2.0.0 |
| 90 | + |
| 91 | +For 1.7.x & before, please refer to |
| 92 | +[git history](https://github.com/wmcmahan/react-native-calendar-events/commits/master). |
0 commit comments