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 a Memory
    • Factor out Memory related logic from Brain into new Storage 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 the Bot.Store field
    • The Auth type no longer uses the Memory interface but instead requires an instance of the new Storage 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 not string
    • โœ‚ Remove Memories() function from Memory interface and instead add a Keys() function
    • NewConfig(โ€ฆ) now requires an instance of a Storage