From 4db85ef51b1154e2feb84368b1ce9bb2d3c2662e Mon Sep 17 00:00:00 2001 From: Stefan von Torklus <55588020+stefanvtSAP@users.noreply.github.com> Date: Tue, 21 Jul 2026 16:53:30 +0200 Subject: [PATCH] Update GettingStarted.md --- docs/Authorization/GettingStarted.md | 33 +++++++++++++++++++++------- 1 file changed, 25 insertions(+), 8 deletions(-) diff --git a/docs/Authorization/GettingStarted.md b/docs/Authorization/GettingStarted.md index a119481..f2b6e28 100644 --- a/docs/Authorization/GettingStarted.md +++ b/docs/Authorization/GettingStarted.md @@ -206,17 +206,16 @@ In CAP Java projects, the (optional) Node.js module `@sap/ams` *should* be added The latest versions of the Node.js modules can always be found on [npmjs.org](https://www.npmjs.com/package/@sap/ams). -| Project Type | @sap/ams | @sap/ams-dev | Java JDK | -|-------------------|:--------:|:------------:|:--------:| -| Plain Node.js | ✓ ^3 | (✓)* ^2 | (✓)* 17+ -| express (Node.js) | ✓ ^3 | (✓)* ^2 | (✓)* 17+ -| CAP (Node.js) | ✓ ^3 | (✓)* ^2 | (✓)* 17+ +| Project Type | @sap/ams | @sap/ams-dev | +|-------------------|:--------:|:------------:| +| Plain Node.js | ✓ ^3 | (✓)* ^3 | +| express (Node.js) | ✓ ^3 | (✓)* ^3 | +| CAP (Node.js) | ✓ ^3 | (✓)* ^3 | (✓) = *devDependency* ::: tip * -only required to compile DCL files before running local tests. We are currently finishing a compiler in Javascript that -will make these dependencies obsolete. +only required to compile DCL files before running local tests. Since `@sap/ams-dev` version `^3`, the DCL compiler is bundled as a WebAssembly module, so a Java JDK is no longer required. ::: ### Go @@ -266,4 +265,22 @@ For major version 3 of the Java libraries, the following dependency setup was re ::: tip In CAP Java projects, the (optional) Node.js module `@sap/ams` *should* be added in the `package.json` as a *devDependency* with version `^3` to provide dev-time features as [cds build plugin](/CAP/cds-Plugin). -::: \ No newline at end of file +::: + +### Node.js Library Version 2 + +For major version 2 of `@sap/ams-dev`, the following dependency setup was recommended: + +| Project Type | @sap/ams | @sap/ams-dev | Java JDK | +|-------------------|:--------:|:------------:|:--------:| +| Plain Node.js | ✓ ^3 | (✓)* ^2 | (✓)* 17+ | +| express (Node.js) | ✓ ^3 | (✓)* ^2 | (✓)* 17+ | +| CAP (Node.js) | ✓ ^3 | (✓)* ^2 | (✓)* 17+ | + +(✓) = *devDependency* + +::: tip * +only required to compile DCL files before running local tests. In `@sap/ams-dev` version `^2`, the DCL compiler was +Java-based and therefore required a Java JDK (version 17 or higher) to be installed. This dependency was removed in +version `^3`, where the compiler is bundled as a WebAssembly module. +:::