Releases: Aymkdn/SharepointPlus
Releases · Aymkdn/SharepointPlus
SharepointPlus v6.0.1
Change Log v6.0.1 (December 27, 2019)
- Fixed object creation that shared data with other instances
SharepointPlus v6.0
Read the announcement about the breaking changes.
Change Log v6.0 (December 26, 2019)
- Added function
$SP().getManager()
to get details about an user's manager - Added function
$SP().toPeopleString()
to convert {id, name, username, email} to a "people string" - Added function
$SP().setReadOnly()
to change a READONLY column (like 'Created'/'Author'/'Modified'/'Editor') to an EDITABLE column - Added option
showListInAttribute
for$SP().list().get()
- Added option
alias
for$SP().list().get()
- Added option
json
for$SP().list().get()
that returns an array of JSON - Added support for
~<>
in$SP().parse()
- Added parameter
folderOptions.rootFolder
for$SP.list().get()
for when it's a document library with a different name - Added option
type
for$SP().checkin()
('MinorCheckIn' (incremented as a minor version), 'MajorCheckIn' (incremented as a major version), or 'OverwriteCheckIn' (overwrite the file)) - Added option
breakOnFailure
for$SP().list().add()
,$SP().list().remove()
and$SP().list().update()
- Added more unit tests
- Changed the way
$SP().notify()
callssp.js
andcore.js
- Changed the default
packetsize
from 15 to 30 for$SP().list().add()
,$SP().list().remove()
and$SP().list().update()
- Changed the call for
$SP().list().get()
withwhere
as an array from a succession of calls to calls in parallel - Changed changelog to auto-ignore modules that are meant for server-side use (see ##123) (based on https://github.com/defunctzombie/package-browser-field-spec)
- Fixed
view
utilized withwhere
as an array in$SP().list().get()
- Renamed
$SP().SPArrayBufferToBase64()
to$SP().arrayBuffer()
- Renamed
$SP().SPExtend()
to$SP().cloneObject()
- Renamed
$SP().SPArrayChunk()
to$SP().arrayChunk()
- Updated the documentation
SharepointPlus v5.2
Change Log v5.2 (March 25, 2019)
- Remove
argument.callee
because it's deprecated and returns error with strict mode - Add option
merge
for$SP().list.get()
that permits to merge several lists in the same dataset - Add support for
RecurrenceData
when adding a recurrent event with$SP().list().add()
- Add option
event
and examples to update one occurrence of a recurrent event with$SP().list().update()
- Add option
event
and examples to remove one occurrence of a recurrent event with$SP().list().remove()
- Add function
$SP().parseRecurrence
that converts a RecurrenceData XML string to an object, and vice-versa - Add function
$SP().getTimeZoneInfo
that returns the TimeZoneID, and other information used when setting recurrent event - Add support for download
onprogress
for$SP().ajax()
- Add
$SP().list().stopWorkflow()
to stop/terminate workflows 2010 - Add unit tests for calendar events and
$SP().parseRecurrence()
- Change
$SP().showModalDialog()
that now returns a Promise (we can use either the callback function or the promise) - Change
PeopleAhead
plugin to be compatible with SharepointPlus 5.1+ - Fix
outerjoin
when usingonLookup
for$SP().list.get()
- Fix incorrect characters in filenames for
addAttachment
andcreateFile
- Fix missing catch for
$SP().lists()
(see #116)
SharepointPlus v5.1
Change Log v5.1 (August 21, 2018)
- Fix url issue in
$SP().getWorkflowID()
- Fix url issue when SharepointPlus is called from the root (see #86)
- Fix
parse()
(see #89) - Fix
getRequestDigest()
when using it with NodeJS on a sub site collection - Fix
addressbook()
(incorrect checks of arguments) - Fix
$SP().cleanResult()
when the string was like "-1;#something" - Remove
$SP().toCurrency()
(use [https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/NumberFormat](Inlt with NumberFormat instead) ... e.g.new Intl.NumberFormat('en-US', {style: 'currency', currency: 'USD'})
) - Use method
GET
by default when callingajax()
with NodeJS - Change the default value returned by
$SP().view()
forOrderBy
(from[]
to""
when no orderby defined for the view) - Add new utility function called
$SP().getPeopleLookup()
- Improve support for NodeJS
- Improve some errors handling
SharepointPlus v5.0
Change Log v5.0 (November 21, 2017)
- Remove all jQuery references
- Remove old IE support; support starts from IE11 (the user will have to verify compatibility for older versions)
- Remove
SPArrayIndexOf()
- Remove
SPArrayForEach()
- Remove
SPIsArray()
(use Array.isArray instead) - Remove
Strim.prototype.trim
polyfill - Remove
$SP().encode_b64()
and$SP().decode_b64()
(the code can be retrieved here https://blog.kodono.info/wordpress/2011/07/27/midi-code-encoder-decoder-en-base64-pour-javascript-programmation/) - Remove alias
$SP().list().del()
(use$SP().list().remove()
instead) - Remove native support for
$SP().formfields()
(you now need to call the related plugin) - Remove callbacks for all functions
- Add Promise for all functions
- Change
$SP().ajax()
to integratenanoajax
(no need to callnanoajax
from a seperate file) - Change options for
$SP().ajax()
to fit withnanoajax
- Change
$SP().getURL()
to return a Promise (async requests are not supported by recent browsers anymore) - Change parameters for
$SP().list().createFile()
, and it must now be called with$SP().list()
- Change parameters for
$SP().list().createFolder()
, and it must now be called with$SP().list()
- Change encoding for
$SP().list().addAttachment()
fromBase64
toArrayBuffer
- Change values returned by
$SP().list().view()
- Change values returned by
$SP().list().views()
- Change values returned by
$SP().list().add()
- Change values returned by
$SP().list().update()
- Change values returned by
$SP().list().remove()
- Change values returned by
$SP().list().moderate()
- Change behavior for
$SP().list().add()
and$SP().list().update()
when an empty array of values is passed as a column value to be added/updated (it will now return '' instead of ';#;#') - Add option
cache
for$SP().list().view()
- Add option
cache
for$SP().lists()
- Add option
packetsize
for$SP().list().moderate()
- Add
$SP().getPageSize()
that permits to get the size of the document/page - Add option
soapURL
to$SP().webService()
(see #51) - Add wiki pages for "Term/Taxonomy/Managed Metadata" (see https://github.com/Aymkdn/SharepointPlus/wiki/)
- Add wiki page for Discussion Board (see https://github.com/Aymkdn/SharepointPlus/wiki/Sharepoint-Discussion-Board)
- Add
Property
property for aTaxonomyFieldType
returned by$SP().list().info()
- Add
._List
that returns the details for the list for$SP().list().info()
- Add
$SP().hasREST()
to detect if REST API is supported - Add
progress
function for$SP().createFile()
- Add
getXHR
function for$SP().createFile()
- Add support for
ArrayBuffer
for$SP().createFile()
- Add
SPArrayBufferToBase64
function() to transform an ArrayBuffer to a Base64 string - Add automatic JSON parsing for results from
$SP().ajax()
which Content-Type that matchs json - Add option
soapAction
for$SP().webService()
- Add support for multiple ids/values for
$SP().getLookup()
- Add automatic support for digest token on
$SP().ajax()
- Add
$SP().getRequestDigest()
- Add option
rootFolder
for$SP().list().add()
for support of Discussion Board - Add 30+ new QUnit tests
- Fix
$SP().formfields()
when there is ampersand (&) into the field's name - Fix
$SP().toSPDate()
when time is required (see issue #64) - Fix
SP().createFile()
for big upload with REST API (see https://stackoverflow.com/questions/46297625/large-arraybuffer-crashes-with-xmlhttprequest-send/46299028#46299028) - Fix
$SP.ajax()
to resolve when the status code returned by the server is 2xx and not 200 only - Improve catch error from
$SP().createFile
- Optimize code for compression
SharepointPlus v4.0
Change Log v4.0 (May 4, 2017)
- Add NodeJS support: SharepointPlus can now be called as a node module and can be used on server side
- Add
$SP().auth()
that must be used when using NodeJS (based on https://github.com/s-KaiNet/sp-request) - Add
$SP().proxy()
that can be used with NodeJS - Add Promise support for
$SP().list().get()
- Add Promise support for
$SP().list().add()
- Add Promise support for
$SP().list().update()
- Add Promise support for
$SP().list().remove()
- Add Promise support for
$SP().list().createFolder()
- Add Promise support for
$SP().list().createFile()
- Add Promise support for
$SP().checkin()
- Add
SPExtend()
that permits to clone/extend an object - Add
$SP().webService()
to send customized requests to the web services (instead of using SPServices) - Add qunit-test on
$SP().webService()
- Add qunit-test on
$SP().checkin()
- Add
packetsize
option for$SP().list().update()
- Rewrite the documentation using JSDoc 3 instead of JSDoc 2
- Reorganize the documentation to group the methods by category
- Use of eslint to clean up the code
- Change license from GPL 3.0 to LGLP 3.0 (see #48)
- Fix
$SP().checkin()
(see #49)
SharepointPlus v3.14
Change Log v3.14 (March 6, 2017)
- Add a sanitize filter for the filename in
$SP().createFile()
because Sharepoint doesn't like some special characters - Fix a bug with "Content Type" field in
SP().formfields()
- Fix a bug with
SP().formfields().elem()
when mixed fieldtypes where used - Handle
callback
even whenshowClose:false
in$SP().showModalDialog()
- Add more documentation for
$SP().showModalDialog()
- Add option
id
for$SP().showModalDialog()
- Add option
onload
for$SP().showModalDialog()
- Add function
$SP().getModalDialog()
- Add function
$SP().resizeModalDialog()
- Improve
$SP().parse()
for theIN
operator - Review the code for
join
andouterjoin
options within$SP().list().get()
- Add new option
join.onLookup
for$SP().list().get()
SharepointPlus v3.13
Change Log v3.13 (August 23, 2016)
- Fully compatible with Sharepoint 2013!
- jQuery is not required anymore!
- Rewrite
$SP().createFile()
with new options (see issue #26 and pull #29) - Add operator "IN" for WHERE clause thru
$SP().parse()
(e.g. 'Location IN ["Los Angeles","San Francisco","New York"]') - Add special words "TRUE" and "FALSE" for
$SP().parse()
to use with the Yes/No columns - Full rewrite of
$SP().formfields()
to be compatible with Sharepoint 2013 (a few things could be now different from previous versions) - Remove option
data-sp-ignore
from$SP().formfields()
- Set 160 qUnit tests for almost all the functions
- Add automatic qUnit test environment creation to make tests easier
- Add option
usejQuery
to$SP().formfields().elem()
- Add
$SP().encode_b64()
and$SP().decode_b64()
- Add
$SP().getURL()
to return the current base url - Add
$SP().regionalSettings()
to return the user regional settings - Add
$SP().regionalDateFormat()
to return the date format based on the user regional settings (usefull for Date Picker fields manipulation) - Add
$SP().list().startWorkflow2013()
to start Sharepoint 2013 workflows (the other function remains for Sharepoint 2010 workflows) - Add Site Workflow start for
$SP().list().startWorkflow()
- Add
$SP().showModalDialog()
,$SP().closeModalDialog()
and$SP().waitModalDialog()
- Add two parameters (passedItems, failedItems) to options
after
for$SP().list().add()
,$SP().list().update()
, ... - Add
$SP().list().addAttachment()
to attach a document to a list item
SharepointPlus v3.12
Change Log v3.12 (January 26, 2016)
- Fix problem with IE8 and Array.prototype.indexOf (issue #25)
- Change the versioning number, from 3.0.11 to 3.12
- Add qunit tests
SharepointPlus v3.0.11
Change Log v3.0.11 (January 11, 2016)
- Fix $SP().forms() for Sharepoint 2013
- Add $SP().formfields().isMandatory() to return the mandatory status of the field(s)
- Add $SP().formfields().name() to return the name of the field(s)
- Fix $SP().cleanResult() for "float;"
- Add $SP().list().getContentTypes() to return the content types for a list
- Add $SP().list().getContentTypeInfo() to return the content type info for a list
- Add support of the Enhanced Textarea field
- Fix $SP().formfields().each() that returns a jQuery object when calling this.elem() and this.row()
- Fix $SP()).formfields().val() returning an empty array when no value available, and it now returns an empty string
- Add more data returned by $SP().list().getWorkflowID()
- Add $SP().workflowStatusToText() to convert the workflow status code to the related message
- Add option "listItemCollectionPositionNext" to $SP().list().get() for paging
- Fix $SP().list().getWorkflowID() to use ClientContent when permissions are insufficient