Migration Guides

  • 2.x.x -> 3.0.0

    • File encoders were removed from eitri-bifrost
      • now files selected or downloaded using fs namespace have a toBase64() method
  • 1.x.x -> 2.0.0

    • Methods from Eitri.eventBus.* were changed from positional to named parameters

Changelog

  • 6.1.0

    • New features:
      • Added Eitri.device.getRegion(), which reports the device region from several sources in a DeviceRegionOutput: sim, network, locale and timezone
        • sim and network are always null on iOS, which does not expose carrier or network information
        • locale differs between platforms: on iOS it is the region set in the device settings, regardless of language; on Android it is the region of the device language (e.g. en-US reports US)
        • Requires API level 39
      • Pages inside a web flow opened by Eitri.webFlow.start() can now request the camera and microphone on Android (e.g. via navigator.mediaDevices.getUserMedia), as they already could on iOS
        • Requires API level 39 on Android; older versions deny these requests
        • The host app must declare CAMERA for the camera, and both RECORD_AUDIO and MODIFY_AUDIO_SETTINGS for the microphone. A missing permission is denied without prompting the user and the page receives a NotAllowedError
        • A request is granted only as a whole: when camera and microphone are requested together and either is undeclared or denied, the entire request fails. Request them separately when one is optional
      • Added new fields to AgeRangeOutput, returned by Eitri.ageVerification.getUserAgeRange()
        • source — how the age range was established: SELF_DECLARED, GUARDIAN_DECLARED or CONFIRMED, with the same values on both platforms
        • significantChangeStatus and significantChangeApprovalDate — approval state and effective date of the latest significant change on a supervised account. Android only
        • installId — install identifier used to correlate revoked app approvals. Android only
        • All four are optional: null when the platform does not report a value, and absent on platforms that lack the field or with an age verification module older than apiLevel 2
    • Breaking changes in the age verification modules called by Eitri.ageVerification.getUserAgeRange(). The Bifrost API itself is unchanged
      • Android (eitri-android-age-verification 2.0.0): getUserAgeRange() now presents Play's age sharing consent prompt and rejects when the user is not sharing their age range. Up to 1.1.0 it resolved with lowerBound and upperBound set to null instead, so calls without a try/catch must add one
      • iOS (eitri-ios-age-verification 3.0.0): the rejection for a user who is not sharing their age range changed from Eitri.AgeVerificationService.user.not.sharing.age to Eitri.AgeVerification.age.signals.not.shared
      • Both platforms now reject with Eitri.AgeVerification.age.signals.not.shared when the user is not sharing their age range. Android rejects with Eitri.AgeVerification.age.signals.verification.required instead when the user is in a region where age sharing is mandatory and must first verify their age or set up parental supervision in the Play Store
  • 6.0.0

    • New features:
      • Added support for reading the device contact list via the new namespace Eitri.contacts
        • pickContactBasic() and pickContactsBasic() open the native system picker and are built into eitri-machine, so they need no module and no contacts permission. Check isMultiplePickSupported() before offering a multi-selection affordance
        • The remaining methods — isSupported(), streamAllContacts(), startContactsStream(), cancelContactsStream(), checkPermission(), requestPermission(), openContact(), pickContact(), createContact() and deleteContact() — require the optional contacts module. Guard them with Eitri.modules(), as the namespace resolves even when the module is absent
        • The picker returns a one-time snapshot on iOS: Contact.id cannot be used later to read that contact again without authorization. On Android below 17 the system offers a phone-number picker rather than a contact picker, so only the chosen number comes back
      • Added the preserveBottomNavigation property to Eitri.nativeNavigation.open(). When the calling eitri-app runs inside a bottom tab navigation, the new view is stacked inside the selected tab and the bottom navigation stays visible; outside a bottom tab navigation the flag has no effect
        • Inside a bottom tab, replace only swaps a view previously stacked on the selected tab. When the calling eitri-app is the tab's own root, the root is preserved and replace degrades to a normal stacked open
      • Added support for receiving messages from the page inside a web flow via the new bridgeName and eventCallback properties of Eitri.webFlow.start()
      • Added the showCloseButton property to Eitri.webFlow.start(), which hides the web flow close button. Make sure the flow can still finish through a stopPattern, a maxNavigationLimit, or a page that calls window.close()
      • A web flow now finishes successfully when the page calls window.close(), resolving with the navigation recorded so far
      • stopPattern is now optional in Eitri.webFlow.start(). Omit it for flows that end by user action, by window.close(), by maxNavigationLimit, or by eventCallback, instead of passing a pattern that never matches
      • Added support for adding events to the device calendar via the new namespace Eitri.calendar, with the methods addEvent() and isAvailable()
        • The event supports title, startDate, endDate, allDay, location, notes and recurrenceRule on both platforms
        • recurrenceRule accepts FREQ, INTERVAL, COUNT, UNTIL, BYDAY, BYMONTHDAY, BYMONTH, BYWEEKNO, BYYEARDAY and BYSETPOS, subject to the combinations the calendar allows
        • attendees, availability and accessLevel are Android only; url is iOS only
        • The promise resolves as soon as the calendar UI is shown, not when the user saves — neither platform reports whether the event was saved
        • On iOS it requires iOS 17 or newer, so that no permission or usage description is needed; older versions report isAvailable() as false
    • Fixes
      • Corrected the documented behaviour of stopPattern in Eitri.webFlow.start(): matching is a plain substring test, not a regular expression, and regex metacharacters are treated literally. Flows that passed a real regular expression should be reviewed
  • 5.5.0

  • 5.4.0

    • New features:
  • 5.3.0

    • New features:
      • Added support for retrieving te state of the app's bottom bar by adding the method BottomBar.getState()
  • 5.2.0

  • 5.1.0

  • 5.0.0

  • 4.8.1

  • 4.8.0

  • 4.7.0

  • 4.6.0

  • 4.5.1

    • Documentation
  • 4.5.0

    • New Features
  • 4.4.0

    • New Features
      • Added support for a new module: Speech.
  • 4.3.0

  • 4.2.1

    • Documentation
  • 4.2.0

    • New Features
      • Added support for controlling redirects (followRedirects) in the HTTP namespace.
  • 4.1.1

    • Fixes
      • Improved error handling by wrapping synchronous errors into asynchronous promise rejections.
  • 4.1.0

  • 4.0.0

  • 3.12.2

    • Fixes
      • Removed dead link from Tracking
      • Moved Eitri.tracking.GA.init code example and documentation into GA.init(trackingId) and fixed it's indentation.
      • Fixed promise hanging in Eitri.tracking.GA.init method when the Google Analytics domain is blocked on the device or network.
  • 3.12.1

    • Fixes
      • Fixed a promise hang in the clarity.init method when the Clarity domain is blocked on the device or network.
  • 3.12.0

    • New Features
      • New resetStack option for Eitri.navigation.close()
        • Resets the stack to the root eitri-app: removes all entries and reopens the first (root) eitri-app, leaving it as the only entry. If no root exists, closes the native view.
      • New updateTabBadge method
        • Allows adding and removing badges to bottom bar tab icons.
  • 3.11.0

  • 3.10.0

    • New Features
    • Fixes
      • Fix a circular ref !! when trying to print Eitri.getConfigs()
  • 3.9.1

    • Fixes
      • Fix bifrost missing changelog
  • 3.9.0

  • 3.8.0

  • 3.7.0

  • 3.6.1

    • New Feature
      • Fix http upload docs
  • 3.6.0

    • New Feature
      • Eitri.http.upload()
        • Support for raw and multipart file upload using files coming from Eitri methods (Eitri.fs.* or Eitri.http.download).
  • 3.5.0

  • 3.4.2

  • 3.4.1

  • 3.4.0

  • 3.3.1

  • 3.3.0

  • 3.2.0

  • 3.1.0

  • 3.0.0

  • 2.11.0

    • New Features
      • New Eitri.navigation.addOnLostUserFocusListener
  • 2.10.1

    • Fixes
      • Improve internal handling of scroll events
  • 2.10.0

    • New Features
      • New Eitri.navigation.addOnResumeListener
  • 2.9.0

    • New Features
      • New namespace Eitri.geolocation
  • 2.8.2

    • Fixes
      • Fix ios blank screen after back navigation in some scenarios
  • 2.8.1

    • Fixes
      • Fix Eitri.navigation.backToTop() causing an unnecessary refresh when already on the last view of the stack
  • 2.8.0

    • New Features
      • New Eitri.http.fetch() with Fetch syntax
      • New Eitri.haptic.vibrate()
  • 2.7.0

    • New Features
      • New rules for onResumeListener when used with eitri-apps running in an EitriBottomTabView
  • 2.6.0

    • New Features
      • New Eitri.http.request() with Axios syntax
      • New attribute version available for eitri-apps using Eitri.getConfig().eitriAppData.version
  • 2.5.0

    • New Features
      • Native navigation support for development workspaces
  • 2.4.0

    • New Features
      • BackHandlers
        • addBackHandler(), clearBackHandlers()
  • 2.3.0

    • New Features
      • Changelog Section was created
      • x-www-form-urlencoded support on http requests
  • 2.2.0

    • New Features
      • New param inApp for Eitri.openBrowser method
      • New version selector on the doc
      • New Json methods on storage namespace
    • Fixes
      • Back gestures or back commands are now forbidden for closing the root iOS view using a bottom bar
  • 2.1.0

    • New Features
      • Eitri.biometrics(checkStatus, authenticate)
    • Fixes
      • Fix double url encoding using http methods
  • 2.0.0

    • New Features
      • Eitri.environment.getRemoteConfigs()
      • Eitri.messageBus - Broadcasting to other running eitri-apps
      • breaking change on method signature contract (positional to named)
      • Eitri.isOnline()
      • Eitri.share.text()
      • New Event onUserTappedActiveTab
      • Eitri-apps running on a bottom tab view now can listen for this event and react scrolling to top or any other desired action
  • 1.6.0

    • New Features
      • transition animation support when using eitri.navigation
  • 1.5.0

    • New Features
      • Eitri.notification(checkPermission, requestPermission)
  • 1.4.0

    • New Features
      • Eitri.nativeNavigation.open
      • Eitri.eventBus(subscribe, publish, clear, clearChannel)
  • 1.3.0

    • New Features
      • Eitri.fs.openFilePicker
      • Eitri.fs.encoder supporting fileIds from openFilePicker
      • Eitri.keyboard(dismiss, setVisibilityListener, clearVisibilityListener)
      • Eitri.navigation(setOnResumeListener, clearOnResumeListener)
  • 1.2.0

    • New Features
      • New documentation layout
      • SharedFs
  • 1.1.0

    • New Features
      • eitri-bifrost released
      • New FileSystemService with support for download, list, delete, open and share files.

Generated using TypeDoc