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