Skip to content

Latest commit

 

History

History
162 lines (94 loc) · 3.89 KB

CHANGELOG.md

File metadata and controls

162 lines (94 loc) · 3.89 KB

Change Log

master

Changes on master will be listed here.

0.0.18

9 Jul 2022

Bug Fixes

  • [#34] auth.cb now correctly passes the public key in the callback.

0.0.17

30 May 2021

Other Changes

  • Updated dependencies.

0.0.16

10 Oct 2020

Features

  • Listening to authentication using Auth does not affect the previous gun.on('auth') listener.

Breaking Changes

  • Renamed enviroment variable GUN_PEERS to TEST_GUN_PEERS.

0.0.14 - 0.0.15

18 Aug 2020

Bug Fixes

  • Fixed UMD module error: Can't find variable: process.

Breaking Changes

  • Renamed UMD module global variable global['gun-util'] to GunUtil.

0.0.13

18 Aug 2020

Features

  • Added support for Gun v0.2019.930.

Breaking Changes

  • Removed isGunAuthPairSupported() as authenticating with a pair was in fact supported in Gun v0.2019.*.

0.0.12

14 Aug 2020

Features

  • Added subscribe() method to subscribe to on() events, returning a subscription object.

Bug Fixes

  • Fixed subscription bugs by only using off() inside of callbacks. See issue.

Breaking Changes

  • Renamed types:
    • Subscription to IGunSubscription.
    • ExpandedCallback to GunSubscriptionCallback.

0.0.11

Bug Fixes

  • Fixed Auth#login(), which has stopped working since 0.0.10 with new Gun instances.

0.0.10

Features

  • When attempting to start another login while another is in progress, Auth throws a MultipleAuthError instead of AuthError.
  • Added errorAfter() and timeoutAfter() utility methods.
  • Added Auth#did() method to allow using your own gun.on('auth', cb) listener.
  • You can pass a callback to Auth#on.
  • Added Auth#getPub(), which finds the public key corresponding to a user alias.
  • Added Auth#exists(), which checks if a user with an alias exists.
  • You can wait for a user operation to finish using Auth#join().
  • Added an optional timeout to waitForData().
  • Added closedFilter() which converts an open filter to a closed filter.

Bug Fixes

  • Fixed unsubscribe on promise cancel in waitForData() and delay().

Breaking Changes

  • Renamed Auth#onAuth() to Auth#on().
  • waitForData() now takes an options object as the second parameter containing filter instead of the filter itself.

0.0.9

Features

  • Made DateTree.parseDate() public.

Bug Fixes

  • Fixed using DateTree with non UTC dates.

Breaking Changes

  • Removed redundant method DateTree.iterateDates().

0.0.8

  • Updated dependencies.

0.0.7

Features

  • Added DateTree#on() method, which allows subscribing to all or a subset of the tree's data.
  • Filter methods support any value which has a valueOf() method.
  • DateTree#getDate() can now be used with a reference from a callback.
  • Added DateTree#largestCommonUnit().
  • Added DateTree#getDateComponentKeyRange().
  • Added DateTree#dateComponentsToString().

Breaking Changes

  • Renamed filterKey() to isInRange().

0.0.6

Features

  • waitForData allows waiting for data to arrive at a node reference.
  • Auth supports login with a SEA pair.
  • Auth supports user recall on web and via a delegate on other platforms.

Breaking Changes

  • The stateless GunUser has been replaced with a stateful Auth. The methods are almost identical, with the exception of GunUser.current(), which is now Auth#user().
  • IterateOptions no longer uses start, end, startInclusive, endInclusive. Instead gt, gte, lt, lte is used. These can be converted to a Range, which resemble the previous structure (which is still used internally) using rangeWithFilter().
  • Removed redundant DateTree#put(). Use DateTree#get().put() instead.
  • DateTree#changesAbout() returns an object instead of the off() function directly.

0.0.5

Features

  • Encryption methods.