go-joe v0.8.0 Release Notes
Release Date: 2019-04-21 // almost 5 years ago-
- ๐ Make
Auth.Grant(โฆ)
idempotent and do not unnecessarily add smaller scopes - ๐ Support extending permissions via
Auth.Grant(โฆ)
- โ Add boolean return value to
Auth.Grant(โฆ)
to indicate if a new permission was granted - โ Add
Auth.Revoke(โฆ)
to remove permissions - ๐ Fix flaky unit test TestBrain_Memory
- ๐ Fix flaky TestCLIAdapter_Register test
- โ Add new
Storage
type which manages encoding/decoding, concurrent access and logging for aMemory
- Factor out
Memory
related logic from Brain into newStorage
type- Removed
Brain.SetMemory(โฆ)
,Brain.Set(โฆ)
,Brain.Get(โฆ)
,Brain.Delete(โฆ)
,Brain.Memories(โฆ)
,Brain.Close(โฆ)
- All functions above except
Brain.Memories(โฆ)
are now available as functions on theBot.Store
field
- Removed
- The
Auth
type no longer uses theMemory
interface but instead requires an instance of the newStorage
type - โ Removed the
BrainMemoryEvent
without replacement - โ Add
joetest.Storage
type to streamline making assertions on a bots storage/memory - ๐ Change the
Memory
interface to treat values as[]byte
and notstring
- โ Remove
Memories()
function fromMemory
interface and instead add aKeys()
function NewConfig(โฆ)
now requires an instance of aStorage
- ๐ Make