Releases: mozilla/rust-components-swift
Releases · mozilla/rust-components-swift
95.0.1
v95.0.1 (2022-11-03)
General
- Added function to unset the app-services error reporter
95.0.0
v95.0.0 (2022-10-28)
General
What's fixed
- Fixed a bug released in 94.3.1. The bug broke firefox-ios builds due to a name conflict. (#5181)
What's Changed
- Updated UniFFI to 0.21.0. This improves the string display of the fielded errors on Kotlin. Currently only logins is using these errors, but we plan to start using them for all components.
Autofill
⚠️ Breaking Changes ⚠️
- The autofill API now uses
AutofillApiError
instead ofAutofillError
.AutofillApiError
exposes a smaller number of variants, which
will hopefully make it easier to use for the consumer.
Logins
⚠️ Breaking Changes ⚠️
- Renamed
LoginsStorageError
toLoginsApiError
, which better reflects how it's used and makes it consistent with
the places error name. - Removed the
LoginsApiError::RequestFailed
variant. This was only thrown when calling the sync-related methods
manually, rather than going through the SyncManager which is the preferred way to sync. Those errors will now be
grouped underLoginsApiError::UnexpectedLoginsApiError
.
What's Changed
- Added fields to errors in
logins.udl
. Most variants will now have amessage
field.
Nimbus ⛅️🔬🔭
What's Changed
- Disabled Glean events recorded when the SDK is not ready for a feature (#5185)
- Add struct for IntervalData (behavioral targeting) (#5205)
- Calls to
log::error
have been replaced witherror_support::report_error
(#5204)
Places
⚠️ Breaking Changes ⚠️
- Renamed
PlacesError
toPlacesApiError
, which better reflects that it's used in the public API rather than for
internal errors. - Removed the
JsonError
,InternalError
, andBookmarksCorruption
variants from places error. Errors that
resulted inInternalError
will now result inUnexpectedPlacesError
.BookmarksCorruption
will also result in
anUnexpectedPlacesError
and an error report will be automatically generated.JsonError
didn't seem to be
actually used.
Tabs
⚠️ Breaking Changes ⚠️
- The tabs API now uses
TabsError
withTabsApiError
.TabsApiError
exposes a smaller number of variants, which
will hopefully make it easier to use for the consumer.
94.3.0
v94.3.0 (2022-09-20)
General
What's Changed
- Rust toolchain has been bumped to 1.63 and minimum version bumped to 1.61 to comply with our Rust Policy
- Android: Upgraded NDK from r21d to r25b. (#5142)
Places
What's Changed
- Added metrics for the
run_maintenance()
method. This can be used by consumers to decide when to schedule the nextrun_maintenance()
call and to check if calls are taking too much time.
What's new
- Exposed a function in Swift
migrateHistoryFromBrowserDb
to migrate history frombrowser.db
toplaces.db
, the function will migrate all the local visits in one go. (#5077).- The migration might take some time if a user had a lot of history, so make sure it is not run on a thread that shouldn't wait.
- The migration runs on a writer connection. This means that other writes to the
places.db
will be delayed until the migration is done.
Nimbus
What's Changed
- Added
applyLocalExperiments()
method as short hand forsetLocalExperiments
andapplyPendingExperiments
. (#5131)applyLocalExperiments
andapplyPendingExperiments
now returns a cancellable job which can be used in a timeout.initialize
function takes a raw resource file id, and returns a cancellableJob
.
94.1.0
v94.1.0 (2022-08-18)
Nimbus
What's new
- Added telemetry to track how often apps query for variables before Nimbus is initialized. (#5091)
94.0.0
v94.0.0 (2022-08-02)
Logins
⚠️ Breaking Changes ⚠️
93.7.1
v93.7.1 (2022-07-26)
Places
What's changed
- The
delete_visits_between
API now also deletes history metadata (#5046) - (NOTE: this is not yet available for Swift consumers)
93.7.0
v93.7.0 (2022-07-18)
Nimbus FML ⛅️🔬🔭🔧
What's Changed
- Added
MOZ_APPSERVICES_MODULE
environment variable to specify the megazord module for iOS (#5042). If it is missing, no module is imported.
✨ What's New ✨
- Enabled remote loading and using configuring of branches. (#5041)
- Add a
fetch
command tonimbus-fml
to demo and test remote loading and paths. (#5047)
Logins
What's Changed
- Updated the
LoginsStorageError
implementation and introduce error reporting for unexpected errors.
Note that some errors were removed, which is technically a breaking change, but none of our
consumers use those errors so it's not a breaking change in practice.
93.5.0
v93.5.0 (2022-06-16)
Nimbus FML ⛅️🔬🔭🔧
What's Changed
- Added
includes
list property to enable splitting up largenimbus.fml.yaml
files (#4976).
93.3.0
v93.3.0 (2022-06-06)
Error-support
What's New
- Added a new error reporting system that is intended to eventually replace using
log::error
to report errors - Added code using the new system to track down application-services#4856
- Added UniFFI API for this crate. Consumers should use this to register for error reports and breadcrumbs.
93.2.2
v93.2.2 (2022-05-27)
Tabs
What's Changed
- Fixed the iOS breaking change in the
SyncUnlockInfo
constructor by makingtabsLocalId
an optional parameter (#4975).