Releases: gunjandatta/sprest
Utility Library
This release removes the "Email" library and adds the "Utility" library. The "Email" library was just one of the available methods available from the SP.Utilities.Utility REST api. The IntelliSense has been updated to support the new library.
Application Lifecycle Management (ALM)
This release adds the Application Lifecycle Management (ALM) api to the library. The web object contains a new property "TenantAppCatalog", which allows you to interact with the tenant app catalog.
Refer to the wiki for additional information of this new feature.
Completed Code Reorganization
This release contains all changes to the reorganization of the base class. This will help moving forward to grow the library by adding to the "mapper" or "lib" folders.
- "lib" -> A 1-to-1 relationship to an available object and the SharePoint/Office 365 REST API endpoint.
- "mapper" -> The available methods and properties for the library endpoint.
Note - The Dependencies class has been moved to the Helper module.
Code Reorganization
This version contains the latest code reorganization which may break existing code. Please report any issues and they will be fixed w/in 24-48 hours.
Intellisense Updates
This release includes minor bug fixes when coding in the App Web. The major code changes have been around reorganizing the files to make better sense and remove redundancies. This was well needed, since it was unclear of how everything coming together. No code changes to the logic/functionality have been made, so this shouldn't break existing solutions.
REST Batch Operations
This release adds the ability to execute batch operations against the SharePoint REST API. A new "batch" method has been added to the base object, with the following input parameters:
- batch() - Creates a new batch request
- batch(callback) - Optional callback method for the request
- batch(appendFl) - Option to append the request to the current batch
This feature is currently available in SharePoint Online, and may be added to On-Premise environments in the future.
Credit @jpalo for requesting this new feature.
Search
This release has major fixes for the search class.
Credit to @ndelacour for looking into this.
Added es6-Promise
Added a "then" method to the base class to return an es6-promise. Updated the intellisense to return the appropriate object.
$REST Object Update
The $REST object has been updated to no longer require you to create an instance of the object.
Old: (new $REST.Web()).Lists("Site Assets")
New: $REST.Web().Lists("Site Assets")
Credit to @jrmint for requesting this.
NodeJS Support
Fixed a bug related to the new request info method. It wasn't returning the correct information.
Added a new field interface for managed metadata fields.