@sap/cds-dk 6.7.1 → 6.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/bin/migrate.js +6 -2
- package/lib/compile/openapi/csdl2openapi.js +2 -0
- package/npm-shrinkwrap.json +324 -2202
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,16 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
7
7
|
|
|
8
8
|
The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
9
9
|
|
|
10
|
+
## Version 6.7.2 - 2023-04-27
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Added option `--skip-verification` to command `cds migrate`. It skips the extension verification to save memory. Requires `@sap/cds-mtxs@1.7.3`.
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- Swagger UI no longer fails with an error `Value of 'namespaceAndName' parameter must be in the following format: <namespace>.<name>`
|
|
19
|
+
|
|
10
20
|
## Version 6.7.1 - 2023-04-19
|
|
11
21
|
|
|
12
22
|
### Changed
|
package/bin/migrate.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
module.exports = Object.assign(migrate, {
|
|
2
2
|
options: ['--directory', '--tag', '--tagRule'],
|
|
3
3
|
shortcuts: ['-d'],
|
|
4
|
-
flags: ['--dry', '--force', '--cleanup', '--resolve-bindings'],
|
|
4
|
+
flags: ['--dry', '--force', '--skip-verification', '--cleanup', '--resolve-bindings'],
|
|
5
5
|
help: `
|
|
6
6
|
# SYNOPSIS
|
|
7
7
|
|
|
8
|
-
*cds migrate* <tenant1|"*">[,<tenant2>] [-d <directory>] [--tag <tag>] [--tagRule <tag rule>] [--dry] [--force]
|
|
8
|
+
*cds migrate* <tenant1|"*">[,<tenant2>] [-d <directory>] [--tag <tag>] [--tagRule <tag rule>] [--dry] [--force] [--skip-verification]
|
|
9
9
|
|
|
10
10
|
Migrate extensions created with @sap/cds-mtx to extensions for @sap/cds-mtxs
|
|
11
11
|
|
|
@@ -33,6 +33,10 @@ module.exports = Object.assign(migrate, {
|
|
|
33
33
|
|
|
34
34
|
Do a dry-run only. Only run a verification of the extension migration.
|
|
35
35
|
|
|
36
|
+
*--skip-verification
|
|
37
|
+
|
|
38
|
+
Skip verification step. Does not check for potential deployment differences.
|
|
39
|
+
|
|
36
40
|
*--cleanup* (beta)
|
|
37
41
|
|
|
38
42
|
Removes all metadata containers created by @sap/cds-mtx.
|
|
@@ -59,6 +59,8 @@ module.exports.csdl2openapi = function (
|
|
|
59
59
|
maxLevels: maxLevels = 5
|
|
60
60
|
} = {}
|
|
61
61
|
) {
|
|
62
|
+
// as preProcess below mutates the csdl, copy it before, to avoid side-effects on the caller side
|
|
63
|
+
csdl = JSON.parse(JSON.stringify(csdl))
|
|
62
64
|
serviceRoot = serviceRoot || (scheme + '://' + host + basePath);
|
|
63
65
|
const queryOptionPrefix = csdl.$Version <= '4.0' ? '$' : '';
|
|
64
66
|
const typesToInline = {}; // filled in schema() and used in inlineTypes()
|