Skip to content

Commit 6d7dceb

Browse files
committed
chore: update upgrade guide
1 parent 1b7052c commit 6d7dceb

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

V4-Upgrade-Guide.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ The To-Do list is:
1919

2020
- [Update Your Project Dependencies](#update-your-project-dependencies)
2121
- [Update to Node 22 or Newer](#update-to-node-22-or-newer)
22+
- [Set `useCache` explicitly to false to turn off destination caching](#set-useCache-explicitly-to-false-to-turn-off-destination-caching)
2223

2324
## Update Your Project Dependencies
2425

@@ -34,3 +35,15 @@ We recommend updating your applications in one commit or pull request and making
3435
All SAP Cloud SDK for JavaScript libraries now support node 22 (LTS) as the **minimum** node version.
3536
If you are using a node version older than 22, update your runtime environment to a newer version.
3637
On Cloud Foundry you can do this by [setting the node engine in your `package.json`](https://docs.cloudfoundry.org/buildpacks/node/index.html#runtime).
38+
39+
## Set `useCache` explicitly to false to turn off destination caching
40+
41+
**Destination caching while retrieving destinations via the destination service is now enabled by default.**
42+
This change affects the default behviour of `getDestination()` method, generated client's `execute()` method and generic HTTP requests execution using `executeHttpRequest()`.
43+
44+
To disable caching set `useCache: false` in the options, for example in `execute()` method:
45+
46+
```TS
47+
.execute({ destinationName: 'DESTINATION', jwt: 'JWT', useCache: false })
48+
```
49+

0 commit comments

Comments
 (0)