Releases: AleksandrRogov/DynamicsWebApi
Releases · AleksandrRogov/DynamicsWebApi
v2.2.0
Changes
⚠️ Dropping official support for Node.js v16. Mainly because I cannot run actions with that version anymore, so I cannot guarantee that any future changes will continue working in it.- Replaced a custom UUID generator function with a built-in
randomUUID
(Crypto API).
⚠️ This may cause issues in the older browsers, and the library must now run in the "Secure Context" (https). - Slightly optimized
dateReviver
function.
Fixes
- Modified
expand
property in the type definitions to accept astring
. It could always accept astring
together with an array of expand objects.
v2.1.7
Fixes:
- Wrong type declaration for
UploadRequest
andDownloadRequest
:property
andfieldName
should be optional, untilfieldName
is removed.
Changes:
- Additional optimizations of regular expressions.
v2.1.6
Changes
⚠️ Deprecated:fieldName
in request properties fordeleteRecord
,uploadFile
,downloadFile
. Please useproperty
instead.- Curly brackets won't be removed from the GUIDs inside
filter
if the value that contains the GUID is inside single quotes, which means it's a string. This is an improvement of an existing functionality.
Before:"attribute eq 'some text {GUID} more text'"
would result in"attribute eq 'some text GUID more text'"
Now:"attribute eq 'some text {GUID} more text'"
stays the same"attribute eq 'some text {GUID} more text'"
- Improving performance by pre-compiling and optimizing regular expressions.
- General refactoring to improve code readability.
v2.1.5
v2.1.4
Fixes
name
property in acallFunction
must be optional, untilfunctionName
is removed.
v2.1.3
Changes:
- Added support for composable functions. Request object in
callFunction
now acceptsselect
andfilter
parameters. #168 - ContentId can be used as an URI reference inside the Batch Request. For example:
dynamicsWebApi.startBatch();
dynamicsWebApi.create({
contentId: "1", //<-- this content id will be used in the next request
collection: "contacts",
data: {
firstname: "James",
lastname: "Doe"
}
});
dynamicsWebApi.updateSingleProperty({
contentId: "$1", //<-- using content id of the record created in a previous request
// note, that neither "collection" nor "key" is used in this request,
// contentId replaces those
fieldValuePair: { lastname: "Bond" }
});
const results = await dynamicsWebApi.executeBatch();
//results[0] will have an id of a contact record
//results[1] will be empty
Deprecations:
functionName
parameter incallFunction
is marked as deprecated and will be removed in one of the future versions. Please usename
instead.
v1.7.12
v2.1.2
Changes:
- Added
@odata.nextLink
,@odata.count
and@odata.deltaLink
to TypeScript definitions.
Fixes:
v2.1.1
Changes:
- Minor changes in type declarations.
v2.1.0
Changes:
- Custom headers can now be added by default through the configuration object, or included with each request. #151
For example:await dynamicsWebApi.retrieveMultiple({ collection: "contacts", headers: { "my-header": "value" } });
- Added support for Microsoft Power Pages. Thanks to @03-CiprianoG for the PRs! More Info.