@sap/cds-dk 6.8.2 → 7.0.0

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.
Files changed (218) hide show
  1. package/bin/activate.js +15 -7
  2. package/bin/add.js +29 -15
  3. package/bin/bind.js +49 -116
  4. package/bin/build.js +114 -0
  5. package/bin/cds.js +67 -24
  6. package/bin/compile/index.js +2 -2
  7. package/bin/deploy/index.js +46 -39
  8. package/bin/deploy/to-hana.js +11 -8
  9. package/bin/deploy/to-postgres.js +8 -2
  10. package/bin/deploy/to-sqlite.js +0 -1
  11. package/bin/env.js +75 -41
  12. package/bin/eval.js +3 -3
  13. package/bin/extend.js +17 -10
  14. package/bin/help.js +22 -21
  15. package/bin/import.js +10 -7
  16. package/bin/init.js +38 -17
  17. package/bin/login.js +69 -55
  18. package/bin/logout.js +12 -9
  19. package/bin/migrate.js +10 -4
  20. package/bin/pull.js +12 -5
  21. package/bin/push.js +24 -13
  22. package/bin/repl.js +1 -0
  23. package/bin/run.js +25 -0
  24. package/bin/subscribe.js +13 -8
  25. package/bin/unsubscribe.js +15 -8
  26. package/bin/upgrade.js +15 -9
  27. package/bin/util/log.js +24 -0
  28. package/bin/version.js +124 -0
  29. package/bin/watch.js +1 -35
  30. package/bin/watched.js +39 -0
  31. package/lib/bind/KubernetesApiAccessor.js +2 -2
  32. package/lib/bind/bindingManager.js +1 -1
  33. package/lib/bind/bindingUtil.js +0 -9
  34. package/lib/bind/cfKeyProvider.js +10 -72
  35. package/lib/bind/index.js +114 -0
  36. package/lib/bind/kubernetesCredentialsProvider.js +2 -2
  37. package/lib/bind/userCdsrcJsonStorageProvider.js +7 -44
  38. package/lib/build/buildTaskEngine.js +355 -0
  39. package/lib/build/buildTaskFactory.js +284 -0
  40. package/lib/build/buildTaskHandler.js +240 -0
  41. package/lib/build/buildTaskProvider.js +22 -0
  42. package/lib/build/buildTaskProviderFactory.js +182 -0
  43. package/lib/build/constants.js +56 -0
  44. package/lib/build/index.js +21 -0
  45. package/lib/build/provider/buildTaskHandlerEdmx.js +83 -0
  46. package/lib/build/provider/buildTaskHandlerFeatureToggles.js +132 -0
  47. package/lib/build/provider/buildTaskHandlerInternal.js +228 -0
  48. package/lib/build/provider/buildTaskProviderInternal.js +370 -0
  49. package/lib/build/provider/fiori/index.js +167 -0
  50. package/lib/build/provider/hana/2migration.js +179 -0
  51. package/lib/build/provider/hana/index.js +522 -0
  52. package/lib/build/provider/hana/migrationtable.js +472 -0
  53. package/lib/build/provider/hana/template/.hdiconfig-all +163 -0
  54. package/lib/build/provider/hana/template/.hdiconfig-cloud +137 -0
  55. package/lib/build/provider/hana/template/.hdinamespace +4 -0
  56. package/lib/build/provider/hana/template/package.json +12 -0
  57. package/lib/build/provider/hana/template/undeploy.json +5 -0
  58. package/lib/build/provider/java/index.js +93 -0
  59. package/lib/build/provider/java-cf/index.js +1 -0
  60. package/lib/build/provider/mtx/index.js +37 -0
  61. package/lib/build/provider/mtx/resourcesTarBuilder.js +94 -0
  62. package/lib/build/provider/mtx-extension/index.js +131 -0
  63. package/lib/build/provider/mtx-sidecar/index.js +138 -0
  64. package/lib/build/provider/node-cf/index.js +1 -0
  65. package/lib/build/provider/nodejs/index.js +178 -0
  66. package/lib/build/util.js +263 -0
  67. package/lib/cds.js +9 -21
  68. package/lib/client/auth_manager.js +39 -16
  69. package/lib/client/helper/dependency_helper.js +7 -6
  70. package/lib/client/push.js +2 -1
  71. package/lib/client/settings_manager.js +10 -39
  72. package/lib/deploy/to-hana/hana.js +273 -0
  73. package/lib/deploy/to-hana/hdiDeployUtil.js +68 -0
  74. package/lib/deploy/to-hana/mtaUtil.js +171 -0
  75. package/lib/import/asyncapi/importAsyncAPI.js +3 -2
  76. package/lib/import/asyncapi/index.js +5 -2
  77. package/lib/import/asyncapi/parserContext.js +67 -26
  78. package/lib/import/asyncapi/utils.js +34 -3
  79. package/lib/import/common.js +40 -30
  80. package/lib/import/importapi.js +36 -35
  81. package/lib/index.js +12 -17
  82. package/lib/init/constants.js +36 -71
  83. package/lib/init/index.js +18 -52
  84. package/lib/init/template/_merging/registry-mta.js +21 -3
  85. package/lib/init/template/approuter/files/mta.yaml.hbs +29 -29
  86. package/lib/init/template/approuter/files/values.yaml.hbs +5 -5
  87. package/lib/init/template/approuter/files/xs-app.json.hbs +8 -2
  88. package/lib/init/template/approuter/index.js +7 -8
  89. package/lib/init/template/auditlog/files/mta.yaml.hbs +5 -5
  90. package/lib/init/template/auditlog/files/package.json.hbs +13 -13
  91. package/lib/init/template/auditlog/index.js +3 -3
  92. package/lib/init/template/cf-manifest/files/manifest.yml.hbs +22 -22
  93. package/lib/init/template/cf-manifest/files/services-manifest.yml.hbs +3 -3
  94. package/lib/init/template/connectivity/files/mta.yaml.hbs +14 -0
  95. package/lib/init/template/connectivity/files/package.json.hbs +17 -0
  96. package/lib/init/template/connectivity/index.js +21 -4
  97. package/lib/init/template/data/index.js +5 -1
  98. package/lib/init/template/destination/files/mta.yaml.hbs +14 -0
  99. package/lib/init/template/destination/files/package.json.hbs +17 -0
  100. package/lib/init/template/{destinations → destination}/index.js +19 -13
  101. package/lib/init/template/enterprise-messaging/files/event-mesh.json.hbs +3 -3
  102. package/lib/init/template/enterprise-messaging/files/mta.yaml.hbs +5 -5
  103. package/lib/init/template/enterprise-messaging/files/package.json.hbs +9 -9
  104. package/lib/init/template/enterprise-messaging/files/xs-security.json.hbs +19 -0
  105. package/lib/init/template/enterprise-messaging/index.js +27 -6
  106. package/lib/init/template/enterprise-messaging-shared/files/event-mesh.json.hbs +3 -3
  107. package/lib/init/template/enterprise-messaging-shared/files/mta.yaml.hbs +5 -5
  108. package/lib/init/template/enterprise-messaging-shared/files/package.json.hbs +9 -9
  109. package/lib/init/template/enterprise-messaging-shared/index.js +4 -5
  110. package/lib/init/template/extensibility/files/package.json.hbs +10 -10
  111. package/lib/init/template/extensibility/index.js +8 -9
  112. package/lib/init/template/file-based-messaging/files/package.json.hbs +9 -9
  113. package/lib/init/template/file-based-messaging/index.js +3 -4
  114. package/lib/init/template/hana/files/db/package.json +1 -1
  115. package/lib/init/template/hana/files/mta.yaml.hbs +21 -21
  116. package/lib/init/template/hana/files/package.json.hbs +16 -22
  117. package/lib/init/template/hana/files/values.yaml.hbs +1 -1
  118. package/lib/init/template/hana/index.js +5 -15
  119. package/lib/init/template/helm/files/Chart.yaml.hbs +4 -4
  120. package/lib/init/template/helm/files/values.yaml.hbs +6 -6
  121. package/lib/init/template/helm/index.js +5 -10
  122. package/lib/init/template/helm/subcharts/content-deployment/Chart.yaml +2 -0
  123. package/lib/init/template/helm/subcharts/content-deployment/templates/_helpers.tpl +37 -31
  124. package/lib/init/template/helm/subcharts/content-deployment/templates/job.yaml +13 -14
  125. package/lib/init/template/helm/subcharts/content-deployment/templates/secret.yaml +2 -2
  126. package/lib/init/template/helm/subcharts/content-deployment/templates/service-account.yaml +1 -1
  127. package/lib/init/template/helm/subcharts/content-deployment/templates/service-binding.yaml +3 -3
  128. package/lib/init/template/helm/subcharts/content-deployment/values.md +116 -116
  129. package/lib/init/template/helm/subcharts/service-instance/Chart.yaml +2 -0
  130. package/lib/init/template/helm/subcharts/service-instance/templates/_helpers.tpl +9 -9
  131. package/lib/init/template/helm/subcharts/service-instance/templates/serviceinstance.yaml +2 -2
  132. package/lib/init/template/helm/subcharts/service-instance/values.md +15 -15
  133. package/lib/init/template/helm/subcharts/web-application/Chart.yaml +2 -0
  134. package/lib/init/template/helm/subcharts/web-application/templates/NOTES.txt +15 -0
  135. package/lib/init/template/helm/subcharts/web-application/templates/_helpers.tpl +23 -23
  136. package/lib/init/template/helm/subcharts/web-application/templates/api-rule.yaml +4 -4
  137. package/lib/init/template/helm/subcharts/web-application/templates/deployment.yaml +17 -17
  138. package/lib/init/template/helm/subcharts/web-application/templates/network-policy.yaml +24 -3
  139. package/lib/init/template/helm/subcharts/web-application/templates/pod-disruption-budget.yaml +3 -3
  140. package/lib/init/template/helm/subcharts/web-application/templates/secret.yaml +2 -2
  141. package/lib/init/template/helm/subcharts/web-application/templates/service-account.yaml +1 -1
  142. package/lib/init/template/helm/subcharts/web-application/templates/service-binding.yaml +3 -3
  143. package/lib/init/template/helm/subcharts/web-application/templates/service.yaml +3 -3
  144. package/lib/init/template/helm/subcharts/web-application/values.md +141 -123
  145. package/lib/init/template/helm/subcharts/web-application/values.schema.json +7 -0
  146. package/lib/init/template/helm/subcharts/web-application/values.yaml +1 -0
  147. package/lib/init/template/html5-repo/index.js +4 -5
  148. package/lib/init/template/java/index.js +5 -5
  149. package/lib/init/template/kibana-logging/files/mta.yaml.hbs +5 -5
  150. package/lib/init/template/kibana-logging/files/package.json.hbs +9 -9
  151. package/lib/init/template/kibana-logging/index.js +3 -4
  152. package/lib/init/template/lint/index.js +3 -3
  153. package/lib/init/template/mta/files/mta.yaml.hbs +14 -14
  154. package/lib/init/template/mta/files/package.json +5 -0
  155. package/lib/init/template/mta/index.js +12 -13
  156. package/lib/init/template/mtx/index.js +2 -2
  157. package/lib/init/template/multitenancy/files/mta.yaml.hbs +29 -27
  158. package/lib/init/template/multitenancy/files/package.json.hbs +17 -14
  159. package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +7 -7
  160. package/lib/init/template/multitenancy/files/values.yaml.hbs +19 -19
  161. package/lib/init/template/multitenancy/index.js +14 -16
  162. package/lib/init/template/nodejs/files/package.json.hbs +1 -1
  163. package/lib/init/template/nodejs/index.js +5 -8
  164. package/lib/init/template/redis-messaging/files/mta.yaml.hbs +5 -5
  165. package/lib/init/template/redis-messaging/files/package.json.hbs +9 -9
  166. package/lib/init/template/redis-messaging/index.js +4 -5
  167. package/lib/init/template/sample/files/app/_i18n/i18n.properties +43 -0
  168. package/lib/init/template/sample/files/app/_i18n/i18n_de.properties +14 -0
  169. package/lib/init/template/sample/files/app/admin-books/fiori-service.cds +114 -0
  170. package/lib/init/template/sample/files/app/admin-books/webapp/Component.js +8 -0
  171. package/lib/init/template/sample/files/app/admin-books/webapp/i18n/i18n.properties +11 -0
  172. package/lib/init/template/sample/files/app/admin-books/webapp/manifest.json +129 -0
  173. package/lib/init/template/sample/files/app/appconfig/fioriSandboxConfig.json +57 -0
  174. package/lib/init/template/sample/files/app/common.cds +263 -0
  175. package/lib/init/template/sample/files/app/index.html +30 -0
  176. package/lib/init/template/sample/files/app/services.cds +5 -0
  177. package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Authors.csv +5 -0
  178. package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Books.csv +6 -0
  179. package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Books_texts.csv +5 -0
  180. package/lib/init/template/sample/files/db/data/sap.capire.bookshop-Genres.csv +16 -0
  181. package/lib/init/template/sample/files/db/schema.cds +31 -0
  182. package/lib/init/template/sample/files/nodejs/admin-service.js +12 -0
  183. package/lib/init/template/sample/files/nodejs/cat-service.js +26 -0
  184. package/lib/init/template/sample/files/srv/admin-service.cds +5 -0
  185. package/lib/init/template/sample/files/srv/cat-service.cds +16 -0
  186. package/lib/init/template/sample/index.js +24 -0
  187. package/lib/init/template/sample-tiny/index.js +39 -0
  188. package/lib/init/template/samples/index.js +5 -56
  189. package/lib/init/template/sqlite/files/package.json.hbs +13 -13
  190. package/lib/init/template/sqlite/index.js +2 -2
  191. package/lib/init/template/templateBase.js +24 -1
  192. package/lib/init/template/toggles/files/package.json.hbs +10 -10
  193. package/lib/init/template/toggles/index.js +3 -3
  194. package/lib/init/template/typer/files/gitignore +1 -0
  195. package/lib/init/template/typer/files/package.json +8 -0
  196. package/lib/init/template/typer/files/xsconfig.json +9 -0
  197. package/lib/init/template/typer/index.js +36 -0
  198. package/lib/init/template/xsuaa/files/mta.yaml.hbs +12 -12
  199. package/lib/init/template/xsuaa/files/package.json.hbs +13 -13
  200. package/lib/init/template/xsuaa/files/values.yaml.hbs +8 -8
  201. package/lib/init/template/xsuaa/index.js +8 -19
  202. package/lib/init/util/merge.js +73 -59
  203. package/lib/init/util/mvn.js +21 -17
  204. package/lib/init/util/projectReader.js +49 -87
  205. package/lib/init/util/xml.js +14 -23
  206. package/lib/util/cfUtil.js +366 -0
  207. package/lib/util/command.js +3 -3
  208. package/lib/util/gitUtil.js +55 -0
  209. package/lib/util/version.js +27 -0
  210. package/npm-shrinkwrap.json +339 -277
  211. package/package.json +6 -6
  212. package/CHANGELOG.md +0 -1453
  213. package/bin/build/all.js +0 -88
  214. package/bin/build/index.js +0 -82
  215. package/lib/compile/index.js +0 -14
  216. /package/lib/init/template/{samples → sample-tiny}/files/nodejs/db/data/my.bookshop-Books.csv +0 -0
  217. /package/lib/init/template/{samples → sample-tiny}/files/nodejs/db/data-model.cds +0 -0
  218. /package/lib/init/template/{samples → sample-tiny}/files/nodejs/srv/cat-service.cds.hbs +0 -0
