Changes on master will be listed here.
9 Jul 2022
- [#34]
auth.cbnow correctly passes the public key in the callback.
30 May 2021
- Updated dependencies.
10 Oct 2020
- Listening to authentication using
Authdoes not affect the previousgun.on('auth')listener.
- Renamed enviroment variable
GUN_PEERStoTEST_GUN_PEERS.
18 Aug 2020
- Fixed UMD module error:
Can't find variable: process.
- Renamed UMD module global variable
global['gun-util']toGunUtil.
18 Aug 2020
- Added support for Gun v0.2019.930.
- Removed
isGunAuthPairSupported()as authenticating with a pair was in fact supported in Gun v0.2019.*.
14 Aug 2020
- Added
subscribe()method to subscribe toon()events, returning a subscription object.
- Fixed subscription bugs by only using
off()inside of callbacks. See issue.
- Renamed types:
SubscriptiontoIGunSubscription.ExpandedCallbacktoGunSubscriptionCallback.
- Fixed
Auth#login(), which has stopped working since 0.0.10 with new Gun instances.
- When attempting to start another login while another is in progress,
Auththrows aMultipleAuthErrorinstead ofAuthError. - Added
errorAfter()andtimeoutAfter()utility methods. - Added
Auth#did()method to allow using your owngun.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.
- Fixed unsubscribe on promise cancel in
waitForData()anddelay().
- Renamed
Auth#onAuth()toAuth#on(). waitForData()now takes an options object as the second parameter containingfilterinstead of thefilteritself.
- Made
DateTree.parseDate()public.
- Fixed using
DateTreewith non UTC dates.
- Removed redundant method
DateTree.iterateDates().
- Updated dependencies.
- 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().
- Renamed
filterKey()toisInRange().
waitForDataallows waiting for data to arrive at a node reference.Authsupports login with a SEA pair.Authsupports user recall on web and via a delegate on other platforms.
- The stateless
GunUserhas been replaced with a statefulAuth. The methods are almost identical, with the exception ofGunUser.current(), which is nowAuth#user(). IterateOptionsno longer usesstart,end,startInclusive,endInclusive. Insteadgt,gte,lt,lteis used. These can be converted to aRange, which resemble the previous structure (which is still used internally) usingrangeWithFilter().- Removed redundant
DateTree#put(). UseDateTree#get().put()instead. DateTree#changesAbout()returns an object instead of theoff()function directly.
- Encryption methods.