Skip to content

Commit 2ae812f

Browse files
Release March 2025 (#1755)
2 parents 88e175c + 9f7b450 commit 2ae812f

50 files changed

Lines changed: 1634 additions & 1444 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.devcontainer/devcontainer.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
11
{
2-
"image":"mcr.microsoft.com/devcontainers/universal:2",
2+
"image":"mcr.microsoft.com/vscode/devcontainers/javascript-node:22",
33
"customizations": {
44
"vscode": {
55
"extensions": [
66
"fcrespo82.markdown-table-formatter",
77
"vue.volar"
88
]
99
}
10-
}
10+
},
11+
"runArgs": [
12+
// disable IPv6, see https://github.com/vitejs/vite/issues/16522
13+
"--sysctl", "net.ipv6.conf.all.disable_ipv6=1"
14+
]
1115
}

.github/etc/create-review.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = async ({ github, require, exec, core }) => {
7171
const diffs = {}
7272
data.filter(obj => extname(obj.filename) === '.md')
7373
.forEach(obj => {
74-
diffs[obj.filename.replace('./', '')] = obj.patch.split('\n')
74+
diffs[obj.filename.replace('./', '')] = obj.patch?.split('\n') ?? []
7575
})
7676

7777
if (existsSync(markdownlintLogFile)) {

.vitepress/config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ const base = process.env.GH_BASE || '/docs/'
55
import { defineConfig } from 'vitepress'
66
import languages from './languages'
77
import path from 'node:path'
8+
import { Menu } from './menu.js'
9+
10+
const menu = await Menu.from ('./menu.md')
811

912
const config = defineConfig({
1013

@@ -35,6 +38,8 @@ const config = defineConfig({
3538
},
3639

3740
themeConfig: {
41+
sidebar: menu.items,
42+
nav: menu.navbar,
3843
logo: '/cap-logo.svg',
3944
outline: [2,3],
4045
socialLinks: [
@@ -101,8 +106,8 @@ config.rewrites = rewrites
101106
// Add custom capire info to the theme config
102107
config.themeConfig.capire = {
103108
versions: {
104-
java_services: '3.8.0',
105-
java_cds4j: '3.8.0'
109+
java_services: '3.9.0',
110+
java_cds4j: '3.9.0'
106111
},
107112
gotoLinks: [],
108113
maven_host_base: 'https://repo1.maven.org/maven2'

.vitepress/theme/components/ConfigInspect.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
const slots = useSlots()
8484
const slotVal = slots.default?.().at(0)?.children?.toString().trim() ?? 'error: provide <Config>your_key:value</Config>'
8585
86-
const [key, val] = slotVal.split(/\s*[:=]\s*/)
86+
const [key, val] = slotVal.split(/\s*[:=]\s*(.*)/) // split on first `:` or `=`
8787
const label = labelProp || `${keyOnly ? key: slotVal}`
8888
8989
const cfgKey = ref()
@@ -117,7 +117,7 @@
117117
const pkg = toJson(key, jsonVal ?? value)
118118
119119
pkgStr.value = JSON.stringify(pkg, null, 2)
120-
rcJsonStr.value = JSON.stringify(pkg.cds, null, 2)
120+
rcJsonStr.value = JSON.stringify(pkg.cds??{}, null, 2)
121121
rcJsStr.value = 'module.exports = ' + rcJsonStr.value.replace(/"(\w*?)":/g, '$1:')
122122
rcYmlStr.value = yaml.stringify(pkg.cds)
123123
propStr.value = `${key}=${jsonVal ? JSON.stringify(jsonVal) : value}`

.vitepress/theme/styles.scss

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@
5757
--vp-c-text-1: rgba(255, 255, 245, 0.86);
5858

5959
/* brightness fine-tuned to turn #fff into --vp-c-bg */
60-
img, svg.adapt-dark {
60+
img, svg.adapt-dark,
61+
video.bright { // assuming videos are usually dark, only darken them if marked as bright
6162
filter: brightness(.884) invert(1) hue-rotate(177deg)
6263
}
6364
img.mute-dark {

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ npm run docs:dev
2626

2727
Which usually starts a dev server on http://localhost:5173/ like this:
2828

29-
```
29+
```sh
3030
vitepress v1.0.0...
3131

3232
➜ Local: http://localhost:5173/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ npm run start
3535
```
3636

3737
This will respond with:
38-
```
38+
```sh
3939
vitepress v1...
4040

4141
➜ Local: http://localhost:5173/docs/

about/best-practices.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ Whenever you have to integrate external services, you should follow the Calesi p
928928
requires: {
929929
'audit-log': {
930930
"[development]": { impl: ".../audit-log-mock.js" },
931-
"[production]": { impl: ".../the-reasl-audit-log-srv.js" },
931+
"[production]": { impl: ".../the-real-audit-log-srv.js" },
932932
}
933933
}
934934
}

about/features.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,15 +178,15 @@ Following is an index of the features currently covered by CAP, with status and
178178

179179
### Events / Messaging
180180

181-
| | CDS | Node.js | Java |
182-
|-------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----:|:------------:|:----:|
183-
| [Declared Events in CDS](../cds/cdl#events) | <X/> | <X/> | <X/> |
184-
| Mock Broker (to speed up local dev) [[Node.js](../node.js/messaging#file-based)\|[Java](../java/messaging#local-testing)] | <Na/> | <X/> | <X/> |
185-
| SAP Event Mesh (For single-tenant apps) [[Node.js](../node.js/messaging#event-mesh-shared)\|[Java](../java/messaging#configuring-sap-event-mesh-support)] | <Na/> | <X/> | <X/> |
186-
| SAP Cloud Application Event Hub (For single-tenant apps) [[Node.js](../node.js/messaging#event-broker)] | <Na/> | <X/><br>beta | <D/> |
187-
| Composite Messaging (routing by configuration) [[Node.js](../node.js/messaging#composite-messaging)\|[Java](../java/messaging#composite-messaging-service)] | <Na/> | <X/> | <X/> |
188-
| Import AsyncAPI | <O/> | | |
189-
| Export AsyncAPI | <X/> | | |
181+
| | CDS | Node.js | Java |
182+
|-------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----:|:-------------------------:|:-------------------------:|
183+
| [Declared Events in CDS](../cds/cdl#events) | <X/> | <X/> | <X/> |
184+
| Mock Broker (to speed up local dev) [[Node.js](../node.js/messaging#file-based)\|[Java](../java/messaging#local-testing)] | <Na/> | <X/> | <X/> |
185+
| [SAP Cloud Application Event Hub](../guides/messaging/event-broker) | <Na/> | <X/><br><sup>plugin</sup> | <X/><br><sup>plugin</sup> |
186+
| [SAP Event Mesh](../guides/messaging/event-mesh) | <Na/> | <X/> | <X/> |
187+
| Composite Messaging (routing by configuration) [[Node.js](../node.js/messaging#composite-messaging)\|[Java](../java/messaging#composite-messaging-service)] | <Na/> | <X/> | <X/> |
188+
| Import AsyncAPI | <O/> | | |
189+
| Export AsyncAPI | <X/> | | |
190190

191191
<span id="events-messaging-more" />
192192

about/index.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ CAP provides mocked variants for several platform services out of the box, which
8585
| Database | SQLite, H2 in-memory | SAP HANA, PostgreSQL |
8686
| Authentication | Mocked Auth | SAP Identity Services |
8787
| App Gateway | None | SAP App Router |
88-
| Messaging | File-based Queues | SAP Event Hub, Kafka, Redis, ... |
88+
| Messaging | File-based Queues | SAP Cloud Appl. Event Hub, Kafka, Redis, ... |
8989

9090
> [!tip]
9191
>
@@ -159,7 +159,7 @@ The CAP runtimes in Node.js and Java provide many generic implementations for re
159159

160160
- [Serving CRUD Requests](../guides/providing-services#generic-providers)
161161
- [Serving Nested Documents](../guides/providing-services#deep-reads-and-writes)
162-
- [Serving Variable Data](../releases/oct24#basic-support-for-cds-map) <Alpha/>
162+
- [Serving Variable Data](../releases/archive/2024/oct24#basic-support-for-cds-map) <Alpha/>
163163
- [Serving (Fiori) Drafts](../advanced/fiori#draft-support)
164164
- [Serving Media Data](../guides/providing-services#serving-media-data)
165165
- [Searching Data](../guides/providing-services#searching-data)
@@ -223,7 +223,7 @@ That initiative happened to be successful, and gave a boost to a steadily **grow
223223
- [Open Telemetry → SAP Cloud Logging, Dynatrace, ...](../plugins/#telemetry)
224224
- [Attachments → SAP Object Store /S3](../plugins/#attachments)
225225
- [Attachments → SAP Document Management Service](../plugins/#@cap-js/sdm)
226-
- [Messaging → SAP Cloud Application Event Hub](../plugins/#event-broker-plugin)
226+
- [Messaging → SAP Cloud Application Event Hub](../plugins/#event-hub)
227227
- [Change Tracking](../plugins/#change-tracking)
228228
- [Notifications](../plugins/#notifications)
229229
- [Audit Logging → SAP Audit Logging](../plugins/#audit-logging)

0 commit comments

Comments
 (0)