Skip to content

Latest commit

 

History

History
884 lines (380 loc) · 48.8 KB

CHANGELOG.md

File metadata and controls

884 lines (380 loc) · 48.8 KB

11.3.2 (2024-05-11)

Bug Fixes

  • types: isConnected / isInternetReachable should be boolean not true (#721) (6e2c422)

11.3.1 (2024-02-27)

Bug Fixes

  • update nativeInterface default export to support bridgeless mode (#717) (950410b)

11.3.0 (2024-02-14)

Features

11.2.1 (2023-12-12)

Bug Fixes

  • update internetReachability fetch abort (#706) (d44d5a8)

11.2.0 (2023-12-05)

Features

  • web: add support for Tizen and WebOS (#703) (030887e)

11.1.1 (2023-11-29)

Bug Fixes

  • internetReachability aborts handle cancel correctly (#700) (0a36296)

11.1.0 (2023-11-08)

Features

  • add useNetInfoInstance - a non singleton-state hook to manage configs / events independently (#687) (ca4c586)

11.0.1 (2023-11-07)

Bug Fixes

  • types: fix type error on new headers feature (#694) (270be4f)

11.0.0 (2023-11-04)

  • feat(android)!: specify export mode on BroadcastReceivers, requires compileSdk 33+ (#692) (a5864cc), closes #692

BREAKING CHANGES

    • compileSdk minimum is now 33
  • windows SDK minimum bumped to 10.0.17763.0 for current react-native-windows

10.0.0 (2023-11-01)

BREAKING CHANGES

  • netinfo now requires AbortController, node v16 / edge required it will likely not work on internet explorer from this version onwards

9.5.0 (2023-11-01)

Features

  • add optional reachabilityHeaders param to NetInfoConfiguration (#673) (0cbf067)

9.4.2 (2023-11-01)

Bug Fixes

  • types: add optional isWifiEnabled boolean to NetInfoUnknownState + NetInfoDisconnectedState (#680) (46c4c71)

9.4.1 (2023-06-29)

Bug Fixes

  • android: making rn >= 73 support also compatible with rn <= 66 (#676) (0c053eb)

9.4.0 (2023-06-29)

Features

  • android: add support for React Native 0.73 (#675) (224fdbb)

9.3.11 (2023-06-29)

Bug Fixes

9.3.10 (2023-05-05)

Bug Fixes

  • web: verify window exists before attempting to access navigator (#666) (60b99f2)

9.3.9 (2023-04-06)

Bug Fixes

  • android: avoid crash on devices without wifi (#662) (a519e59)

9.3.8 (2023-03-29)

Bug Fixes

  • windows: fix crash in GetCellularGeneration for some LTE network adapters (#660) (7e1c7fb)

9.3.7 (2022-11-28)

Bug Fixes

  • web: check window is defined before accessing (#646) (ba5c22c)

9.3.6 (2022-10-26)

Bug Fixes

  • android: return netmask of first IPv4 address (#634) (f740f45), closes #633

9.3.5 (2022-10-15)

Bug Fixes

  • windows: fix crash in getIpAddressSync (#631) (cc3ed0f)

9.3.4 (2022-10-05)

Bug Fixes

  • notify subscriptions after state changes (#630) (67c88be)

9.3.3 (2022-10-02)

Bug Fixes

  • macCatalyst: add compilation conditionals for macCatalyst (#629) (8e4cace)

9.3.2 (2022-09-25)

Bug Fixes

  • android, vpn: ensure downlink >= 0 for internetReachable to be true on vpn (#624) (20c2cd2)

9.3.1 (2022-09-18)

Bug Fixes

  • tests, mock: allow mocking netinfostate type for testing (#619) (956bceb)

9.3.0 (2022-06-28)

Features

  • add linkSpeed, rxLinkSpeed, txLinkSpeed info to wifi on android (#605) (8cad8b7), closes #604

9.2.0 (2022-06-28)

Features

  • add support for reachabilityMethod to specify GET or HEAD (#610) (3f5badd)

9.1.0 (2022-06-24)

Features

  • add parameter useNativeReachability to optionally choose non-native reachability test (#609) (9b02cac)

9.0.0 (2022-06-03)

  • fix(windows)!: change WindowsTargetPlatformVersion to 10.0 / drop arm32 / drop rnw < 0.63 (#603) (16d6568), closes #603

BREAKING CHANGES

  • needs react-native-windows 0.63+ and MSVC build tools v142+ (Visual Studio 2019+), drop arm32

8.3.1 (2022-05-30)

Bug Fixes

  • web: removeListeners should actually remove listeners (#600) (60e9e38)

8.3.0 (2022-04-22)

Features

8.2.0 (2022-03-18)

Features

8.1.0 (2022-03-02)

Features

  • windows, ip-address: add ipAddress info to windows details (#581) (11f3e3b)

8.0.0 (2022-02-10)

  • fix(CHANGELOG)!: note that v7.1.12 is breaking if you have wifi SSID permission (#574) (99072e0), closes #574

BREAKING CHANGES

  • it's possible this is a breaking change, depending on your app use case. If you relied on iOS SSID information and met Apple's strict criteria for accessing SSID, you need to set the new config value shouldFetchWiFiSSID to true. If you set it to true and do not meet the criteria your app may crash due to a memory leak. All versions prior to 7.1.12 would attempt to fetch the information regardless of permission, leak memory, and possibly crash. This change avoids that crash.

7.1.12 (2022-02-09)

BREAKING CHANGE NOTICE - it's possible this is a breaking change, depending on your app use case. If you relied on iOS SSID information and met Apple's strict criteria for accessing SSID, you need to set the new config value shouldFetchWiFiSSID to true. If you set it to true and do not meet the criteria your app may crash due to a memory leak. All versions prior to 7.1.12 would attempt to fetch the information regardless of permission, leak memory, and possible crash. This change avoids that crash.

Bug Fixes

  • ios: avoid memory leak from ssid APIs by adding explicit config (#560) (fbf7c15), closes #420

7.1.11 (2022-02-08)

Bug Fixes

  • windows: fix race condition in WiFi connection details feature (#568) (0cd8132)

7.1.10 (2022-02-07)

Bug Fixes

  • android: use registerDefaultNetworkCallback so toggling airplane mode works (#571) (e8af2de)

7.1.9 (2022-01-26)

Bug Fixes

  • android: count native listeners / correctly disable listener if count == 0 (#569) (5ae16f6)

7.1.8 (2022-01-25)

Bug Fixes

  • windows: refactor implementation to avoid crashes (#564) (cc4bfa3)

7.1.7 (2021-12-20)

Bug Fixes

  • android: populate network value during initial module startup (#553) (c05080f)

7.1.6 (2021-12-13)

Bug Fixes

  • android: avoid send event when has no listener (#548) (cad47d8)

7.1.5 (2021-12-09)

Bug Fixes

  • android: use method-local ref to instance var for multi-thread safety #549 (#550) (81bbc87)

7.1.4 (2021-12-07)

Bug Fixes

  • android: try async state fetch as stale state workaround (#547) (937cf48), closes #542

7.1.3 (2021-11-29)

Bug Fixes

  • web, isConnected: Return actual connection state even if network type is 'unknown' (#544) (36d6dc9)

7.1.2 (2021-11-17)

Bug Fixes

  • jest, mock: addEventListener returns a function to match API (#529) (82ca2ad)

7.1.1 (2021-11-17)

Bug Fixes

  • ios, 5g: do not use 5g symbols until iOS14.1 (#525) (932cd83)

7.1.0 (2021-11-17)

Features

  • android, native: make native API public for mixed-native use (#524) (96b8d2f)

7.0.0 (2021-11-16)

  • fix(windows)!: Fix autolinking and remove legacy projects (#521) (45628d8), closes #521

BREAKING CHANGES

  • Drop support for react-native-windows 0.61 and lower. Update to RNW 0.62 or higher

6.2.1 (2021-11-15)

Bug Fixes

  • android: fix for outdated network states (#510) (d5f06ba)

6.2.0 (2021-11-13)

Features

6.1.1 (2021-11-13)

Bug Fixes

  • android: declare java 1.8 feature usage so assembleInstrumentedTest builds work (#466) (48d4364)

6.1.0 (2021-11-07)

Features

  • reachability test may be enabled/disabled via user-supplied function (#513) (83c1e0d)

6.0.6 (2021-11-04)

Bug Fixes

  • windows, crash: try/catch fetching network profile, new windows example app (#511) (ef3ac76), closes #454

6.0.5 (2021-11-03)

Bug Fixes

  • jest: mock return value not resolve value for useNetInfo mock (#515) (cfde0aa)

6.0.4 (2021-10-22)

Bug Fixes

  • android: use ConnectivityManager directly, drop androidx dependency (#509) (2569f56)

6.0.3 (2021-10-22)

Bug Fixes

  • android, jcenter: remove jcenter dependency / update example (#500) (94c5398)

6.0.2 (2021-09-03)

Bug Fixes

  • ios: remove iOS listener stubs added for RN0.65 compat, they caused a regression (#493) (a52b0a5)

6.0.1 (2021-08-24)

Bug Fixes

6.0.0 (2021-02-19)

feature

BREAKING CHANGES

  • useNetinfo: When the connection state is unknown, the isConnected and isInternetReachable properties are now set to null rather than false. This allow you to easily detect the initial "unknown" state before the state is detected and set to a boolean.

5.9.10 (2021-01-06)

Bug Fixes

  • ios,tvos: Remove IPv4-only paths to prevent App Store warnings (#431 by @ greenantdotcom ) (1db98cb)

5.9.9 (2020-11-23)

Bug Fixes

5.9.8 (2020-11-23)

Bug Fixes

5.9.7 (2020-09-18)

Bug Fixes

  • ios: depend directly on React-Core in podspec for Xcode 12 compatibility (#409) (bcf8bf9)

5.9.6 (2020-08-10)

Bug Fixes

  • android: Add missing isWifiEnabled type definition (#396 by @TimRobinson1) (76d8db5)

5.9.5 (2020-07-16)

Bug Fixes

5.9.4 (2020-06-25)

Bug Fixes

  • android: Add another check in ConnectivityReciever to make sure we have ACCESS_WIFI_STATE permission (#379 by @sweggersen) (b0ff1ff)

5.9.3 (2020-06-19)

Bug Fixes

  • added strength wifi property to typescript (#377) (e8cb4d3)

5.9.2 (2020-05-26)

Bug Fixes

  • Android: Do not use getFrequency method for Android lower than LOLLIPOP (#367 by @ObidosDev) (4957aaa)

5.9.1 (2020-05-24)

Bug Fixes

  • macOS: Ensure Cocoapods installation works on macOS (#366 by @Simek) (c8b280c)

5.9.0 (2020-05-18)

Features

5.8.1 (2020-05-11)

Bug Fixes

  • android: Avoid unneccesary downoads of Gradle plugins (#358 by @SaeedZhiany) (8479319)

5.8.0 (2020-04-22)

Features

  • windows: Add C++/WinRT Implementation to support the latest react-native-windows (#349 by @kaiguo) (18e2f20)

5.7.1 (2020-04-14)

Bug Fixes

  • Fix the provided Jest mock so it works with the instructions in the README (a24ebb1), closes #345 #327

5.7.0 (2020-03-30)

Bug Fixes

Features

5.6.2 (2020-03-11)

Bug Fixes

5.6.1 (2020-03-10)

Bug Fixes

  • Ensure the default timeouts are the correct way around (4e3e981)

5.6.0 (2020-03-10)

Features

5.5.1 (2020-02-23)

Bug Fixes

5.5.0 (2020-02-12)

Features

5.4.0 (2020-02-12)

Features

5.3.4 (2020-02-12)

Bug Fixes

5.3.3 (2020-01-15)

Bug Fixes

  • android: Handle invalid networks in network listener (#286) (a153240)

5.3.2 (2020-01-06)

Bug Fixes

  • tvOS: Fixed a crash with tvOS builds caused by trying to use the ssid method (#283 by @vdmtrv) (a0191e0)

5.3.1 (2020-01-04)

Bug Fixes

  • android: Remove the Android native tests to avoid issues (d9fdf85), closes #276

5.3.0 (2020-01-04)

Features

  • Export a mock to make Jest testing easier (#275 by @Naturalclar) (68bba0a)

5.2.0 (2019-12-29)

Features

  • Allow fetching details for a specific network interface (#256 by @Rapsssito) (05e5fb7)

5.1.0 (2019-12-29)

Features

5.0.2 (2019-12-29)

Bug Fixes

  • android: Fixed connection change bug on Android (#265 by @QuickBase) (8748242)

5.0.1 (2019-12-20)

Bug Fixes

5.0.0 (2019-12-08)

Features

  • Configuration & removal of deprecated methods (#230) (fab577d)

BREAKING CHANGES

  • Previously deprecated methods have been removed. These methods have been deprecated since this library was extracted from the core of React Native. Most users will not have any issues with migrating if they were not ignoring the previous warnings.

Added a new way to configure the reachability URL that the library uses on iOS to check for an internet connection. The default is still to use the Google Chrome URL, however, you can now customise this URL, test function, and the timeouts that are used.

4.7.0 (2019-12-08)

Bug Fixes

Features

4.6.2 (2019-12-08)

Bug Fixes

4.6.1 (2019-11-17)

Bug Fixes

  • Remove Android Spotless formatter to avoid issues with resolving plugins (1c2de77), closes #243 #213

4.6.0 (2019-11-03)

Features

4.5.0 (2019-11-03)

Features

4.4.0 (2019-10-06)

Features

  • iOS: Detect Apple TV wired connection and retrieve the Wifi IP address & subnet (#229 by @gcesarmza) (2d2d167)

4.3.3 (2019-10-04)

Bug Fixes

4.3.2 (2019-10-04)

Bug Fixes

  • iOS: Method definition for 'dictionaryValue' not found (#224) (a5f227c)

4.3.1 (2019-10-03)

Bug Fixes

  • iOS: Crash caused by trace condition when releasing resources (#209 by @tido64) (b43838f)

4.3.0 (2019-09-30)

Features

  • Added 'subnet' to wifi details (#205 by @Rapsssito) (2912a76)

4.2.2 (2019-09-19)

Bug Fixes

  • Android: Add gradle backward-compatibility with AndroidX (#192) (6514f0b)

4.2.1 (2019-09-07)

Bug Fixes

  • tvOS: Do not import CoreTelephony on tvOS (#195) (3fe3c6f)

4.2.0 (2019-09-03)

Features

4.1.5 (2019-08-17)

Bug Fixes

  • Do not include examples in the NPM package (#179) (c8c26cc)

4.1.4 (2019-08-06)

Bug Fixes

4.1.3 (2019-07-21)

Bug Fixes

4.1.2 (2019-07-19)

Bug Fixes

4.1.1 (2019-07-15)

Bug Fixes

4.1.0 (2019-07-13)

Features

4.0.0 (2019-07-06)

Features

BREAKING CHANGES

  • android: You are required to only use either the Support Library or AndroidX for your dependencies. If you need to migrate this library back to the support library, or another library forward to AndroidX, then take a look at the Jetifier tool.

3.2.1 (2019-06-01)

Bug Fixes

3.2.0 (2019-05-26)

Features

3.1.3 (2019-05-24)

Bug Fixes

  • types: generates index.d.ts instead of using index.ts directly so skipLibs works correctly (#105) (d733b5b)

3.1.2 (2019-05-24)

Bug Fixes

  • Do not require es6 or downlevel-iterators TS flag (#104) (f91cdd3)

3.1.1 (2019-05-24)

Bug Fixes

  • Add instructions for integrating with Jest unit tests (#94) (3bfdd45)

3.1.0 (2019-05-18)

Features

  • Android: Detect and report VPN connections correctly on Android (#95) (1f9e5c1)

3.0.2 (2019-05-18)

Bug Fixes

  • android: Send a "none" status if the device has no active network on launch (#96) (c62cd8b)

3.0.1 (2019-05-17)

Bug Fixes

  • Fix an issue in the Android de-duplication code (de12dd5)

3.0.0 (2019-05-17)

Features

  • New API with full backward compatibility (#84) (1dc6000)

BREAKING CHANGES

  • See the README for full details.