Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
<a name="v2.5.0"></a>
# [v2.5.0](https://github.com/AleksandrRogov/DynamicsWebApi/releases/tag/v2.5.0) - 25 Apr 2026

This release adds a new config property `propagateErrors`.

### ⚠️ Deprecations
Error handling of 404 and 412 errors is now treated as legacy and will be removed in `update`, `upsert` and `deleteRecord` operations to standardize the request behavior. For more information refer to [#204](https://github.com/AleksandrRogov/DynamicsWebApi/issues/204) and [#203](https://github.com/AleksandrRogov/DynamicsWebApi/issues/203) .

## What's Changed
* feat: new config property `propagateErrors` by [@AleksandrRogov](https://github.com/AleksandrRogov) in https://github.com/AleksandrRogov/DynamicsWebApi/pull/204


**Full Changelog**: https://github.com/AleksandrRogov/DynamicsWebApi/compare/v2.4.0...v2.5.0

[Changes][v2.5.0]


<a name="v2.4.0"></a>
# [v2.4.0](https://github.com/AleksandrRogov/DynamicsWebApi/releases/tag/v2.4.0) - 28 Oct 2025

## What's Changed
* Allowing `@odata.id` to have an alternate key format. It used to force an absolute URL which should have only been done in POST requests to `/$ref`. Fixes [#195](https://github.com/AleksandrRogov/DynamicsWebApi/issues/195) .
:warning: This change may be a breaking change in case you were making an _undocumented_ request that included `@odata.id` in the body of the request which will result in the value of the `@odata.id` to not have an absolute URL. A quick fix could be done by using a new utility function:
* `dynamicsWebApi.Utility.toAbsoluteUrl` - a new utility function that prepends a url from the `dataApi` config to a provided value.

**Full Changelog**: https://github.com/AleksandrRogov/DynamicsWebApi/compare/v2.3.2...v2.4.0

[Changes][v2.4.0]


<a name="v2.3.2"></a>
# [v2.3.2](https://github.com/AleksandrRogov/DynamicsWebApi/releases/tag/v2.3.2) - 20 Aug 2025

Expand Down Expand Up @@ -1141,6 +1171,8 @@ Added:
[Changes][v1.2.0]


[v2.5.0]: https://github.com/AleksandrRogov/DynamicsWebApi/compare/v2.4.0...v2.5.0
[v2.4.0]: https://github.com/AleksandrRogov/DynamicsWebApi/compare/v2.3.2...v2.4.0
[v2.3.2]: https://github.com/AleksandrRogov/DynamicsWebApi/compare/v2.3.1...v2.3.2
[v2.3.1]: https://github.com/AleksandrRogov/DynamicsWebApi/compare/v2.3.0...v2.3.1
[v2.3.0]: https://github.com/AleksandrRogov/DynamicsWebApi/compare/v2.2.1...v2.3.0
Expand Down
52 changes: 27 additions & 25 deletions .github/README.md

Large diffs are not rendered by default.

39 changes: 39 additions & 0 deletions .github/workflows/branch-build-test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Branch CI (feature/bugfix/hotfix)

on:
push:
branches:
- 'feature/**'
- 'bugfix/**'
- 'hotfix/**'
pull_request:
branches:
- 'feature/**'
- 'bugfix/**'
- 'hotfix/**'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm test
- name: Prepare coverage
if: ${{ matrix.node-version == '22.x' }}
run: npm run coverage
- name: Publish to Coveralls
if: ${{ matrix.node-version == '22.x' }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
continue-on-error: true
6 changes: 3 additions & 3 deletions .github/workflows/build-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x, 22.x, 23.x]
node-version: [18.x, 20.x, 22.x, 24.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -29,10 +29,10 @@ jobs:
# - run: npm run build --if-present
- run: npm test
- name: Prepare coverage
if: ${{ matrix.node-version == '20.x' }}
if: ${{ matrix.node-version == '22.x' }}
run: npm run coverage
- name: Publish to Coveralls
if: ${{ matrix.node-version == '20.x' }}
if: ${{ matrix.node-version == '22.x' }}
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"diff": true,
"extensions": ["ts"],
"spec": ["tests/*.spec.ts"],
"spec": ["tests/**/*.spec.ts"],
"require": ["ts-node/register"]
}
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"js/ts.tsdk.path": "node_modules\\typescript\\lib"
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ As well as Microsoft Dynamics 365 CE (online), Microsoft Dynamics 365 CE (on-pre
- **CRUD operations**. Including Fetch XML, Actions and Functions in Microsoft Dataverse Web API.
- **Table Definitions (Entity Metadata)**. Query and modify Table, Column, Choice (Option Set) and Relationship definitions.
- **File Fields**. Upload, Download and Delete data stored in the File Fields.
- **Abort Signal and Abort Controller** (Browser and Node.js 15+). Abort requests when they are no longer need to be completed.
- **Abort Signal and Abort Controller** (Browser and Node.js 15+). Abort requests when they no longer need to be completed.
- **Node.js and a Browser** support.
- **Proxy Configuration** support.
- **Background Operations** support. `v2.3.0+`
Expand All @@ -28,11 +28,11 @@ Browser-compiled script and type definitions can be found in a v2 [dist](https:/

Changelog can be found [here](/.github/CHANGELOG.md).

**NOTE!** "Dynamics 365" in this readme refers to Microsoft Dataverse (formerly known as Microsoft Common Data Service) / Microsoft Dynamics 365 Customer Engagement / Micorosft Dynamics CRM. **NOT** Microsoft Dynamics 365 Finance and Operations.
**NOTE!** "Dynamics 365" in this readme refers to Microsoft Dataverse (formerly known as Microsoft Common Data Service) / Microsoft Dynamics 365 Customer Engagement / Microsoft Dynamics CRM. **NOT** Microsoft Dynamics 365 Finance and Operations.

## Usage examples

### For a full documentation please check [DynamicsWebApi on GitHub](https://github.com/AleksandrRogov/DynamicsWebApi).
### For full documentation please check [DynamicsWebApi on GitHub](https://github.com/AleksandrRogov/DynamicsWebApi).

### Dynamics 365 Web Resource
To use DynamicsWebApi inside Dynamics 365 you need to download a browser version of the library, it can be found in v2 [dist](https://github.com/AleksandrRogov/DynamicsWebApi/tree/v2/dist) folder.
Expand Down Expand Up @@ -110,7 +110,7 @@ const contactId = responses[0];
const salesorderId = responses[1];
```

### For a full documentation please check [DynamicsWebApi on GitHub](https://github.com/AleksandrRogov/DynamicsWebApi).
### For full documentation please check [DynamicsWebApi on GitHub](https://github.com/AleksandrRogov/DynamicsWebApi).

## Contributions

Expand Down
89 changes: 58 additions & 31 deletions dist/browser/esm/dynamics-web-api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/browser/esm/dynamics-web-api.js.map

Large diffs are not rendered by default.

Loading
Loading