From 8c8e1691781eb0e41dd9d34b710168656d9ac56c Mon Sep 17 00:00:00 2001 From: D050513 Date: Thu, 25 Sep 2025 23:08:40 +0200 Subject: [PATCH 1/3] [cds^9.4] support for express 4 and 5 --- node.js/cds-facade.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/node.js/cds-facade.md b/node.js/cds-facade.md index 71366a97c3..3594554afb 100644 --- a/node.js/cds-facade.md +++ b/node.js/cds-facade.md @@ -301,12 +301,18 @@ cds.model = await cds.load('*') ### cds. app {.property} -The [express.js Application object](https://expressjs.com/de/4x/api.html#app) constructed during bootstrapping. Several framework operations use that to add express handlers or middlewares. It is initialised in built-in `server.js` like so: +The [express.js Application object](https://expressjs.com/en/api.html#app) constructed during bootstrapping. Several framework operations use that to add express handlers or middlewares. It is initialised in built-in `server.js` like so: ```js cds.app = require('express')() ``` +:::warning +The CAP Node.js runtime supports express.js versions 4 and 5. +However, some other (transitive) dependencies of your project may still rely on express.js version 4. +In this case, you must not upgrade. +::: + [Learn more about bootstrapping in `cds.server`.](./cds-serve){.learn-more} From 5a64a904edee6988cfdf21acc06e7042c2c82211 Mon Sep 17 00:00:00 2001 From: sjvans <30337871+sjvans@users.noreply.github.com> Date: Fri, 26 Sep 2025 01:37:39 +0200 Subject: [PATCH 2/3] Update node.js/cds-facade.md --- node.js/cds-facade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.js/cds-facade.md b/node.js/cds-facade.md index 3594554afb..c953f29eb0 100644 --- a/node.js/cds-facade.md +++ b/node.js/cds-facade.md @@ -308,7 +308,7 @@ cds.app = require('express')() ``` :::warning -The CAP Node.js runtime supports express.js versions 4 and 5. +The CAP Node.js runtime supports express.js versions 4 and 5 (beta). However, some other (transitive) dependencies of your project may still rely on express.js version 4. In this case, you must not upgrade. ::: From 37c15a8a3837b382ae40f98ecc49e345628ec8cd Mon Sep 17 00:00:00 2001 From: Mahati Shankar <93712176+smahati@users.noreply.github.com> Date: Tue, 7 Oct 2025 14:05:18 +0200 Subject: [PATCH 3/3] Update node.js/cds-facade.md --- node.js/cds-facade.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.js/cds-facade.md b/node.js/cds-facade.md index c953f29eb0..a24b0d0b89 100644 --- a/node.js/cds-facade.md +++ b/node.js/cds-facade.md @@ -301,7 +301,7 @@ cds.model = await cds.load('*') ### cds. app {.property} -The [express.js Application object](https://expressjs.com/en/api.html#app) constructed during bootstrapping. Several framework operations use that to add express handlers or middlewares. It is initialised in built-in `server.js` like so: +The [express.js Application object](https://expressjs.com/en/api.html#app) is constructed during bootstrapping. Several framework operations use it to add express handlers or middlewares. It'sĀ initialized in theĀ built-in `server.js` file: ```js cds.app = require('express')()