This major release contains critical bug fixes for the events API as well as new support for App User authentication.
Breaking Changes:
- EventLog stream position is now a string. The events API introduced a breaking change which modified the type of the
streamPosition
field from a number to a string. Any code that uses theEventLog
class will need to be updated.
New Features:
- Support for App Users. The new App Users authentication process is now supported by the SDK. Examples for how to use App Users can be found in the
src/example
directory and additional documentation can be found in the API docs. - Support for transferring folders between users. The
BoxUser.moveFolderToUser(String)
method lets a user's root folder me transferred to another user. - Support for tasks. The tasks API is now supported, allowing for tasks to be created, modified, and assigned.
- File preview links. The
BoxFile.getPreviewLink()
can be used to retrieve a temporary link which allows users to preview a file's contents.
Bug Fixes:
- EventLog properly maintains event ordering. Previously, the events in an
EventLog
were not guaranteed to be in the same order as returned by the API. - Fix exception when retrieving enterprise events. A
StringIndexOutOfBoundsException
would be thrown byEventLog.getEnterpriseEvents
when theposition
parameter was non-zero andtypes
parameter was an empty array.
Thanks to @mcmilwj, @jonjo-manywho, @danielandefors, and @itsmanishagarwal for their contributions to this release!