Skip to content

Releases: ezzatron/fake-geolocation

v0.9.0

04 Jul 10:48
v0.9.0
7222c7d
Compare
Choose a tag to compare
v0.9.0 Pre-release
Pre-release

Added

  • Added toJSON() methods to GeolocationCoordinates and GeolocationPosition.
  • Added the GeolocationCoordinatesParameters type, which can be used for typing simple objects that have the same properties as GeolocationCoordinates, but don't implement the full interface.

Changed

  • Errors thrown from successCallback and errorCallback arguments to getCurrentPosition() and watchPosition() are now thrown asynchronously, instead of being discarded.
  • Errors thrown from subscriber functions used in geolocation delegates and location services are now thrown asynchronously, instead of being discarded.

v0.8.1

21 Jun 01:58
v0.8.1
c62a3bc
Compare
Choose a tag to compare
v0.8.1 Pre-release
Pre-release

Fixed

  • Fixed an issue where passing explicit undefined values to createCoordinates() or createPosition() could produce a GeolocationCoordinates object with undefined properties.

v0.8.0

21 Jun 01:17
v0.8.0
09f06c4
Compare
Choose a tag to compare
v0.8.0 Pre-release
Pre-release

Changed

  • The createCoordinates() and createPosition() functions now have optional arguments, making them more useful for creating test data. The isHighAccuracy argument now defaults to true, and other omitted arguments or properties will be filled with "empty" values:
    • 0 for latitude, longitude, accuracy, and timestamp.
    • null for altitude, altitudeAccuracy, heading, and speed.

Added

  • Added Symbol.toStringTag methods to all Geolocation, GeolocationPosition, GeolocationCoordinates, and GeolocationPositionError objects.

v0.7.0

05 Dec 05:17
v0.7.0
bceaca6
Compare
Choose a tag to compare
v0.7.0 Pre-release
Pre-release

Changed

  • Watched positions now receive updates when location services are disabled, and also when they are re-enabled.
  • Watched positions now receive updates when the geolocation permission is re-granted after being revoked.

v0.6.2

28 Nov 05:52
v0.6.2
767f349
Compare
Choose a tag to compare
v0.6.2 Pre-release
Pre-release

Fixed

  • Fixed a race condition that could occur when permission state changes from granted while waiting to acquire coordinates from location services.

v0.6.1

28 Nov 04:36
v0.6.1
6b550e3
Compare
Choose a tag to compare
v0.6.1 Pre-release
Pre-release

Fixed

  • Fixed a linting error in the changelog.

v0.6.0

28 Nov 01:18
v0.6.0
9d7b97a
Compare
Choose a tag to compare
v0.6.0 Pre-release
Pre-release

Changed

  • Changing the geolocation permission from granted while watching a position will now cause an immediate call to the error callback with a PERMISSION_DENIED error. This should be ergonomic for testing, as previously you'd have to change the permission and jump to a new location to trigger an error.

v0.5.2

28 Nov 00:21
v0.5.2
328d87c
Compare
Choose a tag to compare
v0.5.2 Pre-release
Pre-release

Fixed

  • Fixed potential race condition that may have been possible to create when watchPosition() is used with an errorCallback, and an error occurs after clearWatch() is called.

v0.5.1

27 Nov 07:20
v0.5.1
e86b725
Compare
Choose a tag to compare
v0.5.1 Pre-release
Pre-release

Fixed

  • Fixed a race condition that could occur with watchPosition() where the success callback could be called after clearWatch() was called.

v0.5.0

27 Nov 04:57
v0.5.0
af52d9f
Compare
Choose a tag to compare
v0.5.0 Pre-release
Pre-release

Added

  • Add waitForPositionError()