package/CHANGELOG.md DELETED
@@ -1,1453 +0,0 @@
1
-
2
- # Change Log
3
-
4
- All notable changes to this project will be documented in this file.
5
-
6
- This project adheres to [Semantic Versioning](http://semver.org/).
7
-
8
- The format is based on [Keep a Changelog](http://keepachangelog.com/).
9
-
10
- ## Version 6.8.2 - 2023-05-31
11
-
12
- ### Changed
13
-
14
- - `cds compile` to `openapi` now uses `@Common.Label` annotation to generate `x-sap-shortText`.
15
- - `cds import` now removes `x-` from elements in the `@AsyncAPI.Extensions` annotation while importing AsyncAPI documents.
16
- - `cds compile` to `openapi` now sorts the `tags` and `paths` in alphabetical order.
17
- - The livereload feature of `cds watch` can be disabled through `cds.livereload: false` in `package.json`.
18
-
19
- ### Fixed
20
-
21
- - `@sap/cds-dk` 6.8.2
22
- - `@sap/cds-mtxs` 1.8.2
23
- - `cds add mta` adds configuration `enterprise-messaging-shared` if necessary
24
-
25
- ## Version 6.8.1 - 2023-05-10
26
-
27
- ### Fixed
28
-
29
- - `cds-ts watch` no longer fails with strange compilation errors if called in combination w/ `ts-node`
30
-
31
- ## Version 6.8.0 - 2023-05-04
32
-
33
- ### Added
34
-
35
- - `cds add file-based-messaging` adds configuration for file-based messaging (Node.js).
36
- - `cds add redis-messaging` adds configuration for Redis messaging (Node.js).
37
- - `cds add enterprise-messaging-shared` adds configuration for Event Mesh support with `kind = 'enterprise-messaging-shared'` (Node.js).
38
- - `cds import` now supports OData V4 EDMX file containing multiple `Schemas` with single `EntityContainer`.
39
- - `cds import` now supports importing of AsyncAPI documents.
40
- - `cds login -m <clientid>[:<key>]` now supports X.509 (mTLS) credential-type in XSUAA binding of @sap/cds-mtxs.
41
-
42
- ### Changed
43
-
44
- - `cds init` uses latest Maven Java archetype version 1.34.0 for creating Java projects.
45
-
46
-
47
- ### Fixed
48
-
49
- - `cds-ts watch` now honors a `tsconfig.json` in the project
50
- - launch script for `CAP projects` in VS Code fixed
51
-
52
- ## Version 6.7.2 - 2023-04-27
53
-
54
- ### Added
55
-
56
- - Added option `--skip-verification` to command `cds migrate`. It skips the extension verification to save memory. Requires `@sap/cds-mtxs@1.7.3`.
57
-
58
- ### Fixed
59
-
60
- - Swagger UI no longer fails with an error `Value of 'namespaceAndName' parameter must be in the following format: <namespace>.<name>`
61
-
62
- ## Version 6.7.1 - 2023-04-19
63
-
64
- ### Changed
65
-
66
- - `cds init` uses latest Maven Java archetype version 1.33.1 for creating Java projects.
67
- - Bump `@sap/cds` to 6.7.1
68
- - Bump `@sap/cds-mtxs` to 1.7.2
69
-
70
- ### Fixed
71
-
72
- - Compatibility with @sap/cds versions >= 4.5 and < 6.2: avoid runtime errors with debugging disabled.
73
-
74
- ## Version 6.7.0 - 2023-03-28
75
-
76
- ### Added
77
-
78
- - `cds upgrade` enables upgrading a tenant subscribed to a multitenant SaaS app to the latest base model.
79
-
80
- ### Changed
81
-
82
- - `cds env --for` is now used to specify profiles; before it specified project paths, but never worked correctly.
83
- - `cds add data` now uses comma as CSV separator by default instead of semicolon. This allows using GitHub tabular display.
84
- - `cds add approuter` doesn't create entries for `authenticationMethod` and `authenticationType` any more, but uses the equivalent `@sap/approuter` defaults.
85
- - `cds add multitenancy` will now create a sidecar MTX project for Node.js as well.
86
- - `cds subscribe` and `cds unsubscribe` no longer require a username in case @sap/cds-mtxs is configured with dummy auth.
87
- - `cds subscribe` and `cds unsubscribe` now rely on @sap/cds-mtxs (version 1.7.0 or higher).
88
-
89
- ### Fixed
90
-
91
- - `cds watch`'s livereload feature may now use a local IPv6 address (`::1`) instead of always `localhost`. This is usually the case on Node.js 17 or higher.
92
- - In all but `cds compile` errors where not handled correctly, especially compiler errors not displayed in human readable format.
93
- - `cds init` creates project sample files correctly.
94
- - CLI commands w/ unknown arguments (`cds --foo`) clearly fail again with a proper error message
95
- - Reduce console output in case of multitenancy-related command failures.
96
-
97
- ## Version 6.6.2 - 2023-03-22
98
-
99
- ### Fixed
100
-
101
- - Bump `sqlite3` to 5.1.6
102
- - Bump `@sap/cds` to 6.2.2
103
- - `cds init` creates project sample files correctly.
104
-
105
- ## Version 6.6.1 - 2023-03-09
106
-
107
- ### Added
108
-
109
- - `cds compile --to openapi` now adds extension validation keywords `x-sap-precision` and `x-sap-scale` for decimal values.
110
-
111
- ### Fixed
112
-
113
- - `cds add helm` fixed html5 cloud service is now read properly.
114
- - `cds import` now flattens the `@Capabilities` annotation in the CSN for OData V4 files.
115
- - `cds import` for OData V4 files now captures the `EnumTypes` information in the CSN according to `UnderlyingType`.
116
- - `cds import` now captures the `@Common.Text` annotation value properly in the CSN for OData V4 files.
117
- - `cds init --add java` now uses local Java version when creating new Java project.
118
- - `cds watch` terminates properly in case livereload websocket clients are connected
119
- - `cds watch`'s livereload feature works again on Node.js >= 17, where local IPv6 addresses are the default (`::1` instead of `127.0.0.1`)
120
-
121
- ## Version 6.6.0 - 2023-02-28
122
-
123
- ### Added
124
-
125
- - `cds compile` added a new target format `asyncapi` to convert CDS models to AsyncAPI documents.
126
- - `cds pull` now hints at base-model name for `using` statement.
127
-
128
- ### Changed
129
-
130
- - `cds env` now allows inspecting entries with optional `get` command. E.g. `cds env requires.db`.
131
- - `cds add multitenancy` now uses async SaaS Provisioning Service onboarding by default.
132
- - `cds add multitenancy` for Java will now add `sqlite3` to `devDependencies` in the sidecar `package.json`.
133
- - `cds add extensibility` now works for Java projects out-of-the-box.
134
- - `cds import` now captures the Edm Primitive types without [CDS mapping](https://github.tools.sap/cap/cds-dk/blob/main/edm2cdsTypeMapping.md) with annotation `@odata.Type` and marks the type as `cds.String`.
135
- - `cds add helm` connectivity service instance is no longer created.
136
- - `cds init` uses latest Maven Java archetype version 1.32.0 for creating Java projects.
137
-
138
- ### Fixed
139
-
140
- - `cds unsubscribe --from` flag now recognized
141
- - `cds import` now adds `cds.Boolean` as dummy return type if `ReturnType` for `FunctionImport` is missing in the OData V2 edmx.
142
- - `cds import` resolves the `$Cast` construct in the CSN for OData V4 files.
143
- - `cds lint` now reports like ESLint in case of missing plugin `@sap/eslint-plugin-cds`
144
-
145
- ## Version 6.5.2 - 2023-02-10
146
-
147
- ### Changed
148
-
149
- - New versions of `@sap/cds-mtxs` and `@sap/cds-compiler`
150
- - `cds init` uses latest Maven Java archetype version 1.31.1 for creating Java projects.
151
-
152
- ### Fixed
153
-
154
- - `cds migrate` no longer fails because of authorization error
155
-
156
- ## Version 6.5.1 - 2023-02-06
157
-
158
- ### Changed
159
-
160
- - `cds init` uses latest Maven Java archetype version 1.31.0 for creating Java projects.
161
-
162
- ### Fixed
163
-
164
- - `cds deploy` no longer fails to write to a `package.json` file that has no `cds` section
165
-
166
- ## Version 6.5.0 - 2023-01-27
167
-
168
- ### Added
169
-
170
- - `cds run/serve/migrate --resolve-bindings` now pulls required service credentials if bound via `cds bind`. (beta)
171
- - `cds add helm` now supports multitenancy.
172
- - `cds bind` now supports binding of `user-provided service instances` from Cloud Foundry.
173
-
174
- ### Changed
175
-
176
- - `cds push` now runs a build of the extension project to update the pushed extension archive (unless custom archive given).
177
- - `cds init` and `cds bind` no longer use a spinner when performing long running operations.
178
-
179
- ### Fixed
180
-
181
- - `cds import` now generates flattened value for `@Common.FieldControl` annotation in the CSN for OData V4 files.
182
- - `cds import` now treates `CollectionKind` property attribute in OData V2 similar to `Collection(<data_type>)` in OData V4.
183
-
184
- ## Version 6.4.1 - 2022-01-17
185
-
186
- ### Fixed
187
-
188
- - `cds deploy -2 sqlite` now preserves the `schema_evolution` setting in the `package.json`.
189
- - `cds import` bug fix for OData V4 import crash.
190
-
191
- ### Changed
192
-
193
- ## Version 6.4.0 - 2022-12-15
194
-
195
- ### Added
196
-
197
- - `cds add helm` now supports approuter.
198
- - `cds subscribe --local` starts `@sap/cds-mtxs` locally instead of contacting a running instance via URL.
199
- - `cds unsubscribe` removes the subscription of a tenant from a SaaS app.
200
-
201
- ### Changed
202
-
203
- - `cds add multitenancy` will not compile internal roles into the `xs-security.json` any more.
204
- - `cds add hana` does not create a `hdi-service-name: ${service-name}` for the database resource properties any more.
205
- - MTX-related commands now print usage help in case of known errors.
206
- - `cds import` now adds the annotation `@open` for all the Entities and ComplexTypes with attribute `Abstract` or `OpenType` and adds the same for those referred by the attribute `BaseType`.
207
- - `cds import` now adds default value in the CSN for the optional parameters in action/function for OData V4 files.
208
- - `cds init` uses latest Maven Java archetype version 1.30.0 for creating Java projects.
209
-
210
- ### Fixed
211
-
212
- - `cds init` no longer creates `engines` entry in package.json to avoid `unsupported engine` warnings.
213
- - `cds subscribe` correctly exits the process after deploying to a HANA database.
214
- - `cds add multitenancy` doesn't create a duplicate `saas-registry` resource if there's one with `service-plan: service` any more.
215
- - `cds bind` now correctly maps the `hana-mt` and `sql-mt` shortcuts to the `cds.requires.db` entry.
216
- - `cds add mtx` no longer fails if the `mtx/sidecar` folder doesn't exist.
217
- - `cds compile --to xsuaa` now rejects expressions leading to invalid XSUAA attributes like `$user.foo-bar`, `$user.foo/bar`, `$user.foo.bar`
218
- - `cds compile --to xsuaa -o <file>` now sets `.json` as file ending instead of `.xsuaa`
219
-
220
- ## Version 6.3.2 - 2022-11-28
221
-
222
- ### Changed
223
-
224
- - Include `@sap/cds` 6.3.2
225
- - Include `@sap/cds-compiler` 3.4.4
226
- - Include `@sap/cds-mtxs` 1.3.2
227
-
228
- ## Version 6.3.1 - 2022-11-04
229
-
230
- ### Changed
231
-
232
- - `cds init` uses latest Maven Java archetype version 1.29.0 for creating Java projects.
233
- - Use `@sap/cds` 6.3.1
234
- - Use `@sap/cds-mtxs` 1.3.1
235
-
236
- ## Version 6.3.0 - 2022-11-02
237
-
238
- ### Added
239
-
240
- - `cds deploy --to h2 --dry` to create drop/create DDL for H2. Full deployment (w/o `--dry`) is not yet supported, though.
241
- - `cds push <file>|<URL>` to specify a custom extension archive by local path or download URL.
242
-
243
- ### Changed
244
-
245
- - `cds add` support for classic Java projects is now removed.
246
- - `cds import` now adds the annotation `@cds.external` for all the definitions in the CSN along with the service.
247
- - `cds import` now adds `notNull` entry for all the parameters and properties in the CSN.
248
- - MTX Client now trims a passcode entered via prompt for convenience when pasting
249
-
250
- ### Fixed
251
-
252
- - MTX Client now ignores a username potentially saved for the current project, if a passcode is given
253
- - MTX Client now treats keytar as optional unless explicitly running `cds login`
254
- - `cds import` now captures the documentation properly for all the EntitySet referring to same EntityType.
255
- - `cds deploy --to sql` now produces 'plain' SQL again, suitable for e.g. H2. In 6.2 it produced 'sqlite' dialect, erroneously.
256
- - `cds compile --to openapi` now fixes the duplication of fields in `required` section.
257
- - `cds lint` now recognizes ESLint configurations from _package.json_.
258
-
259
-
260
- ## Version 6.2.3 - 2022-10-21
261
-
262
- ### Changed
263
-
264
- - Use `@sap/cds` 6.2.3
265
- - Use `@sap/hdi-deploy` 4.5.0, which brings support for Node 18
266
-
267
- ### Fixed
268
-
269
- - `cds mock` now prefers a local `@sap/cds` installation, like other `cds` commands as well.
270
-
271
- ## Version 6.2.2 - 2022-10-13
272
-
273
- ### Added
274
-
275
- - `cds deploy --to postgres --dry` to create drop/create DDL for PostgreSQL. Full deployment (w/o `--dry`) is not yet supported, though.
276
-
277
- ### Fixed
278
-
279
- - `cds deploy --to sql` now honors the `cds.sql.dialect` configuration to specify SQL dialects like `postgres`.
280
-
281
- ### Removed
282
- - `cds add notebook` removed in favor of custom notebooks in VS Code (now part of the CDS Editor)
283
-
284
- ## Version 6.2.1 - 2022-10-10
285
-
286
- ### Fixed
287
-
288
- - Installation errors with unresolvable `@sap/hdi` 4.4.0 are fixed.
289
-
290
- ## Version 6.2.0 - 2022-10-07
291
-
292
- ### Added
293
-
294
- - `cds import` now imports Singleton entities for OData V4 files.
295
- - `cds deploy` now supports the new default`.sqlite` file ending
296
- - `cds add mta` no longer creates a `before-all` custom build command for Java single and multi tenant applications. Custom build commands are defined for `db-deployer` and `mtx/sidecar` modules instead.
297
- - `cds import` now supports enum types for OData V4
298
- - `cds add enterprise-messaging` can be now be used to set up configuration and deployment descriptors for SAP Event Mesh.
299
- - `cds add` now throws an error if no facet is passed.
300
- - `cds watch` now also considers more files from SAP Fiori (`change,variant,ctrl_variant,ctrl_variant_change,ctrl_variant_management_change`)
301
-
302
- ### Changed
303
-
304
- - `cds add data` no longer creates CSV headers in UPPERCASE, but keeps the original case of the declared element. Both styles work, but the latter is preferred.
305
- - `cds pull` requires `@sap/cds` 6.2 or higher
306
-
307
- ### Fixed
308
-
309
- - `cds import` now imports csn for OData V2 file even if the `association set` is missing and throws error if the corresponding `association` is missing.
310
- - `cds import` now adds the annotation `@odata.Precision` entry only if precision > 0 for Edm.DateTime and Edm.DateTimeOffset.
311
- - `cds compile --to openapi` now has schema Objects for `-create` and `-update` to only advertise "deep" insert/update for _containment_ navigation properties. Non-containment navigation properties are no longer mentioned.
312
- - `.sqlite` files are now git-ignored in new projects created with `cds init`
313
- - `cds compile --to openapi` now fixes the issue of failing range assertions for an element having undefined maximum and minimum range values.
314
- - `cds import` now for OData V2 files doesn't throw warning for `EntityType` being referred as type in complex types, functions and actions, provided it is present in the file.
315
-
316
- ## Version 6.1.5 - 2022-09-13
317
-
318
- ### Fixed
319
-
320
- - `cds build` no longer erroneously warns about old `@sap/cds` versions. Previously, it warned about `@sap/cds` 4 although a newer version was installed.
321
-
322
- ## Version 6.1.4 - 2022-09-09
323
-
324
- ### Fixed
325
-
326
- - `cds build` now works again with `@sap/cds` version 4. Previously, this silently failed with no output. However, a warning is now emitted that strongly recommends an upgrade to version 6.
327
-
328
- ## Version 6.1.3 - 2022-09-06
329
-
330
- ### Fixed
331
-
332
- - `cds import` now gives higher precedence to complex type in case of name collision with actions or functions.
333
- - `cds extend` and other commands no longer fail with `TypeError: Class constructor CliError cannot be invoked without 'new'`
334
-
335
- ## Version 6.1.2 - 2022-08-25
336
-
337
- ### Changed
338
- - `cds init` uses latest Maven Java archetype version 1.27.1 for creating Java projects.
339
-
340
- ### Fixed
341
- - `cds add helm` fixed JSON Schema for `srv` property in values.yaml
342
- - `cds add helm` fixed env property errors for `hana_deployer` and `html5_apps_deployer`
343
- - `cds add data` now creates proper data file names for entities in a `context`, i.e. `sap.common-Countries.csv` instead of `sap-common-Countries.csv`
344
- - `cds import` now captures the parameter/property of collection type differently and the associated annotations are pulled out of the `items` object of the parameter/property entry in the csn.
345
- - Remove redundant `console.log()` statement in `cds lint`
346
- - `cds push` now shows complete error messages from extension validation
347
- - `cds push` and related commands now show properly formatted error messages and also fail with a non-zero exit code in error situations
348
-
349
- ## Version 6.1.1 - 2022-08-11
350
-
351
- ### Added
352
-
353
- - `cds import` now supports OData and SAP annotations for OData V4 imports.
354
- - `cds compile --to openapi` defines operation-specific HTTP error response status codes with descriptions via `ErrorResponses` property of certain annotations.
355
- - `cds compile --to openapi` now supports `--openapi:servers` option.
356
- - `cds add multitenancy` will add feature multitenancy-specific configuration, without extensibility.
357
- - `cds add toggles` will add feature toggle-specific configuration.
358
- - `cds add extensibility` will add configuration for project extensibility.
359
- - `cds add helm` now supports resource configuration for HANA deployment job and HTML5 app deployment job.
360
- - `cds add helm` added JSON Schema for values.yaml
361
- - `cds pull` will download the current CDS model of an extended SaaS app running with @sap/cds-mtxs.
362
- - `cds push` will upload an extension to a SaaS app running with @sap/cds-mtxs.
363
-
364
- ### Changed
365
-
366
- - `cds add helm` updated default resource requirements for both `java` and `nodejs` projects.
367
- - `cds add helm` uses servicebinding.io bindings for CAP Java services, HANA and HTML5 app deployment jobs.
368
- - `cds compile --to openapi` creates only component schemas for schemas referenced in operations and in other schemas.
369
- - `cds import` switch from `@openapi.schema` to `@JSON.Schema`.
370
- - `cds add mtx` will now add configuration for streamlined MTX. It effectively acts as a shortcut for `cds add multitenancy,toggles,extensibility`
371
- - `cds add mtx` no longer includes `hana` and `xsuaa`. To achieve the same effect as before, run `cds add mtx && cds add hana,xsuaa --for production`.
372
- - `cds bind -2 <xsuaa service instance>` binds the CDS `auth` service to the xsuaa instance. Previously `uaa` was used. This requires `@sap/cds` 6 or higher.
373
- - `cds add lint:dev` updated to adjust to new api structure of `@sap/eslint-plugin-cds` v2.5.0
374
- - `cds init` uses latest Maven Java archetype version 1.27.0 for creating Java projects.
375
- - `cds login localhost:<port> -u <username>` now saves username (and empty password, if applicable) with project settings for convenience.
376
- - `cds add` error handling is improved and will give suggestions if you make a typo.
377
-
378
- ### Fixed
379
-
380
- - `cds add helm:connectivity`: `connectivity.configMapName` was not used for the `connectivity-proxy-info`.
381
- - `cds import` replaced occurrences of `\\` with `/` in the `package.json` for Linux platforms.
382
- - `cds import` fixed `@Core.Description` and `doc` property duplication.
383
- - `cds extend` and `cds activate` no longer save any data (this is reserved to `cds login`).
384
- - Extensibility commands now add http (not https) to local app URLs without schema.
385
- - Extensibility commands don't query CF any longer when run against local apps.
386
-
387
- ## Version 6.0.4 - 2022-08-02
388
-
389
- ### Changed
390
-
391
- - `cds init` uses latest Maven Java archetype version 1.26.1 for creating Java projects.
392
- - Use `@sap/cds` 6.0.4
393
- - `cds bind` handles orgs and spaces containing commas correctly.
394
-
395
- ## Version 6.0.3 - 2022-07-14
396
-
397
- ### Changed
398
-
399
- - `cds init` uses latest Maven Java archetype version 1.26.0 for creating Java projects.
400
- - `cds init` now creates Node.js projects with version 6 of `@sap/cds`
401
-
402
- ### Fixed
403
-
404
- - `--vap-file` parameter of `cds deploy` is available again (removed in 6.0.0)
405
- - `cds add helm:connectivity`: `connectivity.configMapName` was not used for the `connectivity-proxy-info`.
406
- - `--vcap-file` parameter of `cds deploy` is available again (removed in 6.0.0)
407
- - `cds add helm:connectivity`: `connectivity.configMapName` was not used for the `connectivity-proxy-info`.
408
- - `cds add helm:connectivity`: Environment variables added for connectivity service for Java.
409
- - `cds add helm`: Generation of `xs-security.json` file works on Windows now (`cds compile srv -2 xsuaa` command failed).
410
-
411
-
412
- ## Version 6.0.2 - 2022-07-06
413
-
414
- ### Changed
415
-
416
- - Use `@sap/cds` 6.0.2
417
-
418
- ## Version 6.0.1 - 2022-07-05
419
-
420
- ### Changed
421
-
422
- - Deprecated the `--for <filterPattern>` parameter of `cds add data` in favor of the new `--data:for`. The former is still supported, but will eventually be removed, as it collides with the general `--for <profile>` parameter of `cds add`.
423
-
424
- ### Fixed
425
-
426
- - `cds bind` api endpoint regex for cli now ignores trailing version info in url
427
-
428
- ## Version 6.0.0 - 2022-07-01
429
-
430
- ### Added
431
-
432
- - `cds import` now supports importing external openapi specification file into CSN.
433
- - `cds import` now supports the `--from` option to specify the protocol for importing an external file.
434
- - `cds import` can be programmatically accessed using APIs `cds.import()`, `cds.import.from.edmx()` and `cds.import.from.openapi()`.
435
- - `cds compile --to openapi` allows describing custom headers and custom query options.
436
- - `cds import` now supports `HasStream="true"` for both OData V4 and V2.
437
- - `cds compile --to openapi` now adds properties with `@mandatory` to the required field.
438
- - Added a link to VS Code CAP Notebooks documentation to `cds init --add notebooks` and `cds add notebooks`.
439
-
440
- ### Changed
441
-
442
- - `cds import` now uses `@odata.Type` and `@odata.Precision` for edm to cds type mapping.
443
- - `cds compile --to openapi` now has better description for `$expand` query option.
444
- - The original package `sqlite3` is now used again in its latest version.
445
- - `cds import` now deprecated `cds.DecimalFloat` type.
446
- - `cds import` now allows OData version 4.01 edmx files and supports `Scale="floating"`.
447
- - `cds import` now adds `@odata.Type` annotation for `Edm.Byte` and `Edm.SByte`.
448
- - `cds import` now has improved tests to check `--as`option with `force` flag file overwriting.
449
- - `cds init` uses latest Maven Java archetype version 1.25.0 for creating Java projects.
450
- - `cds import` now imports edmx file without any entities containing only unbounded action/function.
451
- - `cds import` API now supports includeNamespaces option.
452
- - `cds compile --to openapi` now adds `format`, `multipleOf`, `maximum` and `minimum` to anyOf.
453
- - `cds import` will now mark an association as a composition when `OnDelete Action="Cascade"` is present.
454
- - `cds import` has deprecated `--into` option.
455
- - `cds bind` reads Cloud Foundry file `config.json` to get org and space information.
456
- - `cds deploy` now stores connection information without credentials by default in `.cdsrc-private.json`.
457
- - `cds deploy` has a new option `--store-credentials` to enforce the former behavior of storing credentials in `default-env.json`.
458
- - If a `@sap/cds` is installed locally in a project, it must be version 4 or higher for CLI commands to run.
459
- - `cds import` now doesn't trim the bound action/function name in the csn if the format of the name is A_B.
460
- - `@sap/cds` version 6 is now required in new projects added by `cds init` and `cds add`.
461
-
462
- ### Fixed
463
-
464
- - `cds add html5-repo` and `cds add destinations` throw an error if applied for MTA deployments, for which they are currently unsupported.
465
- - `cds compile --to openapi` fixes annotations on bound action overloads.
466
- - `cds add cf-manifest` now uses the correct `application` plan for the `xsuaa` service
467
- - A combination of `cds add approuter`, `cds add mtx`, and `cds add mta` will now use a safer approach to determine the subscription URL.
468
- - `cds init` and `cds add` output the feature names correctly in case the names contain a dash
469
- - `cds compile --to openapi` fix for type error when entity/action is not specified in the service definition.
470
- - `cds import` API fix for race condition issue.
471
- - `cds somecdsfile --profile ...` (without the `compile` command) no longer ignores the given profile
472
- - `cds watch` got more robust against unlucky timing and no longer runs into port conflicts
473
-
474
-
475
- ## Version 4.9.7 - 2022-06-08
476
-
477
- ### Changed
478
-
479
- - Update `@sap/xsenv` to 3.3.1
480
-
481
- ## Version 4.9.6 - 2022-06-08
482
-
483
- ### Changed
484
-
485
- - Include `@sap/cds` 5.9.6
486
-
487
- ### Fixed
488
-
489
- - `cds login` (and `cds extend`, `cds activate` if previously logged in) now properly renew token URL
490
- - Improved logging during those commands
491
-
492
- ## Version 4.9.5 - 2022-05-17
493
-
494
- ### Changed
495
-
496
- - Include `@sap/cds` 5.9.5
497
- - Include `@sap/cds-compiler` 2.15.2
498
-
499
- ### Fixed
500
-
501
- - `cds init` uses latest Maven Java archetype version 1.24.0 for creating Java projects.
502
-
503
- ## Version 4.9.4 - 2022-05-09
504
-
505
- ### Changed
506
-
507
- - Include `@sap/cds` 5.9.4
508
- - Bump `axios` to latest (CVE-2022-1214)
509
-
510
- ## Version 4.9.3 - 2022-04-27
511
-
512
- ### Changed
513
-
514
- - `cds init` uses latest Maven Java archetype version 1.23.1 for creating Java projects.
515
- - Include `@sap/cds` 5.9.3
516
-
517
- ### Fixed
518
-
519
- - `cds add cf-manifest` now uses the correct `application` plan for the `xsuaa` service
520
- - `cds login`, `cds activate`: correctly include response in auth errors
521
- - The SAP HANA and MTA options in the project wizard in BAS now work again
522
-
523
- ## Version 4.9.2 - 2022-04-11
524
-
525
- ### Changed
526
-
527
- - Include `moment` 2.29.2, fixing CVE-2022-24785
528
- - Include `@sap/cds` 5.9.2
529
- - Include `@sap/eslint-plugin` 2.3.5
530
-
531
- ## Version 4.9.1 - 2022-04-01
532
-
533
- ### Changed
534
-
535
- - `cds init` uses latest Maven Java archetype version 1.23.0 for creating Java projects.
536
- - Include `@sap/cds` 5.9.1
537
- - Include `@sap/cds-compiler` 2.13.8
538
- - Include `@sap/eslint-plugin` 2.3.4
539
-
540
- ## Version 4.9.0 - 2022-03-28
541
-
542
- ### Added
543
-
544
- - `cds parse` as convenient shortcut to `cds compile --flavor parsed`.
545
- - `cds compile --to openapi` uses value of annotation `@Common.Label` on entities, actions, and functions for operation tags, diagram includes non-primitive action and function import parameters.
546
- - `cds add` now accepts `--for <profile>` argument to create Node,js project configuration for a given profile
547
- - `cds add approuter` allows for serving your application’s UI using SAP approuter.
548
- - `cds add kibana-logging` adds Kibana-friendly logging in a more convenient way than having to manually alter the package.json.
549
-
550
- ### Changed
551
-
552
- - `cds init` does not create `VS Code` file exclusions anymore, so that `.vscode/` and `.gitignore` are visible by default, allowing easier editing of these files.
553
- - `cds init` reports Maven archetype version in console if called with `--add java`.
554
- - `cds init` uses latest Maven Java archetype version 1.22.2 for creating Java projects.
555
- - `cds import` modified documentation for namespace option.
556
- - `cds import` does not create bound function imports key parameters in CSN for OData V2.
557
- - `cds import` now when `--keep-namespace` option is not given validates the file name and then converts it to complier supported format as service name .
558
- - add new methods from `FsUtil` to typescript interface.
559
-
560
- ### Fixed
561
- - `cds compile --to openapi` now correctly treats `null` and the empty string as function parameters.
562
- - `cds bind --exec` no command output (STDOUT) displayed on Windows.
563
- - `cds watch` now gracefully shuts down the live reload server before exiting
564
- - `cds import` now generates correct csn for both OData V2 and V4 EDMX files where the EntityType has a BaseType entry.
565
- - `cds import` now throws an error in case of missing Association Sets.
566
- - `cds import` bug fixed for `--force` flag. Now overwrites the correct file content.
567
- - `cds import` fix will no longer capture unwanted annotations in the CSN for OData V4.
568
- - `cds import` now support annotations for properties of type `Type Definition`
569
- - `cds import` fix for supporting valid datatypes in unbounded function imports for OData V4.
570
- - `cds import` bug fixed for missing data imports for parameters with entity type not mapped to an entity set.
571
- - `cds import` now supports properties with complex type for OData V4.
572
- - `cds import` fix will now throw error if the key property of an entity is of type `Collection` for both OData V2 and V4 edmx.
573
- - `cds bind --to hana` provides more comprehensive error message in case Cloud Foundry `org` or `space` are not set.
574
-
575
- ## Version 4.8.2 - 2022-03-07
576
-
577
- ### Fixed
578
-
579
- - `cds import` can now capture the data for any given `EntityContainer Name` for OData V4. Earlier it only worked when the name was `EntityContainer`.
580
-
581
- ### Changed
582
-
583
- - `cds init` uses latest Maven Java archetype version 1.22.1 for creating Java projects.
584
-
585
- ## Version 4.8.1 - 2022-02-15
586
-
587
- ### Changed
588
-
589
- - `cds init` uses latest Maven Java archetype version `1.22.0` for creating Java projects.
590
-
591
- ### Fixed
592
-
593
- - Bump `follow-redirects` package to 1.14.8 (CVE-2022-0536)
594
- - `cds bind --exec` no command output (STDOUT) displayed on Windows.
595
-
596
- ## Version 4.8.0 - 2022-01-28
597
-
598
- ### Added
599
-
600
- - `cds import` now reflects the entity set and entity container level annotations in the csn.
601
- - `cds activate --sync` allows to use the synchronous server API for extension upload.
602
-
603
- ### Changed
604
-
605
- - The forked package `@mendix/sqlite3` is now used instead of `sqlite3` to overcome CVE-2021-32804. No code changes in applications are needed, as the new package installed by `npm` with the same name `sqlite3`.
606
- - [beta] The templating for `cds init` and `cds add` has been rewritten from scratch. This will allow for some new, more complex commands, such as `cds add mtx` or `cds add xsuaa`.
607
- - Use `cds bind` during `cds deploy` to store connection information in file `.cdsrc-private.json`.
608
-
609
- ### Fixed
610
-
611
- - `cds import` now omits function imports with `put/delete` kind.
612
- - `cds import` has fixed the entity type to entity set mapping in OData V2.
613
- - `cds import` now supports collection type.
614
- - `cds watch` now picks a free livereload port if the standard port 35729 is already bound
615
- - `cds extend`, `cds activate`, `cds login`, and `cds logout` now prioritize command-line options over saved settings
616
- - MTX client now logs fewer characters of secrets in debug output
617
- - MTX client now handles incomplete error responses better
618
-
619
- ## Version 4.7.3 - 2022-01-14
620
-
621
- ### Changed
622
-
623
- - Bump `follow-redirects` package to 1.14.7 (CVE-2022-0155)
624
-
625
- ## Version 4.7.2 - 2021-12-15
626
-
627
- ### Fixed
628
-
629
- - `cds add lint` uses JSONC parser to read ESLint config files of type `.eslintrc[.js,.cjs,.json]`.
630
-
631
- ### Changed
632
-
633
- - `cds init` uses latest Maven Java archetype version `1.21.0` for creating Java projects.
634
-
635
- ## Version 4.7.1 - 2021-12-06
636
-
637
- ### Fixed
638
-
639
- - `cds activate` authentication no longer fails
640
- - `cds.compile.to.openapi` does no longer crash if `cds.compile` was already initialized
641
-
642
- ## Version 4.7.0 - 2021-12-06
643
-
644
- ### Added
645
-
646
- - `cds add data --for` can be passed a regular expression, allowing more flexible name filters. For example `--for '^Supplier$'` would only match entity `Supplier`, but not `SupplierAddress`. Note that as before, `--for Supplier` is interpreted as `--for '^Supplier.*'`, i.e. matches both entities.
647
- - `cds init --add hana` and `cds add hana` now add a `undeploy.json` file containing wildcards. This ensures that SAP HANA artefacts are automatically cleaned-up in case views, unique keys or constraint definitions of associations have been changed in CDS model.
648
-
649
- ### Changed
650
-
651
- - `cds import` now adds annotations for missing ON conditions in associations instead of appending it in `doc`.
652
- - `cds import` has updated mapping for OData V2 and V4
653
- - `cds add lint` now configures `csv` files in `.vscode/settings.json`
654
- - `cds add hana` for Java projects now adds an `engines.node` version of `^16` to the generated `db/package.json`, to pin the Node.js version. This will help in the future when runtime environments change their default to some version higher than the one supported by `@sap/hdi-deploy`.
655
- - `cds add mta` for Node.js projects now adds `npm ci` commands instead of `npm install`. This makes use of `package-lock.json` to enforce reproducible builds.
656
- - `cds watch` now ignores folders named `target`, to avoid restarts when Maven's build output changes
657
-
658
- ### Fixed
659
-
660
- - `cds import` throws warning messages for unsupported data types.
661
- - `cds watch` allows the explicit `--with-mocks` option, although this is anyways included by default
662
- - `cds watch` no longer runs into multiple restarts if many files are changed at once, like in git branch changes
663
-
664
- ## Version 4.6.4 - 2021-11-24
665
-
666
- ### Fixed
667
-
668
- - `cds import` fix for TypeError issue during OData V2 EDMX conversion to CSN.
669
- - `cds import <file_name>` fix now updates the service name in the `package.json` with only the file name. Earlier, the service name sometimes used to be of the form `A.B`, with `A` being file name and `B` being a part of the schema namespace value in the EDMX file
670
-
671
- ### Changed
672
-
673
- - `cds init` uses latest Maven Java archetype version `1.20.3` for creating Java projects.
674
-
675
- ## Version 4.6.3 - 2021-11-16
676
-
677
- ### Fixed
678
-
679
- - `cds watch` recovers again from compilation errors and properly prints these
680
- - `cds import` fix for omitting empty `doc` components.
681
- - `cds add lint` no longer duplicates initial contents in `package.json`
682
- - `cds add data` no longer ignores imported services for which credentials are stored in the project
683
-
684
- ## Version 4.6.2 - 2021-11-09
685
-
686
- ### Fixed
687
-
688
- - `cds add lint` now correctly detects missing local `eslint`
689
- - `cds add lint` no longer removes parts of `package.json`
690
- - `cds add lint` no longer creates duplicate configuration entries
691
-
692
- ## Version 4.6.1 - 2021-11-08
693
-
694
- ### Changed
695
-
696
- - `cds init` uses latest `Maven Java archetype` version `1.20.0` for creating Java projects.
697
- - `cds watch` now resolves local node modules like `hdb` even though `@sap/cds` is not installed locally. This is useful during development where `@sap/cds` shall only be installed in a 'central' location, while extra modules shall still be found in the app's dir.
698
-
699
- ### Fixed
700
-
701
- - `cds repl` now finds modules like `hdb` that are installed locally in the app folder
702
- - `cds repl` now enables the `await` statement also on Windows
703
- - `cds lint` now limits all file extensions to those allowed by the @sap/eslint-plugin-cds ESLint configuration
704
-
705
- ## Version 4.6.0 - 2021-11-02
706
- ### Added
707
-
708
- - `cds bind` binds the given service to a hana instance by storing the credentials in `.cdsrc.json` in your user home directory [beta].
709
- - `cds import` introduced option `--include-namespaces` which imports the custom defined namespaces.
710
- - `cds import` preserve documentation in CSN file for actions and functions from OData V4 EDMX file.
711
- - `cds import` now supports reading values of the `as` option from cds.env
712
-
713
- ### Fixed
714
-
715
- - `cds import` fix for reflecting only supported datatypes in csn for actions and functions for OData V4.
716
- - `cds import` fix for TypeError issue (#9868) during OData V4 EDMX conversion to CSN.
717
- - `cds watch` no longer omits starting some services every other time it is restarting the process
718
- - `cds-ts watch` now honors a local `tsconfig.json` file
719
- - `cds import` fix for TypeError issue (#9950) during OData V2 EDMX conversion to CSN.
720
- - `cds import` fix to generate the csn (#9950) during OData V2 EDMX conversion to CSN.
721
- - `cds import` fix to replace the aliases with original schema namespace value.
722
- - `cds import` adds `@cds.persistence.skip` back to imported models. Its accidental removal in 4.5.0 caused wrong DB deployments of imported entities.
723
-
724
- ## Version 4.5.4 - 2021-10-07
725
-
726
- ### Fixed
727
-
728
- - `cds watch` no longer fails if started with `--ext`, `--livereload`, or `--open` arguments
729
-
730
- ## Version 4.5.3 - 2021-10-05
731
-
732
- ### Fixed
733
-
734
- - `cds import` fix for `--dry` shortcut `-`
735
- - `cds import` fix for missing type properties in csn for unbounded action and function in OData V4.
736
- - A bug with `cds init` when called in BAS project wizard
737
-
738
- ## Version 4.5.2 - 2021-09-30
739
-
740
- ### Changed
741
-
742
- - `cds init` uses latest `Maven Java archetype` version `1.19.0` for creating Java projects.
743
-
744
- ### Fixed
745
-
746
- - `cds deploy --to sqlite` now writes `credentials.database` again to `package.json`
747
-
748
- ## Version 4.5.1 - 2021-09-29
749
-
750
- ### Added
751
-
752
- - `cds import` introduced option `--as` which converts EDMX file to different file formats such as cds, csn and json.
753
- - `cds import` introduced flag `--f` which forcefully overwrite the content of existing cds file when specified with `--as` option.
754
-
755
- ### Changed
756
-
757
- - Marked `cds lint` as beta again to further investigate issues from 'extends' via prettier plugin.
758
-
759
- ## Version 4.5.0 - 2021-09-23
760
-
761
- ### Added
762
-
763
- - `cds import` supports import of functions, action, functionimport and actionimport from both OData V2 and V4 EDMX files.
764
-
765
- ### Changed
766
-
767
- - `cds init` uses latest `Maven Java archetype` version `1.18.1` for creating Java projects.
768
-
769
- ### Fixed
770
-
771
- - `cds watch` additional CLI args were not passed to launched process, for example, `--odata x4`.
772
- - `cds import` fix for TypeError issue during OData V4 EDMX conversion to CSN.
773
- - `cds import` fix for multi-line documentation text in OData V2 EDMX file.
774
- - `cds import` fix for V4 CSN generation when non standard OData vocabularies are referred.
775
- - `cds add data`
776
- + no longer fails for entities without keys
777
- + no longer creates csv files for synthetic draft entities
778
- + no longer creates entries for virtual fields
779
- + no longer skips over entities marked with `@cds.persistence.skip`, which is true for 'external' entities created by `cds import`.
780
- - `cds init --add` handles comma list correctly.
781
- - `cds import` fix for multi-line documentation text in OData V4 EDMX file.
782
- - `cds import` fix preserves the missing entities in csn for OData V2 EDMX file.
783
-
784
-
785
- ## Version 4.4.2 - 2021-09-03
786
-
787
- ### Fixed
788
-
789
- - Use latest `cds-sidecar-client` to fix file upload in `cds activate`
790
-
791
- ## Version 3.5.3 - 2021-08-31
792
-
793
- ### Fixed
794
-
795
- - Use latest `cds-sidecar-client` to fix file upload in `cds activate`
796
-
797
- ## Version 4.4.1 - 2021-08-03
798
-
799
- ### Fixed
800
-
801
- - Use `@sap/eslint-plugin-cds@2.0.4`
802
-
803
- ## Version 4.4.0 - 2021-08-02
804
-
805
- ### Changed
806
-
807
- - `cds init` uses latest `Maven Java archetype` version `1.17.0` for creating Java projects.
808
-
809
- ### Fixed
810
-
811
- - Fixed bug when logging in Business Application Studio during `New Project from Template` wizard.
812
- - `cds import` fix for <documentation> tag in Odata V2 for EntityType and ComplexType.
813
- - `cds help` does not crash with `this.load is not a function` in exotic installations
814
-
815
- ## Version 4.3.3 - 2021-07-26
816
-
817
- ### Fixed
818
-
819
- - Removed internal links in `npm-shrinkwrap.json`
820
-
821
- ## Version 4.3.2 - 2021-07-26
822
-
823
- ### Changed
824
-
825
- - Bumped version of `@sap/cds` to 5.3.2
826
-
827
- ## Version 3.5.2 - 2021-07-21
828
-
829
- ### Changed
830
-
831
- - Bump to latest versions
832
- - Use latest `cds-sidecar-client` to fix CVE-2021-33502
833
-
834
- ## Version 4.3.1 - 2021-07-12
835
-
836
- ### Changed
837
-
838
- - New version of `@sap/eslint-plugin-cds`
839
-
840
- ## Version 4.3.0 - 2021-07-08
841
-
842
- ### Changed
843
-
844
- - `cds init` uses latest `Maven Java archetype` version `1.16.3` for creating Java projects.
845
- - `cds init` generates dependency entry for `hdb` instead of `@sap/hana-client`.
846
- - Reworked templates for cds linter.
847
-
848
- ### Added
849
-
850
- - `cds import` now supports OData V4 edmx files.
851
- - `cds-ts` executable starts `cds` CLI with [`ts-node`](https://www.npmjs.com/package/ts-node) to allow JIT compilation of Typescript
852
- - `cds` CLI will give you a best guess if a command cannot be found, e.g. in case of a typing mistake.
853
- - `cds.import` as API alternative to `cds import` command to convert edmx files to csn [beta]
854
- - `cds.compile.to.openapi` as API alternative to `cds compile --to openapi` to convert CDS models to OpenAPI definitions
855
-
856
- ### Fixed
857
-
858
- - `cds import` fix for <documentation> tag in Odata V2 and <Annotation> tag in Odata v4
859
- - `cds import` now sets the `kind` attribute in package.json to the correct `odata-v2` value for OData v2 services.
860
- - `cds import` now maps edm.DateTime to cds.DateTime for Odata V2.
861
- - `cds compile --to edmx-v2/edmx-v4` now uses correct file naming when compiling a single CDS service.
862
-
863
- ## Version 4.2.1 - 2021-06-09
864
-
865
- ### Fixed
866
-
867
- - `cds deploy` w/o any file arguments now works again and no longer fails with `No cds models found at/in ''`.
868
-
869
-
870
- ## Version 4.2.0 - 2021-06-07
871
-
872
- ### Added
873
-
874
- - `cds add data` creates csv files with basic header lines for the entities in the project. `--for` option allows for selecting individual entities or namespaces.
875
-
876
- ### Fixed
877
-
878
- - `cds deploy` called with multiple sources ignored all but the first one
879
- - `cdd add mta` now sets a buildpack for the server modules (Node.js or Java). This improves deploy performance and avoids issues with buildpack priorities, leading to potentially wrong buildpacks selected.
880
- - On drag and drop of an edmx file, `cds watch` now imports it in the proper working dir
881
- - `cds import` now moves the edmx file again to `srv/external` instead of copying it.
882
-
883
- ## Version 4.1.5 - 2021-05-21
884
-
885
- ### Fixed
886
-
887
- - An issue with opening URLs on Windows
888
- - `cds` CLI no longer adds `cds.compile.to.openapi` generically into all commands. This turned out to load cds configuration from wrong folders, introducing subtle side effects. Now, only the `cds compile` command adds `cds.compile.to.openapi`. If you use `cds.compile.to.openapi` in other flows, like at runtime, please use `cds compile --to openapi` instead.
889
- - Include `@sap/cds` 5.1.5
890
- - Include `@sap/cds-runtime` 3.1.1
891
- - Include `@sap/cds-compiler` 2.2.8
892
- - Include `@sap/eslint-plugin-cds` 1.1.4
893
-
894
- ## Version 4.1.4 - 2021-05-12
895
-
896
- ### Fixed
897
-
898
- - Include `@sap/cds` 5.1.4
899
- - Include `@sap/cds-compiler` 2.2.6
900
- - Include `@sap/eslint-plugin-cds` 1.1.3
901
-
902
- ## Version 4.1.3 - 2021-05-12
903
-
904
- ### Fixed
905
-
906
- - Include `@sap/cds` 5.1.3
907
-
908
- ## Version 4.1.2 - 2021-05-12
909
-
910
- ### Fixed
911
-
912
- - Include `@sap/cds` 5.1.2
913
-
914
- ## Version 4.1.1 - 2021-05-07
915
-
916
- ### Fixed
917
-
918
- - Include `@sap/cds` 5.1.1
919
-
920
- ## Version 4.1.0 - 2021-05-06
921
-
922
- ### Added
923
-
924
- - `cds watch --open` opens the app in the browser with a given URL (part)
925
-
926
- ### Changed
927
-
928
- - If `cds watch` encounters a port that is already in use, it now just runs on an arbitrary port instead of a trying to search the next port available.
929
- - `cds init` uses latest `Maven Java archetype` version `1.15.3` for creating Java projects.
930
-
931
- ### Fixed
932
-
933
- - `cds compile --to hdbtable, hdbcds` no longer creates duplicate file extensions.
934
-
935
- ## Version 4.0.7 - 2021-04-16
936
-
937
- ### Changed
938
-
939
- - Bumped versions of `@sap/cds`, `@sap/cds-compiler`
940
-
941
- ### Fixed
942
-
943
- - Lookup for `eslint` during `cds add lint`
944
-
945
- ## Version 4.0.6 - 2021-04-15
946
-
947
- ### Changed
948
-
949
- - Bumped versions of `@sap/cds`, `@sap/cds-runtime`, `@sap/cds-compiler`
950
-
951
-
952
- ## Version 4.0.5 - 2021-04-12
953
-
954
- ### Changed
955
-
956
- - Bumped version of `@sap/eslint-plugin-cds`
957
-
958
- ## Version 4.0.4 - 2021-04-12
959
-
960
- ### Changed
961
-
962
- - `cds init` uses latest `Maven Java archetype` version `1.15.0` for creating Java projects.
963
-
964
-
965
- ## Version 4.0.3 - 2021-04-07
966
-
967
- ### Changed
968
-
969
- - `cds compile --to xsuaa`, `edmx-v2`, and `edmx-v4` have moved from `@sap/cds` to `@sap/cds-dk`.
970
-
971
- ### Fixed
972
-
973
- - `cds init` now works if started in file paths with spaces
974
-
975
- ## Version 4.0.2 - 2021-04-01
976
-
977
- ### Changed
978
-
979
- - `cds init` uses latest `Maven Java archetype` version `1.14.3` for creating Java projects.
980
- - `npm-shrinkwrap.json` format version 2 is now used, produced by `npm` 7
981
- - `npm-shrinkwrap.json` now contains integrity hashes
982
-
983
- ### Fixed
984
-
985
- - Allow blanks in cds-dk installation path when running `cds init`.
986
-
987
- ## Version 4.0.1 - 2021-03-24
988
-
989
- ### Fixed
990
-
991
- - Many things in linter
992
-
993
- ## Version 4.0.0 - 2021-03-19
994
-
995
- ### Added
996
-
997
- - `cds watch` is now a [live reload](https://www.npmjs.com/package/livereload-js) server, allowing for automatic page refreshes in browsers whenever a file has changed.
998
-
999
- ### Changed
1000
-
1001
- - `cds init` uses latest `Maven Java archetype` version `1.14.0` for creating Java projects.
1002
- - `cds watch` has dropped its fallback support for `nodemon` through the `CDS_USE_NODEMON` configuration.
1003
- - `cds add hana` now sets `hdbtable` as deployment format for SAP HANA
1004
-
1005
- ### Fixed
1006
-
1007
- - `cds watch` no longer runs in an endless restart loop if started in the user's home dir.
1008
-
1009
- ## Version 3.5.1 - 2021-03-12
1010
-
1011
- ### Changed
1012
-
1013
- - Bump version of `@sap/cds` to 4.6.5
1014
-
1015
- ## Version 3.5.0 - 2021-03-01
1016
-
1017
- ### Changed
1018
- - `cds init` creates projects with latest version of `sqlite3` again.
1019
- - `cds add mta` now creates a mta.yaml file that correctly handles spring boot .jar and .war archives.
1020
-
1021
- ### Fixed
1022
-
1023
- - `cds env` does not longer fail with an exception for unknown commands
1024
-
1025
- ## Version 3.4.2 - 2021-02-19
1026
-
1027
- ### Fixes
1028
-
1029
- - `cds init` now refers to the latest HDI deployer which supports Node.js 14
1030
-
1031
- ### Changed
1032
-
1033
- - `cds init` uses latest `Maven Java archetype` version `1.13.1` for creating Java projects.
1034
- - Bump version of `@sap/cds` to 4.5.3
1035
-
1036
- ## Version 3.4.1 - 2021-02-17
1037
-
1038
- ### Changed
1039
-
1040
- - Bump version of `@sap/cds` to 4.5.2
1041
- - Bump version of `@sap/cds-runtime` to 2.8.6
1042
- - Bump version of `@sap/cds-compiler` to 1.49.2
1043
-
1044
- ### Fixed
1045
-
1046
- - `cds watch` now shuts down its child process properly, so that `EADDRINUSE` errors in Business Application Studio are gone
1047
-
1048
- ## Version 3.4.0 - 2021-02-02
1049
- ### Changed
1050
- - `cds init` uses latest `Maven Java archetype` version `1.12.1` for creating Java projects.
1051
- - `cds init` allows `_` in project name and leaves conversion to `Maven Java archetype`.
1052
- - `cds init --add notebook` and `cds add notebook` now use a Python venv and offer a default Jupyter Notebook viewer.
1053
- - [beta] Multi-target Node.js applications can now be initialized with multitenancy support by running `cds init --add mta,mtx`.
1054
-
1055
- ## Version 3.3.5 - 2021-01-20
1056
-
1057
- ### Changed
1058
-
1059
- - Bump versions of `@sap/cds`
1060
-
1061
- ## Version 3.3.4 - 2021-01-12
1062
-
1063
- ### Changed
1064
-
1065
- - Bump versions of `@sap/cds` and `axios`
1066
-
1067
- ## Version 3.3.3 - 2020-12-18
1068
-
1069
- ### Changed
1070
-
1071
- - Bump versions of `@sap/cds`, `@sap/cds-runtime`, and `@sap/cds-sidecar-client`
1072
-
1073
- ## Version 3.3.2 - 2020-12-07
1074
-
1075
- ### Changed
1076
-
1077
- - Bump version of `@sap/cds` to 4.4.5
1078
-
1079
- ## Version 3.3.1 - 2020-12-04
1080
-
1081
- ### Changed
1082
-
1083
- - Bump version of `@sap/cds` to 4.4.4 and `@sap/cds-runtime` to `2.7.5`
1084
-
1085
- ## Version 3.3.0 - 2020-12-02
1086
-
1087
- ### Added
1088
-
1089
- - `cds init` and `cds add` now support the feature `notebook` to create a Jupyter Notebook in a project.
1090
- - `cds compile --to openapi` adds support for OpenAPI 3 to `cds compile`.
1091
- - If the server port is in use, `cds watch` offers to restart the server with a new port.
1092
- - `cds init` uses latest `Maven Java archetype` version `1.11.0` for creating Java projects.
1093
- - `cds init --add pipeline` and `cds add pipeline` will now use the general purpose pipeline of project "Piper".
1094
- - `cds login`, `cds extend` and `cds activate` now also support clientid/clientsecret as parameters. This is needed when extending multitenant
1095
- applications provided as as reusable services
1096
- (see [CP documentation](https://controlcenter.ondemand.com/index.html#/knowledge_center/articles/2316430f7d804820934910db736cefbf)).
1097
- - `cds init --add mta` and `cds add mta` now always set the `cloud` Spring profile for Java apps. Before, it was only set if a binding to an SAP HANA service was present.
1098
-
1099
- ### Changed
1100
-
1101
- - `cds add cf-manifest` now adds a dependency to the `java_buildpack`.
1102
- - `sqlite3` is now an optional dependency to `cds-dk`. This means that an installation failure of `sqlite3`, e.g. in environments w/o Internet connectivity, no longer leads to an overall installation error. This behavior suits Java applications, as these usually don't need an SQLite database. Node.js applications still require a proper installation of `sqlite3` if they use this database.
1103
-
1104
- ### Fixed
1105
-
1106
- - `cds add cf-manifest` now only adds db-deployer module if HANA service binding exists.
1107
- - `cds init --add hana` now adds `requires.db.kind: "sql"` to cds configuration for Node.js and Java
1108
- - `cds watch` no longer fails in SAP Business Application Studio when trying to find `sqlite3`. `cds deploy --to sqlite` still has that issue, which is to be solved in a future version.
1109
- - `cds deploy --to hana` now prefers to use an app-local install of `@sap/cds`, much like other `cds` commands
1110
-
1111
- ## Version 3.2.1 - 2020-11-20
1112
-
1113
- ### Fixed
1114
-
1115
- - `cds import` no longer creates `.csn` files with invalid `kind:ComplexType` fields
1116
-
1117
- ## Version 3.2.0 - 2020-11-03
1118
-
1119
- ### Added
1120
-
1121
- - `cds watch` now allows to set the `--in-memory` flag that is passed to `serve`.
1122
-
1123
- ### Changed
1124
-
1125
- - `@sap/cds-dk` is again shrinkwrapped, so that builds get reproducible again
1126
- - All `cds` commands now prefer a local installation of `@sap/cds`. This enables applications better control over the version of `@sap/cds`.
1127
- - `cds add cf-manifest` generates the service application with the `random-route: true` flag, which avoids route clashes on CF during development.
1128
-
1129
- ### Fixed
1130
-
1131
- - `cds run` finds its `express` module again in the case where no `express` is installed in the application.
1132
- - `cds env` now also displays properties that have a value `false` or `''`.
1133
- - Leading flags in `cds` CLI work again, like `cds --to sql my.cds`
1134
- - `cds compile --to` w/o an argument now fails with a better message
1135
-
1136
- ### Removed
1137
-
1138
-
1139
- ## Version 3.1.4 - 2020-10-27
1140
-
1141
- ### Fixed
1142
-
1143
- - `cds run` finds the `sqlite3` module again if `cds` is used from a globally installed `@sap/cds-dk`.
1144
-
1145
-
1146
- ## Version 3.1.3 - 2020-10-26
1147
-
1148
- ### Fixed
1149
-
1150
- - `cds run` finds the `express` package again in the case where no `express` is installed in the application's `node_modules`.
1151
-
1152
-
1153
- ## Version 3.1.2 - 2020-10-16
1154
-
1155
- ### Changed
1156
- - `cds init` uses latest `Maven Java archetype` version `1.10.0` for creating Java projects.
1157
-
1158
- ### Fixed
1159
- - `cds deploy --to sqlite` finds the `sqlite3` module again if `cds` is used from a globally installed `@sap/cds-dk`.
1160
-
1161
-
1162
- ## Version 3.1.1 - 2020-10-07
1163
-
1164
- ### Added
1165
- - `cds compile --locations` preserves `$location` properties in CSN outputs.
1166
-
1167
- ### Changed
1168
- - `cds compile` prints a better legible JSON output to terminals
1169
- - `cds compile -p` is no longer a shortcut for `--parse`, to allow `--parse ...more-args` to work.
1170
- - `cds compile -f` is no longer a shortcut for `--from` (which is not implemented), but for `--flavor`.
1171
-
1172
- ### Fixed
1173
- - `cds deploy --to sqlite` now writes `requires.db.model` in `package.json` such that `cds.connect.to.('db')` works w/o further `model` options.
1174
- - `cds deploy --to sqlite` with `@sap/cds` 4.2 no longer crashes due to a wrong import
1175
-
1176
- ## Version 3.1.0 - 2020-09-30
1177
-
1178
- ### Added
1179
- - `cds compile` now supports option `flavor` with values: `files` | `sources` | `parsed` | `xtended` | `inferred`.
1180
- + `cds compile --files` maps to `--flavor files`.
1181
- + `cds compile --sources` maps to `--flavor sources`.
1182
- + `cds compile --parse` maps to `--flavor parsed`.
1183
- + `cds compile` maps to `--flavor inferred`.
1184
- - `cds add cf-manifest` creates manifest.yml and services-manifest.yml allowing for Cloud Foundry native deployment.
1185
- - `cds init` now supports type `nodejs` to create a Node.js based project. This is the default and can be omitted.
1186
- - `cds watch`: enter `debug` or `debug-brk` to restart process in debug mode. Other commands are `ps` and `rs`.
1187
-
1188
- ### Changed
1189
- - `@sap/cds-dk` is no longer shrinkwrapped, so that new versions from underlying `@sap` packages (like `@sap/cds`) are available w/o a new cds-dk version
1190
- - `cds init` uses latest `Maven Java archetype` version `1.9.0` for creating Java projects.
1191
-
1192
- ### Fixed
1193
- - `cds watch` now passes all environment variables to the spawned sub processes, enabling for example, `cds watch --production`
1194
- - `cds init` modifies artifact id and Java package name for Java projects to be standard conform.
1195
- - `cds` fails with a better error message for misspelled commands
1196
-
1197
-
1198
- ## Version 3.0.0 - 2020-08-31
1199
-
1200
- ### Changed
1201
- - `cds watch` now uses version 5 of `sqlite3`
1202
- - `cds watch` does not use `nodemon` anymore.
1203
- > You can continue using `cds watch` with `nodemon` by installing `nodemon` globally and setting env variable `CDS_USE_NODEMON` to true.
1204
- - `cds add mta` for Java applications now determines app details like name, version etc. based on `pom.xml` and no longer from `package.json`.
1205
-
1206
- ### Fixed
1207
- - `cds add mta` now configures the Service Manager for SaaS applications. The Instance Manager is no longer used.
1208
- - `cds import` no longer writes an empty file if the source and the target edmx files are the same
1209
- - `cds import` yields better error messages if the input file does not exists or is invalid
1210
- - `cds import` no longer writes a Windows-specific path to `package.json`
1211
- - `cds init --add java` shows better error message if Maven is not installed.
1212
-
1213
- ## Version 2.0.8 - 2020-08-07
1214
-
1215
- ### Changed
1216
- - `cds init` uses latest `Maven Java archetype` version `1.8.1` for creating Java projects.
1217
-
1218
- ### Fixed
1219
-
1220
- - Fixed `cds add mta` for java projects. The Spring Cloud Profile is set by default for Java apps in order to enable the SAP HANA service binding, otherwise the sqlite db would still be used at runtime.
1221
- The environment variable JBP_CONFIG_RESOURCE_CONFIGURATION required by the classic Java runtime has been removed.
1222
-
1223
- ## Version 2.0.7 - 2020-08-04
1224
-
1225
- ### Added
1226
- - `cds init` supports adding `samples` via `--add samples`. See `cds help init` for more details.
1227
- - **Most CLI commands have moved to `@sap/cds-dk`** from `@sap/cds`. Make sure to install the latest version with `npm i -g @sap/cds-dk`.
1228
- - `cds` commands now log a hint to update to the latest `@sap/cds` if this one is still of version 3.
1229
- - New command `cds login` added to simplify usage of `cds extend` and `cds activate` by providing them with automatic authentication and saving project settings.
1230
- Refreshes expired authentication tokens automatically. Optionally uses CF command-line client to determine login URLs and subdomains.
1231
- Saves authentication data in plain-text file or desktop keyring on Linux, macOS or Windows.
1232
- The latter requires an optional Node.js module `keytar` to be installed.
1233
- - New command `cds logout` removes authentication data and optionally project settings.
1234
-
1235
- ### Changed
1236
- - `@sap/cdk` no longer warns about `@sap/cds` being globally installed next to it. This was a temporary hint for the transition period to `@sap/cds-dk`.
1237
- - `cds init` generates dependency to `@sap/cds` version `4` for Nodejs projects.
1238
- - Use square brackets to pass array values for options to `cds init --java:mvn`.
1239
- - `cds init --add pipeline` and `cds add pipeline` now create file `config.yml` in `.pipeline` folder.
1240
- - Improved `launch.json` file which is created during `cds init`.
1241
- - `cds add mta` now creates a mta.yaml file that sets the production flag for cds build and npm install.
1242
- This ensures that the HANA artefacts are created if `"kind": "sql"` or some `production` profile has been configured in package.json or .cdsrc.json.
1243
- Requires `@sap/cds` version >=4.x.
1244
- - `cds init` uses latest `Maven Java archetype` version `1.7.0` for creating Java projects.
1245
- - `cds init` no longer adds `package-lock.json` to `.gitignore` file when creating a new project.
1246
- - `cds init --add hana` and `cds add hana` now use `Maven Java archetype` to create HANA related pom.xml entries.
1247
- - Consistent default naming scheme for applications and services deployed to CF across the following `cds` commands `build`, `deploy`, `init` and `add`. For an application named `myapp` the SAP HANA deployer app name is `myapp-db-deployer`, the SAP HANA DB service name is `myapp-db`.
1248
-
1249
- ### Fixed
1250
-
1251
- - Fixed `cds import` to support imports from symlinked sources
1252
- - Fixing bug in `cds init` and `cds add` when using multiple features separated by comma.
1253
- - Fixing missing log output bug in `cds init` and `cds add` when using feature `samples`.
1254
- - `cds add mta` does no longer crash if no package.json file exists.
1255
-
1256
- ## Version 1.8.6 - 2020-07-10
1257
- ### Changed
1258
- - Service binding names have been adapted in mta.yaml created by `cds add mta` command.
1259
-
1260
- ### Fixes
1261
- - Simplified `cds env` calculation during `cds init` and `cds add`.
1262
-
1263
- ## Version 1.8.5 - 2020-06-05
1264
-
1265
- ### Changed
1266
- - `cds init` uses latest `Maven Java archetype` version `1.6.0` for creating Java projects.
1267
-
1268
- ## Version 1.8.4 - 2020-05-30
1269
-
1270
- ### Changed
1271
- - `cds init` uses latest `Maven Java archetype` version `1.5.2` for creating Java projects.
1272
-
1273
- ### Fixes
1274
- - An issue in `@sap/edm-converters` with missing entity sets
1275
-
1276
-
1277
- ## Version 1.8.2 - 2020-05-08
1278
- ### Fixes
1279
- - An issue in `@sap/edm-converters` with missing entity sets
1280
-
1281
-
1282
- ## Version 1.8.1 - 2020-05-08
1283
- ### Fixed
1284
- - An issue in `@sap/edm-converters` with missing entity sets
1285
-
1286
- ## Version 1.8.0 - 2020-04-27
1287
-
1288
- ### Added
1289
-
1290
- - `cds watch` now also accepts package names as arguments, e.g. `cds w @capire/bookshop`.
1291
- - `cds add mta` now supports cds configuration `requires.db.kind:"sql"` which allows seamless production deployments using HANA db while keeping sqlite for local development scenario.
1292
-
1293
- ### Changed
1294
- - Parameter `verbose` in `cds init` and `cds add` is now deprecated. Use environment variable `DEBUG=true` to obtain detailed output.
1295
- - `cds init` uses latest `Java archetype` version `1.4.0` for creating Java projects.
1296
- - Consume new `@sap/cds-sidecar-client` due to API change.
1297
-
1298
- ### Fixed
1299
- - Fixing terminology in `cds init` and `cds add` console output.
1300
- - `cds init` is logging `cds env` output only in debug mode.
1301
- - Using `cds build` command in generated `mta.yaml` file.
1302
- - Fixing Hana dependency during `cds init --add hana` for project type `java`.
1303
- - Fixing bug in `cds init` when `cds-dk` is not installed globally.
1304
-
1305
- ## Version 1.7.0 - 2020-03-24
1306
-
1307
- ### Added
1308
- - `cds init --add java` supports `--java:mvn` to add additional parameter.
1309
- - Improvements when logging console output during `cds init`.
1310
- - Link to Maven archetype documentation shown in `cds help init`.
1311
-
1312
- ### Changed
1313
- - `cds add mta` now activates the `production` profile when creating the `mta.yaml`, which is consistent with what the MTA build does. This way, configuration like `"[production]: {"kind": "hana"}` gets activated automatically.
1314
-
1315
-
1316
- ## Version 1.6.3 - 2020-03-05
1317
-
1318
- ### Changed
1319
-
1320
- ### Fixed
1321
- - Proper `npm-shrinkwrap.json`
1322
- - `cds init` is a bit more relaxed when checking for existing project content
1323
-
1324
-
1325
- ## Version 1.6.0 - 2020-02-25
1326
- ### Added
1327
- - `cds init --add java` now also works with `--hana`
1328
-
1329
- ### Changed
1330
- - `cds add mta` now creates resources for SAP HANA with an explicit service type `hana`. If deploying to trial landscapes, this needs to be changed manually to `hanatrial`.
1331
-
1332
- ### Fixed
1333
- - `cds add mta` now creates valid configuration for `uaa` and `auditlog` resources.
1334
-
1335
-
1336
- ## Version 1.5.0 - 2020-02-10
1337
-
1338
- ### Changed
1339
- - `cds init` only supports new syntax. See `cds init help` for more info.
1340
- - `cds init` now supports adding template `hana` to Java projects.
1341
-
1342
- ### Fixed
1343
- - `cds add mta` fixes an issue in created mta.yaml for nodejs projects if used in xmake environment.
1344
- - `cds add mta` fixes an build order issue in created mta.yaml for java projects. Now service module is built before db module.
1345
- - `cds init` does not create `package.json` in db folder.
1346
-
1347
- ### Added
1348
- - `cds init` adds `private: true` and `license: "UNLICENSED"` to newly generated projects.
1349
- - `cds init` adds a default `.hdiconfig` file when using template `hana`.
1350
- - `cds init` supports Java package name via `--java:package` parameter.
1351
- - `cds init` generates dependency entry for `@sap/hana-client` when using template `hana`.
1352
- - `cds init` uses latest `Java archetype` version `1.3.0` for creating Java projects.
1353
- - `cds init` now creates a `.cdsrc.json` file.
1354
-
1355
- ## Version 1.4.0 - 2019-12-12
1356
-
1357
- ### Added
1358
- - Abort installation with a hint if `@sap/cds` is installed globally.
1359
- - New project generation using `cds init`. See `cds help init` for details.
1360
- - `cds init --add java` now creates Java projects with Spring Boot support.
1361
- - `cds watch` now also watches `.properties` files
1362
-
1363
- ### Fixed
1364
- - Find locally installed modules like `passport`, so that `cds watch` and `cds run` behave symmetrically.
1365
-
1366
- ## Version 1.3.0 - 2019-11-19
1367
-
1368
- ### Fixed
1369
- - `cds import` no longer fails due to Windows paths.
1370
-
1371
- ### Also see
1372
- - Changes of `@sap/cds` 3.20.0
1373
- - Changes of `@sap/cds-sidecar-client` 1.1.2
1374
-
1375
- ## Version 1.2.0 - 2019-10-31
1376
-
1377
- ### Added
1378
- - Experimental support for cds init
1379
-
1380
-
1381
- ## Version 1.1.3 - 2019-10-28
1382
-
1383
- ### Fixed
1384
- - `cds watch` now uses the same lookup paths for models as `cds run`
1385
-
1386
- ### Also see
1387
- - Changes of `@sap/cds` 3.18.3
1388
-
1389
-
1390
- ## Version 1.1.0 - 2019-10-08
1391
-
1392
- ### Added
1393
- - Added dependencies to `express` and `sqlite3` to ease development
1394
-
1395
- ### Changed
1396
- - Improved `cds watch`
1397
-
1398
- ### Also see
1399
- - Changes of `@sap/cds` 3.18.0
1400
- - Changes of `@sap/edm-converters` 1.0.19
1401
- - Changes of `@sap/generator-cds` 2.8.3
1402
- - Changes of `@sap/cds-sidecar-client` 1.1.1
1403
-
1404
-
1405
- ## Version 1.0.6 - 2019-09-25
1406
-
1407
- ### Changed
1408
-
1409
- - Updated version of `@sap/cds` to `3.17.8`
1410
-
1411
-
1412
- ## Version 1.0.5 - 2019-09-24
1413
-
1414
- ### Changed
1415
-
1416
- - Updated version of `@sap/cds` to `3.17.7`
1417
-
1418
-
1419
- ## Version 1.0.4 - 2019-09-23
1420
-
1421
- ### Changed
1422
-
1423
- - Updated version of `@sap/cds` to `3.17.6`
1424
-
1425
-
1426
- ## Version 1.0.3 - 2019-09-21
1427
-
1428
- ### Changed
1429
-
1430
- - Updated version of `@sap/cds` to `3.17.5`
1431
-
1432
-
1433
- ## Version 1.0.2 - 2019-09-19
1434
-
1435
- ### Changed
1436
-
1437
- - Updated version of `@sap/cds` to `3.17.4`
1438
-
1439
-
1440
- ## Version 1.0.1 - 2019-09-18
1441
-
1442
- ### Changed
1443
-
1444
- - Updated version of `@sap/cds` to `3.17.2`
1445
-
1446
-
1447
- ## Version 1.0.0 - 2019-09-10
1448
-
1449
- ### Added
1450
-
1451
- - Initial implementation
1452
- - cds watch
1453
- - cds import