Releases: mozilla/application-services
0.16.0
0.16.0 (2019-02-06)
General
What's New
- iOS builds now target v11.0. (#614)
- Preparatory infrastructure for megazording iOS builds has landed.(#625)
Places
Breaking Changes
- Several new methods on PlacesConnection (Breaking changes for classes implementing PlacesAPI):
fun interrupt(). Cancels any calls toqueryAutocompleteormatchUrlthat are running on other threads. Those threads will throw anOperationInterruptedexception. (#597)- Note: Using
interrupt()during the execution of other methods may work, but will have mixed results (it will work if we're currently executing a SQL query, and not if we're running rust code). This limitation may be lifted in the future.
- Note: Using
fun deletePlace(url: String): Deletes all visits associated with the provided URL (#591)- Note that these deletions are synced!
fun deleteVisitsSince(since: Long): Deletes all visits between the given unix timestamp (in milliseconds) and the present (#591).- Note that these deletions are synced!
What's New
- Initial support for storing bookmarks has been added, but is not yet exposed over the FFI. (#525)
FxA
What's Fixed
- iOS Framework: Members of Avatar struct are now public. (#615)
0.15.0
0.15.0 (2019-02-01)
General
What's New
- A new megazord was added, named
fenix-megazord. It contains the components for FxA and Places (and logging). (#585)- Note: To use this, you must be on version 0.3.1 of the gradle plugin.
Logins
What's Fixed
- Fix an issue where unexpected errors would become panics. (#593)
- Fix an issue where syncing with invalid credentials would be reported as the wrong kind of error (and cause a panic because of the previous issue). (#593)
Places
What's New
- New method on PlacesConnection (breaking change for classes implementing PlacesAPI):
fun matchUrl(query: String): String?. This is similar toqueryAutocomplete, but only searches for URL and Origin matches, and only returns (a portion of) the matching url (if found), or null (if not). (#595)
What's Fixed
-
Autocomplete will no longer return an error when asked to match a unicode string. (#298)
-
Autocomplete is now much faster for non-matching queries and queries that look like URLs. (#589)
FxA
What's New
- It is now possible to know whether a profile avatar has been set by the user. (#579)
Breaking Changes
- The
avataraccessor from theProfileclass in the Swift framework now returns an optionalAvatarstruct instead of aString. (#579)
0.14.0
0.14.0 (2019-01-23)
General
What's New
-
A new component was added for customizing how our Rust logging is handled. It allows Android code to get a callback whenever a log is emitted from Rust (Most users will not need to use this directly, but instead will consume it via the forthcoming helper that hooks it directly into android-components Log system in android-components PR #1765). (#472)
-
The gradle megazord plugin updated to version 0.3.0, in support of the logging library. Please update when you update your version of android-components. (#472)
-
In most cases, opaque integer handles are now used to pass data over the FFI (#567). This should be more robust, and allow detection of many types of errors that would previously cause silent memory corruption.
This should be mostly transparent, but is a semi-breaking semantic change in the case that something throws an exception indicating that the Rust code paniced (which should only occur due to bugs anyway). If this occurs, all subsequent operations on that object (except
close/lock) will cause errors. It is "poisoned", in Rust terminology. (In the future, this may be handled automatically)This may seem inconvenient, but it should be an improvement over the previous version, where we instead would simply carry on despite potentially having corrupted internal state.
-
Build settings were changed to reduce binary size of Android
.soby around 200kB (per library). (#567) -
Rust was updated to 1.32.0, which means we no longer use jemalloc as our allocator. This should reduce binary size some, but at the cost of some performance. (No bug as this happens automatically as part of CI, see the rust-lang release notes for more details).
Breaking Changes
- Megazord builds will no longer log anything by default. Logging must be enabled as described "What's New". (#472)
Places
What's Fixed
- PlacesConnection.getVisited will now return that invalid URLs have not been visited, instead of throwing. (#552)
- PlacesConnection.noteObservation will correctly identify url parse failures as such. (#571)
- PlacesConnections not utilizing encryption will not make calls to mlock/munlock on every allocation/free. This improves performance up to 6x on some machines. (#563)
- PlacesConnections now use WAL mode. (#555)
FxA
Breaking Changes
Some APIs which are semantically internal (but exposed for various reasons) have changed.
- Android: Some
protectedmethods onorg.mozilla.fxaclient.internal.RustObjecthave been changed (destroynow takes aLong, as it is an opaque integer handle). This object should not be considered part of the public API of FxA, but it is still available. Users using it are recommended not to do so. (#567) - iOS: The type
RustOpaquePointerwas replaced byRustHandle, which is aRustPointer<UInt64>. While these are technically part of the public API, they may be removed in the future and users are discouraged from using them. (#567)
0.13.3
0.13.2
0.13.1
0.13.1 (2019-01-10)
Note: This is a patch release that works around a bug introduced by a dependency. No functionality has been changed. However, you may want to refer to the 0.13.0 release notes if updating from 0.12.x.
General
What's New
N/A
What's Fixed
- Network requests on Android. Due to a bug in
reqwest, it's version has been pinned until we can resolve this issue. (#530)
0.13.0
0.13.0 (2019-01-09)
General
What's New
- Upgraded openssl to 1.1.1a (#474)
What's Fixed
- Fixed issue where backtraces were still enabled, causing crashes on some android devices (#509)
- Fixed some panics that may occur in corrupt databases or unexpected data. (#488)
Places
What's New
N/A
What's fixed
- Autocomplete no longer returns more results than requested (#489)
Logins
Deprecated or Breaking Changes
- Deprecated the
resetmethod, which does not perform any useful action (it clears sync metadata, such as last sync timestamps and the mirror table). Instead, use the newwipeLocalmethod, or delete the database file. (#497)
What's New
- Added the
wipeLocalmethod for deleting all local state while leaving remote state untouched. (#497) - Added
ensureLocked/ensureUnlockedmethods which are identical tolock/unlock, except that they do not throw if the state change would be a no-op (e.g. they do not require that you checkisLockedfirst). (#495) - Added an overload to
unlockandensureUnlockedthat takes the key as a ByteArray. Note that this is identical to hex-encoding (with lower-case hex characters) the byte array prior to providing it to the string overload. (#499)
What's Fixed
v0.12.1
v0.12.0
test release w/ repo reorg
reorg-test Add xcuserdata to .gitignore