v2.0.0
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
streamPositionfield from a number to a string. Any code that uses theEventLogclass 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/exampledirectory 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
EventLogwere not guaranteed to be in the same order as returned by the API. - Fix exception when retrieving enterprise events. A
StringIndexOutOfBoundsExceptionwould be thrown byEventLog.getEnterpriseEventswhen thepositionparameter was non-zero andtypesparameter was an empty array.
Thanks to @mcmilwj, @jonjo-manywho, @danielandefors, and @itsmanishagarwal for their contributions to this release!