All Versions
11
Latest Version
Avg Release Cycle
51 days
Latest Release
1507 days ago
Changelog History
Page 1
Changelog History
Page 1
-
v0.11.0 Changes
July 26, 2020- ๐ Use error wrapping from standard library instead of
github.com/pgk/errors
- โก๏ธ Update Module to Go 1.14
- ๐ Change default log level from Debug to Info
- โ Add
WithLogLevel(โฆ)
option for changing the default log level
- ๐ Use error wrapping from standard library instead of
-
v0.10.0 Changes
October 26, 2019- ๐ Allow event handlers to also use scalar event types (fixes #14)
- โ Add new
FinishEventContent(โฆ)
function to finish event processing with multiple handlers early - ๐ฅ Breaking change: Message handlers registered via
Bot.Respond(โฆ)
andBot.RespondRegex(โฆ)
now abort early if the pattern matches- This allows users to specify a default response when nothing else matches (see #25)
-
v0.9.0 Changes
October 22, 2019- โ Add
Auth.Users()
andAuth.UserPermissions(โฆ)
functions to allow retrieving all users as well as users permissions. - ๐ Allow adapters to implement the optional
ReactionAwareAdapter
interface if they support emoji reactions - โ Add new
reactions
package which contains a compiled list of all officially supported reactions - ๐ Components may now return the new
ErrNotImplemented
if they do not support a feature - โ Add new
reactions.Event
that may be emitted by an Adapter so users can listen for it
- โ Add
-
v0.8.0 Changes
April 21, 2019- ๐ 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
-
v0.7.0 Changes
April 18, 2019- โ Add ReceiveMessageEvent.Data field to allow using the underlying message type of the adapters
- โ Add ReceiveMessageEvent.AuthorID field to identify the author of the message
- โ Add Message.Data field which contains a copy of the ReceiveMessageEvent.Data value
- โ Add Message.AuthorID field which contains a copy of the ReceiveMessageEvent.AuthorID value
- โ Add Auth.Grant(โฆ) and Auth.CheckPermission(โฆ) functions to allow implementing user permissions
- โ Add Brain.Close() function to let the brain implement the Memory interface
- โ Add Brain.SetMemory(โฆ) function to give more control over a joe.Brain
- Fix joetest.Bot.Start(โฆ) function to return only when actually all initialization is done
-
v0.6.0 Changes
March 30, 2019- ๐ง implement
NewConfig
function to allow create configuration for unit tests of modules
- ๐ง implement
-
v0.5.0 Changes
March 18, 2019- ๐ Fixed nil pointer panic in slack adapter when context is nil
-
v0.4.0 Changes
March 18, 2019- ๐ Change type of
Module
from function to interface to allow more flexibility - Introduce new
ModuleFunc
type to migrate old modules to new interface type
- ๐ Change type of
-
v0.3.0 Changes
March 17, 2019- Event handler functions can now accept interfaces instead of structs
- โ Add new
github.com/go-joe/joe/joetest
package for unit tests - โ Add new
joetest.Brain
type - โ Add new
WithLogger(โฆ)
option - Switch license from MIT to BSD-3-Clause
- ๐ฆ Move
TestingT
type into newjoetest
package - ๐ฆ Move
TestBot
type into newjoetest
package and rename tojoetest.Bot
- ๐ Fixed flaky unit test of
CLIAdapter
-
v0.2.0 Changes
March 10, 2019- โ Add a lot more unit tests
- โ Add
TestBot.Start()
andTestBot.Stop()
to ease synchronously starting and stopping bot in unit tests - โ Add
TestBot.EmitSync(โฆ)
to emit events synchronously in unit tests - โ Remove obsolete context argument from
NewTest(โฆ)
function - Errors from passing invalid expressions to
Bot.Respond(โฆ)
are now returned inBot.Run()
- Events are now processed in the exact same order in which they are emitted
- All pending events are now processed before the brain event loop returns
- Replace context argument from
Brain.HandleEvents()
with newBrain.Shutdown()
function Adapter
interface was simplified again to directly use theBrain
- โ Remove unnecessary
t
argument fromTestBot.EmitSync(โฆ)
function - โ Deleted
Brain.Close()
because it was not actually meant to be used to close the brain and is thus confusing