Skip to content

Commit 60c9270

Browse files
replaced a custom uuid generator with a built-in in crypto; converted all js test scripts to ts; slightly optimized dateReviver function
1 parent 7f1c88e commit 60c9270

28 files changed

+2748
-1991
lines changed

.github/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ The following table describes `Expand` Object properties:
398398

399399
Property Name | Type | Description
400400
------------ | ------------- | -------------
401-
expand | `Expand[]` | An array of `Expand` Objects representing the $expand OData System Query Option value to control which related records are also returned.
401+
expand | `string` or `Expand[]` | An array of `Expand` Objects representing the $expand OData System Query Option value to control which related records are also returned. Can also accept a string.
402402
filter | `string` | Use the $filter system query option to set criteria for which related entities will be returned.
403403
orderBy | `string[]` | An Array (of strings) representing the order in which related items are returned using the $orderby system query option. Use the asc or desc suffix to specify ascending or descending order respectively. The default is ascending if the suffix isn't applied.
404404
property | `string` | A name of a single-valued navigation property which needs to be expanded.

.mocharc.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
diff: true,
3-
extension: ["ts", "js"],
4-
require: "ts-node/register",
5-
spec: ["tests/*.spec.js", "tests/*.spec.ts"],
3+
extension: ["ts"],
4+
require: "tsx",
5+
spec: ["tests/*.spec.ts"],
66
};

dist/browser/esm/dynamics-web-api.js

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/esm/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/dynamics-web-api.js

Lines changed: 8 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/cjs/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! dynamics-web-api v2.1.7 (c) 2024 Aleksandr Rogov. License: MIT */
1+
/*! dynamics-web-api v2.1.8 (c) 2025 Aleksandr Rogov. License: MIT */
22
/**
33
* Microsoft Dataverse Web API helper library for Node.js and Browser.
44
* It is compatible with: Dataverse, Dynamics 365 (online), Dynamics 365 (on-premise), Dynamics CRM 2016, Dynamics CRM Online.
@@ -442,8 +442,8 @@ export interface CreateRequest<T = any> extends CRUDRequest {
442442
duplicateDetection?: boolean;
443443
/**A JavaScript object with properties corresponding to the logical name of entity attributes(exceptions are lookups and single-valued navigation properties). */
444444
data?: T;
445-
/**An array of Expand Objects(described below the table) representing the $expand OData System Query Option value to control which related records are also returned. */
446-
expand?: Expand[];
445+
/**An array of Expand Objects representing the $expand OData System Query Option value to control which related records are also returned. Can also accept a string. */
446+
expand?: string | Expand[];
447447
/**Sets Prefer header with value "odata.include-annotations=" and the specified annotation.Annotations provide additional information about lookups, options sets and other complex attribute types. */
448448
includeAnnotations?: string;
449449
/**A String representing the name of a single - valued navigation property. Useful when needed to retrieve information about a related record in a single request. */

dist/dynamics-web-api.js

Lines changed: 9 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/dynamics-web-api.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)