From bee997af80ce356b283706537b99e3d658b6d034 Mon Sep 17 00:00:00 2001 From: Johannes Vogel Date: Thu, 22 Feb 2024 14:58:54 +0100 Subject: [PATCH 1/2] fix: ad-hoc options are not cached --- node.js/cds-connect.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/node.js/cds-connect.md b/node.js/cds-connect.md index d0b38f721..91dfea980 100644 --- a/node.js/cds-connect.md +++ b/node.js/cds-connect.md @@ -193,6 +193,8 @@ _**Caching:**_ Service instances are cached in [`cds.services`](cds-facade#cds-services), thus subsequent connects with the same service name return the initially connected one. As services constructed by [`cds.serve`] are registered with [`cds.services`](cds-facade#cds-services) as well, a connect finds and returns them as local service connections. +If _ad-hoc_ options are provided, the instance is not cached. + ### cds.connect.to (options) → service From c28e905b33661dfbd86b6d0c74549986364d6871 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Jeglinsky?= Date: Thu, 22 Feb 2024 16:45:52 +0100 Subject: [PATCH 2/2] Update node.js/cds-connect.md --- node.js/cds-connect.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/node.js/cds-connect.md b/node.js/cds-connect.md index 91dfea980..f253666c4 100644 --- a/node.js/cds-connect.md +++ b/node.js/cds-connect.md @@ -191,7 +191,7 @@ _**Arguments:**_ _**Caching:**_ -Service instances are cached in [`cds.services`](cds-facade#cds-services), thus subsequent connects with the same service name return the initially connected one. As services constructed by [`cds.serve`] are registered with [`cds.services`](cds-facade#cds-services) as well, a connect finds and returns them as local service connections. +Service instances are cached in [`cds.services`](cds-facade#cds-services), thus subsequent connects with the same service name return the initially connected one. As services constructed by [`cds.serve`](cds-serve#cds-serve) are registered with [`cds.services`](cds-facade#cds-services) as well, a connect finds and returns them as local service connections. If _ad-hoc_ options are provided, the instance is not cached.