SpRestLib Versions Save

JavaScript SharePoint REST Web Services Library

v1.9.0

5 years ago

Added

  • New file API method: checkin() (gitbrent)
  • New file API method: checkout() (gitbrent)
  • New file API method: delete() (gitbrent)
  • New file API method: recycle() (gitbrent)
  • New folder API method: add() (gitbrent)
  • New folder API method: delete() (gitbrent)
  • New folder API method: recycle() (gitbrent)
  • New folder API method: upload() #18 (ra6hi9)
  • New options() method: replaces baseUrl() and nodeConfig() methods (gitbrent)

Changed

  • Typescript: Modified declaration file #37 (kelvinbell)
  • Allow single UserProfile property to be queried #38 (YakQin)
  • The rest() method now includes the page's __REQUESTDIGEST value for POST types with custom headers that did not already include a value for X-RequestDigest

Removed

DEPRECATED baseUrl() and nodeConfig methods - use the new options() method instead.

v1.8.0

5 years ago

Implemented Enhancements:

  • New File Methods: get(), info(), perms() #20 (ra6hi9)(YakQin)(gitbrent)
  • New Folder Methods: files(), folders(), info(), perms() #20 (ra6hi9)(YakQin)(gitbrent)
  • Added Typescript Definitions #24 (Wireliner)
  • Added two new properties to list().cols() method: choiceValues and allowFillInChoices
  • Added "browser" field to package.json to improve library integration

Fixed Bugs:

  • The list() baseUrl option is ignored by the underlying versions query. #27 (gitbrent)
  • sprLib.user(options).profile() using "post"? #30 (YakQin)
  • The baseUrl option no longer works in user() methods #31 (YakQin)
  • Typescript fix: listCols should be optional #33 (csoren)

v1.7.0

6 years ago

Implemented Enhancements:

  • Renamed getItems() list method to items().
  • Modify user() method option names to be case insensitive #17 (gitbrent)
  • Get members of a specific group given its name #19 (ra6hi9)

Fixed Bugs:

  • Added catch() to core REST method call to properly handle failed queries
  • Updated Node detection to be more accurate and work with Angular, etc. (aka:"ERROR in ./node_modules/sprestlib/dist/sprestlib.js") #23 (azmatzuberi)

v1.6.0

6 years ago

Implemented Enhancements:

  • Add support for SP User Profile API #14 (ra6hi9)
  • Removed jQuery methods from sprestlib.js - there are now ZERO library dependencies!
  • Add async/await example #16 (wmertens)
  • Removed all ES6 code from sprestlib-demo.html (it is IE11 compatible now!), plus moved deps to CDN from local files.
  • Improved error messages/feedback

Fixed Bugs:

  • Fixed two issues with CRUD operations via Node.js
  • Fixed a few minor issues with parsing no results in certain scenarios, etc.

v1.5.0

6 years ago

Implemented Enhancements:

  • Form binding/population spun off into separate sprestlib-ui.js library
  • Created a separate demo page for sprestlib-ui.js library
  • Added new dist file (minified library): sprestlib.min.js

Fixed Bugs:

  • Selecting the same field name twice results in undefined #15 (gitbrent)
  • Fixed a null-check defect in REST result parsing

v1.4.0

6 years ago

Implemented Enhancements:

  • Add paging/skip/next ability to getItems() #4 (Wireliner)
  • Error in list(listname).create(data) #5 (Wireliner)
  • Add new option for auth DigestToken #6 (Wireliner)
  • Add new 'guid' option to list() #7 (YakQin)
  • Add new 'baseUrl' option to user() #8 (YakQin)
  • Add new 'nodeEnabled' option for Angular/etc #9 (ra6hi9)

v1.3.0

6 years ago

Implemented Enhancements:

  • BREAKING CHANGE: list().baseUrl() removed! (new: baseUrl param to list())
  • BREAKING CHANGE: version() method removed! (new: sprLib.version property)
  • .list() now accepts an object in addition to listname (string)
  • Added new metadata option to list().getItems() and rest() methods
  • Added new Site methods: site() - returns info, perms, users, groups, subsites, etc.

v1.2.1

6 years ago

Fixed Bugs:

  • Url param passing .rest() with 'http'/'https' is not being parsed correctly #2 (gitbrent)
  • Query options passed to .rest() are only parsed when 'queryCols' exists #3 (gitbrent)

v1.2.0

6 years ago

Implemented Enhancements:

  • Added Electron compatibility
  • Moved Qunit and SpRestLib script loading to dynamic for demo and qunit pages.

Fixed Bugs:

  • The sprLib.rest() method is not parsing queryCols correctly #1 (gitbrent)

v1.1.0

6 years ago

Fixed Bugs:

  • Fixed bug in error messages introduced in last release
  • Fixed error handling in Node.js
  • Fixed return of empty array for null Person/lookup fields