November 12
React Native agent v1.9.5
Improvements and enhancements
- Updated the Native iOS agent to version 7.7.11. (#350)
October 30
React Native agent v1.9.4
Nueva característica
- Se agregó una opción de configuración
consoleCaptureEnabled(valor predeterminadotrue) que permite evitar que el agente capture las llamadas deconsole.*como logs. (#342)
Mejoras y optimizaciones
- Se eliminó el token de aplicación de New Relic expuesto. (#338)
- Se actualizó el agente nativo de Android a la versión 7.8.5. (#346)
- Se actualizó el agente nativo de iOS a la versión 7.7.10. Si usa CocoaPods y su
Podfile.locktiene una versión anterior, ejecutepod update NewRelicAgentpara actualizar a 7.7.10. (#346)
Corrección de errores
- Se solucionó un bloqueo en el que
console.log/warn/error/debuglanzaba una excepción cuando no se podía serializar un argumento, como un objeto con un getter que lanza una excepción. (#341)
October 23
React Native agent v1.9.3
Mejoras y optimizaciones
- Se actualizó el agente nativo de Android a la versión 7.8.4. Se actualizó el agente nativo de iOS a la versión 7.7.9. (#336)
Corrección de errores
- Se corrigió la integración opcional del administrador de paquetes de Swift (
NEWRELIC_USE_SPM=1): las aplicaciones ya no fallan en el lanzamiento conLibrary not loaded: @rpath/NewRelic.framework/NewRelic, los archivos ya no fallan por una firma de xcframework duplicada y el agente de iOS se resuelve a la 7.7.x más reciente versión. (#334)
October 5
React Native agent v1.9.2
Mejoras
- Se actualizó el agente nativo de Android a la versión 7.8.3.
September 14
React Native agent v1.9.1
Mejoras
- Se actualizó el agente nativo de iOS a la versión 7.7.7.
August 24
React Native agent v1.9.0
Breaking change in error reporting
Starting with version 1.9.0, JavaScript errors are reported through a new event type: MobileJSError. With the new Mobile Errors Protocol, React Native JavaScript errors are no longer stored in the MobileHandledException event type.
Action required:
Alerts: Update your NRQL alert conditions to target
MobileJSError.Dashboards: Update any custom charts that query
MobileHandledExceptionfor JavaScript-layer errors.Symbolication: Update your build scripts to the latest version to support source map uploads for the new event type. See React Native JavaScript error reporting.
Update your queries as follows:
-- Before (1.8.x and lower)SELECT count(*) FROM MobileHandledException WHERE platform = 'reactnative'-- After (1.9.0 and higher)SELECT count(*) FROM MobileJSError
Improvements
- JavaScript errors and unhandled promise rejections are now reported as a first-class
MobileJSErrorevent type via the new Mobile Errors Protocol, instead ofMobileHandledException. - Added source map upload support for symbolicating
MobileJSErrorstack traces (automatic, manual, and CodePush/OTA). See React Native JavaScript error reporting. - Added the
jsErrorReportingEnabledconfiguration option to enable or disable JavaScript error reporting (enabled by default). recordErrornow accepts optionalisFatalandattributesarguments, letting you mark an error as fatal or attach custom attributes.- Updated the native Android agent to version 7.8.2.
- Updated the native iOS agent to version 7.7.6.