@sap/cds-dk 8.9.5 → 9.0.5

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 (109) hide show
  1. package/CHANGELOG.md +101 -2012
  2. package/LICENSE +15 -21
  3. package/bin/bind.js +1 -1
  4. package/bin/build.js +35 -37
  5. package/bin/cds.js +13 -30
  6. package/bin/compile/index.js +2 -2
  7. package/bin/debug.js +27 -7
  8. package/bin/deploy/index.js +6 -23
  9. package/bin/deploy/to-hana.js +4 -2
  10. package/bin/help.js +5 -3
  11. package/bin/init.js +1 -1
  12. package/bin/up.js +45 -12
  13. package/bin/watch.js +45 -63
  14. package/lib/bind/cf.js +2 -1
  15. package/lib/bind/k8s.js +2 -2
  16. package/lib/bind/plugin.js +1 -1
  17. package/lib/bind/shared.js +16 -25
  18. package/lib/build/buildTaskEngine.js +26 -10
  19. package/lib/build/buildTaskFactory.js +3 -2
  20. package/lib/build/buildTaskProvider.js +18 -7
  21. package/lib/build/buildTaskProviderFactory.js +35 -13
  22. package/lib/build/constants.js +4 -0
  23. package/lib/build/index.js +1 -1
  24. package/lib/build/plugin.js +89 -54
  25. package/lib/build/plugins/helm/files/subcharts/web-application/Chart.yaml +3 -1
  26. package/lib/build/plugins/helm/files/subcharts/web-application/templates/_helpers.tpl +4 -2
  27. package/lib/build/plugins/helm/files/subcharts/web-application/templates/api-rule.yaml +4 -2
  28. package/lib/build/plugins/helm/files/subcharts/web-application/templates/deployment.yaml +18 -1
  29. package/lib/build/plugins/helm/files/subcharts/web-application/templates/service-binding.yaml +0 -1
  30. package/lib/build/plugins/helm/files/subcharts/web-application/values.schema.json +34 -2
  31. package/lib/build/plugins/helm/files/subcharts/web-application/values.yaml +9 -2
  32. package/lib/build/plugins/helm/index.js +2 -1
  33. package/lib/build/plugins.js +24 -10
  34. package/lib/build/provider/edmxBuildPlugin.js +1 -11
  35. package/lib/build/provider/fiori/index.js +4 -4
  36. package/lib/build/provider/hana/index.js +12 -5
  37. package/lib/build/provider/hana/template/package.json +1 -1
  38. package/lib/build/provider/internalBuildPlugin.js +1 -1
  39. package/lib/build/provider/internalBuildTaskProvider.js +3 -24
  40. package/lib/build/provider/java/index.js +1 -1
  41. package/lib/build/provider/mtx-extension/index.js +15 -8
  42. package/lib/build/provider/nodejs/index.js +28 -6
  43. package/lib/build/util.js +186 -125
  44. package/lib/deploy/index.js +5 -0
  45. package/lib/deploy/to-hana/hana.js +27 -33
  46. package/lib/deploy/to-hana/hdiDeployUtil.js +2 -2
  47. package/lib/import/odata/v2parser.js +34 -3
  48. package/lib/import/openapi/importOpenAPI.js +4 -0
  49. package/lib/index.js +2 -11
  50. package/lib/init/constants.js +1 -2
  51. package/lib/init/merge.js +101 -77
  52. package/lib/init/mvn.js +3 -3
  53. package/lib/init/projectReader.js +1 -1
  54. package/lib/init/template/ams/files/mta.yaml.hbs +6 -1
  55. package/lib/init/template/ams/files/package.json.hbs +1 -1
  56. package/lib/init/template/approuter/files/mta.yaml.hbs +5 -0
  57. package/lib/init/template/cf-manifest/files/manifest.yml.hbs +1 -1
  58. package/lib/init/template/cloud-logging/files/package.json.hbs +3 -3
  59. package/lib/init/template/data/as-json.js +3 -3
  60. package/lib/init/template/dynatrace/files/mta.yaml.hbs +1 -1
  61. package/lib/init/template/dynatrace/files/package.json.hbs +2 -2
  62. package/lib/init/template/dynatrace/index.js +2 -1
  63. package/lib/init/template/enterprise-messaging/files/mta.yaml.hbs +6 -0
  64. package/lib/init/template/enterprise-messaging/index.js +5 -1
  65. package/lib/init/template/extensibility/files/package.json.hbs +1 -1
  66. package/lib/init/template/hana/files/db/package.json +1 -1
  67. package/lib/init/template/hana/files/package.json.hbs +2 -4
  68. package/lib/init/template/hana/index.js +2 -2
  69. package/lib/init/template/handler/index.js +16 -12
  70. package/lib/init/template/helm/index.js +13 -22
  71. package/lib/init/template/helm-unified-runtime/index.js +2 -1
  72. package/lib/init/template/html5-repo/files/values.yaml.hbs +12 -1
  73. package/lib/init/template/html5-repo/index.js +10 -5
  74. package/lib/init/template/http/index.js +1 -1
  75. package/lib/init/template/ias/files/mta.yaml.hbs +1 -1
  76. package/lib/init/template/ias/files/sidecar.package.json.hbs +0 -7
  77. package/lib/init/template/ias/index.js +5 -4
  78. package/lib/init/template/lint/files/package.json +6 -0
  79. package/lib/init/template/lint/index.js +61 -204
  80. package/lib/init/template/mta/files/package.json +1 -1
  81. package/lib/init/template/multitenancy/files/mta.yaml.hbs +2 -2
  82. package/lib/init/template/multitenancy/files/package.json.hbs +1 -1
  83. package/lib/init/template/multitenancy/files/package.sidecar.json.hbs +7 -4
  84. package/lib/init/template/multitenancy/index.js +3 -0
  85. package/lib/init/template/nodejs/files/package.json.hbs +6 -3
  86. package/lib/init/template/postgres/files/package.json.hbs +1 -1
  87. package/lib/init/template/redis/files/package.json.hbs +1 -1
  88. package/lib/init/template/sample/files/app/admin-books/fiori-service.cds +6 -0
  89. package/lib/init/template/sample/files/app/admin-books/webapp/manifest.json +1 -0
  90. package/lib/init/template/sample/files/app/browse/fiori-service.cds +3 -2
  91. package/lib/init/template/sample/files/app/common.cds +0 -11
  92. package/lib/init/template/sqlite/files/package.json +1 -1
  93. package/lib/init/template/toggles/files/package.json.hbs +1 -1
  94. package/lib/init/template/typescript/files/package.json +2 -4
  95. package/lib/init/template/workzone-standard/index.js +2 -0
  96. package/lib/init/template/xsuaa/index.js +2 -6
  97. package/lib/lint/Linter.js +203 -331
  98. package/lib/lint/generators.js +52 -46
  99. package/lib/lint/io.js +77 -289
  100. package/lib/util/fs.js +2 -1
  101. package/lib/util/git.js +1 -1
  102. package/lib/util/glob.js +77 -0
  103. package/lib/watch/livereload-server.js +3 -4
  104. package/lib/watch/node-watch.js +3 -4
  105. package/lib/watch/watched.js +1 -1
  106. package/npm-shrinkwrap.json +200 -858
  107. package/package.json +6 -8
  108. package/readme.md +1 -1
  109. package/lib/lint/checks.js +0 -135
package/CHANGELOG.md CHANGED
@@ -1,4 +1,3 @@
1
-
2
1
  # Change Log
3
2
 
4
3
  All notable changes to this project will be documented in this file.
@@ -7,6 +6,107 @@ This project adheres to [Semantic Versioning](https://semver.org/).
7
6
 
8
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/).
9
8
 
9
+ ## Version 9.0.5 - 2025-06-06
10
+
11
+ ### Changed
12
+
13
+ - `cds init` uses latest Maven Java archetype version 4.0.2 for creating Java projects.
14
+
15
+ ### Fixed
16
+
17
+ - `cds build` for extensions now filters built-in entities such as `cds.outbox.Messages` to fix the extension upload with `cds push`.
18
+ - `cds add data` now correctly works for nested structured properties.
19
+ - `cds add data/http` no longer create decimal numbers with too many precision places
20
+
21
+ ## Version 9.0.4 - 2025-05-28
22
+
23
+ ### Changed
24
+
25
+ - `cds add typescript` adds a `tsx` dependency. It no longer adds a `watch` script pointing to `cds-tsx` because `cds watch` will run `tsx` automatically.
26
+
27
+ ### Fixed
28
+
29
+ - Bring shrinkwrap back.
30
+ - `cds import --from edmx` no longer produces invalid CSN for function imports with return types of the same name.
31
+ - `cds watch` no longer shows the outbox model for empty projects.
32
+
33
+ ## Version 9.0.3 - 2025-05-26
34
+
35
+ ### Changed
36
+
37
+ - `DEBUG=build cds build` does not log the CDS env any more.
38
+ - `cds init --java:mvn` does not prefix the `-D` to options any more to allow for options not starting with `-D`.
39
+ - `cds add html5-repo` for Helm does not add XSUAA configuration for IAS-only projects.
40
+ - `cds add html5-repo` for Helm has improved support for IAS.
41
+ - `cds watch` with `tsx` will no longer be print notifications to `console.log` without environment variable `DEBUG` set.
42
+ - `cds add html5-repo` will add missing `requires` for its `build-parameters` setting, even if ran with a preexisting `requires` key.
43
+ - `cds unknown-command valid-file.cds` now fails due to the unknown command instead of compiling the cds file.
44
+
45
+ ### Fixed
46
+
47
+ - `cds up -2 k8s` fails for errors in `ctz` instead of only logging the messages.
48
+ - `cds add helm` now correctly prompts for the registry server.
49
+
50
+ ## Version 9.0.2 - 2025-05-09
51
+
52
+ ### Fixed
53
+
54
+ - `cds add multitenancy` adds the `@sap/cds-mtxs` to `devDependencies` in for Java projects.
55
+ - `cds add ias` rewrites the `url: ~{srv-url}` to `url: ~{srv-cert-url}` if required.
56
+ - `cds add ias` adds `forwardAuthCertificates` and `strictSSL` settings to the app router if required.
57
+
58
+ ## Version 9.0.1 - 2025-05-08
59
+
60
+ ### Added
61
+
62
+ - `cds debug --force` automatically enables SSH for Cloud Foundry application instances.
63
+ - Faster table deployments on SAP HANA using HDI param `com.sap.hana.di.table/try_fast_table_migration=true` in `cds build --for hana`, `cds deploy --to hana`, `cds add hana`.
64
+
65
+ ### Changed
66
+
67
+ - Change license from SAP DEVELOPER LICENSE AGREEMENT '3.1' to '3.2 CAP'. See https://cap.cloud.sap/resources/license/developer-license-3_2_CAP.txt.
68
+ - The `CHANGELOG.md` file now only contains changes from 8.0.0 onwards.
69
+ - cds-dk now requires `@sap/cds` version 8.3.0 or higher. An error is raised for older versions.
70
+ - cds-dk now requires `@sap/cds-mtxs` version 2 or higher.
71
+ - `cds add multitenancy` and `cds add xsuaa` use the `production` profile by default.
72
+ - `cds add helm` uses a default for the Docker secret name (`docker-registry`), instead of asking for it in interactive mode.
73
+ - `cds add helm` uses the pre-configured domain name for your Kyma cluster as a default, instead of asking for it.
74
+ - `cds add workzone` uses the backend destination `srv-api` instead of `{{appName}}-srv-api` on Cloud Foundry.
75
+ - `cds add approuter` in combination with `xsuaa` adds a `redirect-uris` to `mta.yaml` for Cloud Foundry projects.
76
+ - `cds build --ws-pack` now recursively packs dependencies from workspaces. If the `workspaces` definition in the project root contains glob patterns with braces `{…}`, Node.js 22 or later will be required.
77
+ - `cds add xsuaa` adds a `redirect_urls` to the `mta.yaml` for Cloud Foundry projects.
78
+ - `cds deploy --to hana` throws an error if an unsupported option is passed.
79
+ - The Node version in `gen/db/package.json` file generated by `cds build` is now `>=18`, matching to what `@sap/hdi-deploy` specifies.
80
+ - `cds watch` only auto-resolves bindings if either `CDS_ENV` or `--profile` are set.
81
+ - `cds compile --help` no longer mentions the `hdbcds` format.
82
+ - `cds add pipeline` also creates UI5 resources if required.
83
+ - `cds add hana` does not add `native_hana_associations` configuration any more.
84
+ - `cds up` supports embedded multitenancy scenarios with no sidecar.
85
+ - `cds lint` requires projects to install `eslint` locally (or system-wide), as `cds-dk` will no longer include `eslint` internally.
86
+ - `cds add telemetry` adds limits the version of added `@opentelemetry` dependencies to `<0.200`.
87
+ - `cds add cf-manifest` uses a 1 GB disk quota instead of 512 MB for Java apps.
88
+
89
+ ### Removed
90
+
91
+ - `cds build --clean` is removed.
92
+ - `cds build` no longer supports configuration with `cds.data` and `cds.service` in package.json.
93
+ - `cds watch` still allows options `--include` and `--exclude`, but CDS configuration is ignored.
94
+ - `cds deploy --to hana --store-credentials` is removed.
95
+
96
+ ### Fixed
97
+
98
+ - `cds up` has improved support for monorepos.
99
+ - `cds add html5-repo` works in combination with multitenancy when no app router or Work Zone is set up.
100
+ - `cds add dynatrace` sets the `environment_name` property according to the specification.
101
+ - `cds deploy --to hana` now supports `--with-mocks`.
102
+ - `cds bind` gives better error messages if the Cloud Foundry org or space are not found.
103
+ - `cds add enterprise-messaging` with xsuaa now adds `processed-after` in the `mta.yaml`.
104
+ - `cds deploy --to hana` correctly hands over `--profile` to `cds build` when deploying.
105
+ - `cds import` adds `@mandatory` annotations to properties marked as `required` in the schema.
106
+ - `cds add ams` for Java adds a custom builder to the `mta.yaml` to circumvent the missing `srv/src/gen/policies`.
107
+ - `cds add multitenancy` requires the `srv-api` instead of the `mtx-api` for Java projects.
108
+
109
+
10
110
  ## Version 8.9.5 - 2025-06-05
11
111
 
12
112
  ### Fixed
@@ -581,2014 +681,3 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
581
681
  ### Removed
582
682
 
583
683
  - `cds add notebook` is removed. CAP Jupyter Notebooks have been replaced by custom CAP Notebooks for VS Code which are now part of the CDS Editor. See https://cap.cloud.sap/docs/tools/#add-cds-editor for more.
584
-
585
- ## Version 7.9.8 - 2024-09-17
586
-
587
- ### Fixed
588
-
589
- - BDSA-2024-6188: vulnerability with express.js 4.19.2
590
-
591
- ## Version 7.9.7 - 2024-08-22
592
-
593
- ### Fixed
594
-
595
- - Dependency update for `axios` to fix CVE-2024-39338
596
- - `cds build --for mtx-sidecar` now correctly supports different `srv` folder name.
597
- - `cds build --ws-pack` correctly creates tarball archives for workspaces with nested `node_modules` folders.
598
- - `cds version` now reports the correct version of `@sap/cds` if this one is installed locally along with a local `@sap/cds-dk` installation.
599
- - `cds version -i` does not show a globally installed version when none is installed or linked.
600
- - `cds version` reports correct `@sap/cds-compiler` version.
601
- - `cds version` can skip over check for Java version
602
-
603
- ## Version 7.9.6 - 2024-07-19
604
-
605
- ### Fixed
606
-
607
- - `cds add data` can now correctly handle circular associations. The maximum depth of associations is increased to 5.
608
-
609
- ## Version 7.9.5 - 2024-07-12
610
-
611
- ### Added
612
-
613
- - `cds add hana` and `cds build` now support the HANA artifact type `.hdbeshconfig` required for enterprise search integration.
614
-
615
- ### Fixed
616
-
617
- - `cds add` is failing if one of the `canRun` conditions in the plugin isn't satisfied.
618
- - `cds watch` now ignores `.git/**`
619
-
620
- ## Version 7.9.4 - 2024-06-19
621
-
622
- ### Fixed
623
-
624
- - Dependency update to fix CVE-2024-37890
625
-
626
- ### Changed
627
-
628
- - `cds init` uses latest Maven Java archetype version 2.10.1 for creating Java projects.
629
- - `cds bind` and `cds deploy` use direct http requests instead of `cf curl`.
630
-
631
- ## Version 7.9.3 - 2024-06-07
632
-
633
- ### Fixed
634
-
635
- - `cds add data` now has a more precise foreign key type conversion from CSV data, covering edge cases.
636
-
637
- ## Version 7.9.2 - 2024-05-15
638
-
639
- ### Fixed
640
-
641
- - `cds add data` now uses the correct JSON type for foreign keys from CSV data, e.g. number instead of string
642
- - `cds bind` now calls resolve in sequence to avoid file access exceptions
643
-
644
- ## Version 7.9.1 - 2024-05-02
645
-
646
- ### Fixed
647
-
648
- - `eslint` 9 doesn't crash anymore if called in a project created with `cds init`
649
-
650
- ### Changed
651
-
652
- - `cds add mta` will now use the new `sap_java_buildpack_jakarta` buildpack configuration in the `mta.yaml`.
653
-
654
- ## Version 7.9.0 - 2024-04-30
655
-
656
- ### Added
657
-
658
- - Shell completion in Linux, macOS, Windows for cds commands and parameters (beta)
659
- - `cds bind` supports shared service instances. Service keys are created in the space where a service instance was shared from.
660
- - `cds add data` now can generate actual data (not only a header line), both as `csv` and `json` structure.
661
- - `cds subscribe` now allows to pass tenant metadata and HDI parameters using parameter `--body <json>`.
662
- - `cds add http` has a `--dry` flag to write the generated http requests to stdout.
663
- - `cds add hana` and `cds build` support undeploy of calculation views by default.
664
- - `cds bind` supports custom credentials to overwrite cloud service credentials.
665
- - Better support for `profiles` in cds schema for `package.json` and `.cdsrc.json`.
666
- - `cds bind` supports custom credentials to overwrite cloud credentials of multiple services.
667
-
668
- ### Fixed
669
-
670
- - Revert json schema for cds schemas to `draft-07` to prevent VS Code warnings about unsupported schema features.
671
- - `cds add` doesn't fail for projects with a minimal `package.json` w/o `name` and `version` fields
672
- - `cds add data` can be executed in projects w/o `package.json` and `.cdsrc.json` files.
673
- - `cds add sample` does not fail if the `srv` folder doesn't exist.
674
- - `cds add helm` fixed XSUAA tenant-mode not updating on adding `multitenancy`
675
- - `cds watched` cannot be called from command line anymore.
676
- - `cds login` now correctly handles the case of an expired refresh token and gives more information about token-request errors.
677
- - `cds login` now refreshes the token URL if it had previously reverted to a legacy URL.
678
- - Command retrieval during cds bootstrap is now more robust.
679
- - `cds watch` now ignores all `gen`-folder content to allow tenant subscription in hybrid mode.
680
- - `cds build` doesn't copy `.cdsrc-private.json` file into the deployment folder.
681
-
682
- ### Changed
683
-
684
- - `cds deploy --to hana` warns about using custom service name, e.g `--to hana:myService` and `--vcap-file` at the same time.
685
- - `cds compile` to `openapi` now throws an error when `@protocol : 'none'` is given.
686
- - `--data:for` of `cds add data` is now deprecated in favor of `--filter`.
687
- - `cds add data` sorts columns with own elements first, assuming they are more significant than the inherited/included elements.
688
- - `cds add http --filter` accepts a service/entity/action name or a regex instead of a path.
689
- - `cds deploy` and `cds bind` both use Cloud Foundry client for backend communication.
690
- - Changes in the `package-lock.json` file don't restart the server e.g. during `cds watch`
691
- - `cds init --add java` uses the currently installed Java version for the `pom.xml`.
692
- - `cds add mta` derives the JDK version from the `pom.xml` version.
693
- - `cds add helm` update default gateway to `kyma-system/kyma-gateway`
694
- - `cds lint` supports both legacy (`@eslint@^8`) and flat (`@eslint@^9`) ESLint configurations.
695
- - `cds add lint` adds flat ESLint configurations with `@eslint@^9`, `@sap/eslint-plugin-cds@^3.0.0`.
696
- - `cds add lint` now requires `ESLint` version 8 or above.
697
-
698
- ## Version 7.8.2 - 2024-04-15
699
-
700
- ### Added
701
-
702
- - `cds compile` to `openapi` now maps `@ODM.oidReference.entityName` annotation to generate `x-sap-odm-oid-reference-entity-name`.
703
-
704
- ### Fixed
705
-
706
- - `cds run/serve --resolve-bindings` correctly work with the new runtime authentication middleware.
707
- - `cds add helm-unified-runtime` fixed backend destinations urls for deployments that aren't exposed.
708
-
709
- ### Changed
710
-
711
- - New versions of `@sap/cds` and `@sap/eslint-plugin-cds`
712
- - `cds add helm` moved `TENANT_HOST_PATTERN` key from configmap to `values.yaml`.
713
- - `cds add helm` `web-application` subchart now supports controlling the health probe timings and updated default gateway to `kyma-system/kyma-gateway`
714
-
715
- ## Version 7.8.1 - 2024-04-02
716
-
717
- ### Added
718
-
719
- - `cds add` plugins now support custom flags.
720
- - `cds add kafka` is also enabled for Helm deployments.
721
- - `cds add enterprise-messaging` and `cds add enterprise-messaging-shared` now support a `--cloudevents` flag which automatically adds `cds.requires.messaging.format = 'cloudevents'`.
722
-
723
- ### Fixed
724
-
725
- - `cds build` does no longer add the model _@sap/cds-mtxs/srv/bootstrap_ for Java projects by mistake if the `--ws` option is set.
726
-
727
- ## Version 7.8.0 - 2024-03-27
728
-
729
- ### Added
730
-
731
- - `cds add mta` configures readiness health checks via http to `/` for Java and `/health` for Node.js.
732
- - `cds add` facets can now also be space-separated, e.g. `cds add mta mtx pipeline`.
733
- - `cds add http` adds an `http` folder with `.http` files generated for all services.
734
- - `cds add http --filter [path to dir or file]` generates `.http` files only for the specified file or directory. The shortcut is `-f`.
735
- - `cds add http --for-app [app name]` uses the hostname and the auth of the specified deployed app.
736
- - `cds add http --out` allows to specify the output folder for the http files. The shortcut is `-o`.
737
- - `cds build` reclassifies compilation warnings as info messages for extension projects in case they are caused by the SaaS application base model. `cds build --log-level info` logs all messages. Reclassification of message IDs can be customized.
738
- - `cds version` now also prints the version of the CAP Java SDK as well as the Java and Maven versions
739
- - `cds build` now uses argument `--ws-pack` instead of `--ws` to enable tarball based packaging of npm workspace dependencies for Node.js apps (beta).
740
- - `cds import` can now import the Action/Function with binding parameter type of different schema in the scope of a document.
741
-
742
- ### Changed
743
-
744
- - `cds add helm` uses `/health` for liveness and readiness checks for Node.js.
745
- - `cds pull` now uses an NPM workspace folder (default: .base) for the base model to enable committing it (link it to node_modules with `npm install`).
746
-
747
- ### Fixed
748
-
749
- - `cds deploy` always included models from existing `fts/*` folders. Now, it only does so if `cds.requires.toggles` is switched on.
750
- - `cds build` now adds the correct HANA tenant database artifacts for a multitenant application in case a second shared database exists.
751
- - `cds bind --to-app-services` will throw a better error message if no app name is supplied.
752
-
753
- ## Version 7.7.2 - 2024-03-08
754
-
755
- ### Added
756
-
757
- - `cds import` now has `beta` flag which can be used to import beta functionality in the CSN/CDS.
758
-
759
- ### Fixed
760
-
761
- - `cds deploy --to hana` environment entries from `--vcap-file` option now overwrite environment entries.
762
- - `cds add helm` `web-application` subchart now allows annotations to be added to the K8s services and `content-deployment` subchart now allows to set `imagePullPolicy`.
763
-
764
- ## Version 7.7.1 - 2024-03-01
765
-
766
- ### Fixed
767
-
768
- - `cds build` now allows the SaaS application base model to be located in a subfolder of the mtx extension project using npm workspace setup. Before, such a scenario caused duplicate model definitions.
769
- - `cds init` shows better error message if project name contains unsupported characters.
770
-
771
- ### Changed
772
-
773
- - `cds init` uses latest Maven Java archetype version 2.7.0 for creating Java projects.
774
-
775
- ## Version 7.7.0 - 2024-02-26
776
-
777
- ### Added
778
-
779
- - Schema support for declaring schema contributions in cds plugins.
780
- - `cds import` now supports `ref` in schema properties for AsyncAPI files.
781
- - `cds add html5-repo` is now supported for Cloud Foundry (beta).
782
-
783
- ### Changed
784
-
785
- - `cds add mta` will add `npm ci` to its `before-all` build scripts to make `mbt build` more self-contained.
786
-
787
- ### Fixed
788
-
789
- - `cds build` for MTX extensions no longer fails in case of duplicate model definitions.
790
- - `cds version -i` now prints the same versions in MD form as `cds version`
791
-
792
- ## Version 7.6.1 - 2024-02-14
793
-
794
- ### Changed
795
-
796
- - `cds login` now automatically discards invalid refresh tokens and retries instead of exiting with an error.
797
- - `cds login` now saves the passcode URL received from a failing token request and prints it along with the error and any subsequent passcode prompt.
798
- - `cds login` now hints at missing user role as the cause of an error, if applicable.
799
-
800
- ### Fixed
801
-
802
- - `cds import` now fixed the `AnnotationPath` attribute value import for Annotation in OData V4 EDMX correctly in the CSN.
803
- - `cds import` will now move the imported EDMX file to `srv/external` only if the import is successful.
804
- - `cds import` now captures the annotations present within EntityContainer for OData V4 EDMX in the CSN.
805
- - `cds deploy` allows usage of `SERVICE_REPLACEMENTS` without specifying `VCAP_SERVICES`.
806
- - `cds deploy` gives an error if its service key corresponds to a Service Manager instance.
807
-
808
- ## Version 7.6.0 - 2024-01-31
809
-
810
- ### Added
811
-
812
- - `cds add application-logging` is now supported for Java.
813
- - `cds add` and `cds init` help shows a more complete list of available commands.
814
- - `cds bind -2 <service-name>` automatically creates service key named `<service-name>-key` on Cloud Foundry.
815
- - `cds bind --to-app-services <app-name>` binds to all services of a deployed app.
816
- - `cds build` supports npm workspace setups (beta).
817
-
818
- ### Changed
819
-
820
- - Json schemas for `build` and `deploy` moved here from `@sap/cds`.
821
- - `cds build` plugins can provide additional json schemas, including root nodes (beta).
822
- - `cds add helm` doesn't expose srv workload in single tenant mode if approuter is present.
823
- - `cds add hana` also adds draft tables to the `undeploy.json`.
824
- - `cds build` uses existing `.npmrc` file from project root for the MTX sidecar build, precedence has `.npmrc` in sidecar folder.
825
- - `cds logout --clear-invalid` also deletes expired tokens.
826
- - `cds build` requires feature toggles to be switched-on in order to get the corresponding features generated.
827
-
828
- ### Fixed
829
-
830
- - `cds build` no longer throws `maximum call stack size exceeded` error when building SaaS extensions.
831
- - `cds add approuter` no longer adds `SUBSCRIPTION_URL` configuration to Java projects in some scenarios.
832
- - `cds add html5-repo` in combination with `cds add helm` or `cds add helm-unified-runtime` correctly adds HTML5 repo runtime configuration.
833
-
834
- ## Version 7.5.1 - 2024-01-09
835
-
836
- ### Changed
837
-
838
- - Bump of dependencies
839
- - MTXS commands will now use a request timeout to avoid hanging on invalid URLs.
840
- - Error messages for invalid URLs have been improved.
841
- - Reverting the fix from `7.5.0`: `cds compile` to `openapi` now adds correct schema `$ref` for patch operation.
842
-
843
- ## Version 7.5.0 - 2023-12-14
844
-
845
- ### Added
846
-
847
- - `cds add` plugin support (beta).
848
- - `cds compile` to `openapi` now creates readonly endpoints for entities annotated with `@cds.autoexpose(d)`.
849
- - `cds compile` to `openapi` now supports deepInsert and deepUpdate incase of entity property containing a composition.
850
- - `cds add liquibase` support for Java.
851
-
852
- ### Changed
853
-
854
- - `cds add application-logging` can now be used in place of `cds add kibana`. `cds add kibana` is deprecated.
855
- - `cds add application-logging` now uses the `standard` service plan in the `mta.yaml`, instead of `lite`.
856
- - `cds add application-logging` doesn't add the `cds.features.kibana_formatter` flag any more.
857
- - `cds v -i` will now insert a default placeholder if `repository` or `repository.url` is undefined in your `package.json`.
858
- - Use supported node versions in SAP HANA database modules.
859
- - `cds build` uses console.log to correctly format log output.
860
- - Retrofit `cds build` plugin register API.
861
- - `cds build` log output has been streamlined.
862
-
863
-
864
- ### Fixed
865
-
866
- - `cds add postgres` for Java now uses the `default` profile when called without the `--for` option.
867
- - `cds compile` to `openapi` now adds `title` and `description` from `@Core.Description` and `@Core.LongDescription` respectively to reduce duplicate descriptions.
868
- - `cds build --production` now loads cds plugins from `devDependencies`.
869
- - Less redundant messages on request errors.
870
- - Avoid empty error message when `cds push` fails.
871
- - Better type definitions for programmatic APIs provided by `cds-dk`.
872
- - Better error message if old `@sap/cds` versions <= 5 are used.
873
- - Calls from Yeoman generator are now handled correctly.
874
- - `cds compile` to `openapi` now adds correct schema `$ref` for patch operation.
875
-
876
- ## Version 7.4.1 - 2023-11-30
877
-
878
- ### Fixed
879
-
880
- - `semver` is bumped to version `^7` to mitigate [CVE-2022-25883](https://github.com/advisories/GHSA-c2qf-rxjj-qqgw)
881
-
882
- ### Changed
883
-
884
- - `cds push` uses the synchronous server API by default again due to stability problems. Use `--async` for the asynchronous call.
885
- - `cds add enterprise-messaging` will now correctly replace all `_` by `-`.
886
-
887
- ## Version 7.4.0 - 2023-11-14
888
-
889
- ### Changed
890
-
891
- - `cds build` plugins can now require their APIs directly from `@sap/cds` (instead of `@sap/cds-dk`).
892
- - `cds init` uses latest Maven Java archetype version 2.4.0 for creating Java projects.
893
-
894
- ### Added
895
-
896
- - `cds init` for Node.js now has `@cds-models` for `@cap-js/cds-typer` in its `.gitignore`.
897
- - `cds add local-messaging` is now supported for Node.js.
898
- - `cds add postgres` is now supported for Java.
899
- - `cds build` now supports the command line argument `--no-clean` (beta). Clients need to clean the output folder(s) manually for consistent build results.
900
- - `cds build` now supports the build task option `flavorLocalizedEdmx` to generate localized instead of non-localized edmx files for Java apps - default is `false`.
901
- - `cds subscribe`, `cds unsubscribe`, `cds upgrade` now also support the `--resolve-bindings` flag.
902
- - `cds build` now supports the command line argument `--ws` to enable tarball based packaging of npm workspace dependencies for Node.js apps. (beta)
903
- - `cds build` now supports SAP HANA schema evolution for draft tables.
904
-
905
- ### Fixed
906
-
907
- - `cds deploy --to hana --dry` now prints out the SAP HANA SQL files which will be deployed if `--dry` is not specified.
908
- - `cds build` no longer fails if multiple service protocols are configured in object notation.
909
- - `cds build` now uses configured compiler options when building Node.js projects.
910
- - `cds pull` when amending package.json applies the original indentation
911
- - `cds watch --profile hybrid` no longer produces a value `hybrid,hybrid` for `process.env.CDS_ENV`
912
- - `cds.schema` now loads lazily.
913
- - `cds init` does not print `cd` hint if creating a project in current folder.
914
-
915
- ### Removed
916
-
917
- - `cds repl` no longer loads `cds.plugins` on startup to keep `cds` lazy.
918
-
919
- ## Version 7.3.1 - 2023-10-19
920
-
921
- ### Changed
922
-
923
- - `cds watch --livereload` now reload the client w/o a server restart, so that for e.g. an `.html` file, a reload event is sent, but the server is not restarted. Previously, the two events were coupled.
924
- - `cds build` now provides a programmatic plugin API instead of the former configuration based one.
925
-
926
- ### Added
927
-
928
- - `cds build` supports the option `contentLocalizedEdmx` to enable/disable the generation of localized edmx files for Java apps - default is `true`.
929
- - `cds repl` now loads `cds.plugins` on startup.
930
- - `cds add enterprise-messaging-shared` also supports Kyma deployment.
931
- - `cds add notifications` adds configurations for notifications plugin.
932
-
933
- ### Fixed
934
-
935
- - `cds` commands will now respect the `NO_COLOR` environment variable.
936
- - `cds init` no longer adds comments to file `.vscode/launch.json`
937
- - `cds bind` prints correct command line recommendation to start spring-boot application
938
- - `cds compile` to `openapi` now generates correct query options with `$` prefix.
939
- - `cds build` no longer causes `duplicate assignment` compilation errors for specific feature toggle scenarios.
940
- - `cds watch` now loads missing service bindings when called from a directory other than cwd.
941
- - Multitenant `cds` commands now have any trailing slashes removed from app URLs, fixing certain request failures.
942
- - Multitenant `cds` commands now handle request errors more robustly.
943
- - `cds build` no longer fails for cds services supporting multiple protocols.
944
- - `cds build` uses the correct deployment folder for CSV files.
945
-
946
- ## Version 7.3.0 - 2023-10-06
947
-
948
- ### Changed
949
-
950
- - `cds login` now eagerly detects expired token and asks for a new passcode if applicable
951
- - `cds login` now presents the passcode URL as early as possible
952
- - `cds env` now requires `@sap/cds` >= 7.3 to resolve configuration contributed by cds plugins
953
- - `cds add connectivity` does not add `connectivity: true` to your `package.json` any more.
954
- - `cds watch` now ignores more files/folders: `app/(webapp|dist|target)`, `app/*/(webapp|dist|target)`, `tsconfig.json`, `*.tsbuildinfo`
955
- - `cds build` now uses `compile.to.hdbtable` if no migration tables exist.
956
- - `cds build` plugin API is refactored.
957
-
958
- ### Fixed
959
-
960
- - `cds login` now prints shorter errors (set `DEBUG=req` in env to see all details again).
961
- - Fixed issue when creating a CAP project in SAP Business Application Studio's template wizard.
962
- - `cds import` now handles name collision within a Schema for OData V4 EDMX.
963
- - `cds build` for mtx extension projects no longer creates CSN containing unresolved model associations.
964
- - `cds build` no longer creates new migration versions by mistake after schema evolution changes have been manually resolved.
965
- - `cds add approuter` creates the `xs-app.json` in the `app` folder again, instead of in `app/router`.
966
- - `cds watch` no longer restarts itself in an endless loop (happened in some Typescript scenarios on Windows)
967
-
968
- ### Added
969
-
970
- - `cds push` now uses the asynchronous server API by default. Use `--sync` for the synchronous one.
971
- - `cds activate` and `cds push` now support the `-2` shortcut for the `--to` option.
972
- - Improved error logging for failed HTTP requests.
973
- - `cds build` support for custom build plugins.
974
- - `cds compile` support for custom compile plugins.
975
- - `cds build` creates non-localized edmx files for the nodejs apps. Translations will be applied at runtime.
976
- - `cds.schema.overlay4` gets the cds default schema plus overlays from cds-dk.
977
- - `cds build` creates non-localized edmx files for the java apps. Translations will be applied at runtime.
978
- - `cds import` now introduces new option `--config` to add custom configuration data in the package.json.
979
- - `cds add helm` now adds `html5-apps-repo-runtime` binding for `approuter` if `html5-repo` is present.
980
- - (BETA) `cds add postgres` adds configuration for PostgreSQL. This requires `@cap-js/postgres` 1.3.0.
981
-
982
- ## Version 7.2.0 - 2023-09-04
983
-
984
- ### Fixed
985
-
986
- - `cds build` adds feature toggles to existing custom build task model options.
987
- - `cds import` adds the `kind` based on the type of the input file while updating the `package.json`.
988
-
989
- ### Added
990
-
991
- - `cds add h2` adds H2 configuration for Java projects.
992
- - `cds add sqlite` now has full support for Java projects.
993
- - `cds gen` creates models or data using a descriptive prompt (beta)
994
- - `cds bind` auto detects 'ias-auth' service bindings
995
- - `cds compile` to `openapi` now introduces new option `--odata-version` to add the OData version functionality to generate the OpenAPI document.
996
- - `cds add` comes with more templates/facets in the wizard of SAP Business Application Studio: approuter, XSUAA, Kibana logging, enterprise messaging, multinenancy, helm charts, and extended sample files.
997
-
998
- ### Changed
999
-
1000
- - `cds add approuter` creates the `xs-app.json` in a dedicated `app/router` folder, instead of in `app`.
1001
- - `cds add multitenancy` now sets up the `cds-feature-mt` dependency in your `pom.xml` for Java projects.
1002
- - `cds watch` ignores all frontend resources in `app/**/webapp/**`. Previously, only `app/**/(*.js|ts)` was ignored.
1003
-
1004
- ### Removed
1005
-
1006
- - `cds add auditlog` facet.
1007
-
1008
- ## Version 7.1.1 - 2023-08-10
1009
-
1010
- ### Fixed
1011
-
1012
- - When setting `CDS_CONFIG` from the command line, that value is no longer overridden by other env values. Setting `CDS_CONFIG` from the command line in combination with additional command line args, like `--odata`, is not supported at this point.
1013
- - Installing `@sap/cds-dk` now produces a shrinkwrapped layout again if used against NPM registries like Artifactory that don't serve the `_hasShrinkwrap` option.
1014
- - `cds import` for OData V4 EDMX imports `Edm.Decimal` data type considering `Precision` and `Scale` facet correctly.
1015
- - `cds import` for OData V4 EDMX imports `DefaultValue="0"` in CSN.
1016
-
1017
- ### Changed
1018
-
1019
- - `cds init` uses latest Maven Java archetype version 2.1.0 for creating Java projects.
1020
- - `cds build` correctly logs build messages based on their severity.
1021
- - `cds build` creates OData EDMX for configured fiori build tasks.
1022
-
1023
- ## Version 7.1.0 - 2023-07-31
1024
-
1025
- ### Fixed
1026
-
1027
- - Calls from Business Application Studio `New Project from Template` wizard are now handled correctly.
1028
- - `cds add cf-manifest` correctly generates the XSUAA instance name.
1029
- - `cds build` always uses the configured HANA build task when building the MTX sidecar.
1030
- - `cds import` OData V4 EDMX fix for Annotation Alias and Namespace value replacement.
1031
-
1032
- ### Changed
1033
-
1034
- - `cds build` now fails if HANA schema evolution changes exist that need to be manually resolved.
1035
- - `cds build` now throws an error for Java apps using the mtx build task in combination with `@sap/cds-dk` version >= 7.
1036
- - `cds import` now supports OData V4 EDMX file with empty or missing `EntityContainer`.
1037
-
1038
- ## Version 7.0.3 - 2023-07-21
1039
-
1040
- ### Fixed
1041
-
1042
- - `cds deploy` writes settings under profile `hybrid` as default in `.cdsrc-private.json`
1043
- - `cds add sample` uses default `/odata/v4/` service paths and data source paths in UI5 `manifest.json` files.
1044
- - When a request fails, shorter errors are printed and secret data is hidden. (Set `DEBUG=req` in env to see all details again.)
1045
- - Now shows all commands when a given command on the command line is not found
1046
- - `cds import --from edmx` fixes rendering of nested annotations in the CSN.
1047
-
1048
- ### Changed
1049
-
1050
- - `cds add` adheres to existing indentation style when changing JSON files.
1051
- - `cds add typer` no longer adds `checkJs: true` to your configuration.
1052
- - `cds init` uses latest Maven Java archetype version 2.0.2 for creating Java projects.
1053
- - `cds build` now throws an error if MTX sidecar and application db configuration is inconsistent.
1054
- - `cds watch --open` now delays the opening of the URL by 1s to allow the server to start up. This is needed for plugins that register routes asynchronously.
1055
-
1056
- ## Version 7.0.2 - 2023-07-06
1057
-
1058
- ### Changed
1059
-
1060
- - `cds add kibana-logging` is (compatibly) renamed to `cds add kibana`.
1061
-
1062
- ### Fixed
1063
-
1064
- - `cds` commands do not swallow error stack traces in some cases any more.
1065
- - `cds watch` does not swallow compiler errors in some cases any more.
1066
- - `cds add sample` has modernized configuration for Fiori-related files in the `app` folder.
1067
- - `cds add sample` now also contains a read-only service for browsing books.
1068
- - `cds add kibana-logging` now also adds the logging service to the MTX sidecar and approuter, if available.
1069
- - `cds build` preferably creates i18n bundle at default location `_i18n` for custom i18n folder configurations.
1070
- - `cds watch` no longer fails if `@sap/cds-dk` is installed as dependency along with `cds-swagger-ui-express`.
1071
- - `cds build` ensures that `@sap/cds` version >= 6 is installed.
1072
-
1073
- ## Version 7.0.1 - 2023-06-30
1074
-
1075
- ### Changed
1076
-
1077
- - `cds add` has a slightly revamped CLI UX.
1078
- - `cds init` and `cds add sqlite` add the new package `@cap-js/sqlite`, which uses `better-sqlite` instead of `sqlite3`.
1079
- - `cds add sample-tiny` is (compatibly) renamed to `cds add tiny-sample`.
1080
-
1081
- ### Fixed
1082
-
1083
- - `cds import --from asyncapi` now maps `@topic` annotation to the event key.
1084
- - `cds build` now copies the contents of MTX sidecar subfolders to the deployment layout.
1085
- - `cds compile --to xsuaa` can be used again if `@sap/cds` 6 is installed.
1086
- - `cds env` output is again JSON in non-interactive terminals. This restores the behavior from `@sap/cds-dk` 6.
1087
-
1088
- ## Version 7.0.0 - 2023-06-22
1089
-
1090
- ### Added
1091
-
1092
- - `cds add connectivity` now supports MTA-based deployment.
1093
- - `cds add destination` now supports MTA-based deployment.
1094
- - `cds add enterprise-messaging` creates scopes for `emcallback` and `emmanagement` in the `xs-security.json` if XSUAA is enabled.
1095
- - `cds add hana` adds the new package `@sap/cds-hana` instead of the direct `hdb` dependency.
1096
- - `cds add mta` writes an `event-mesh.json` if the Event Mesh is set up.
1097
- - `cds add typer` adds type generation support for projects using the Node runtime.
1098
- - `cds add sample` creates a bookshop application incl. Fiori UI.
1099
- - `cds add samples` is deprecated. Use `cds add tiny-sample` instead.
1100
- - `cds env` supports new options `--keys`, `--list`, `-json`, and `--raw`. See `cds env ?` for details.
1101
- - `cds import --from asyncapi` now adds `@topic` annotation for specifying the channel name for the event.
1102
- - `cds import --from asyncapi` now updates the `package.json` for multiple services.
1103
- - `cds init --add java` prints a more specific error message when not using Java 17 in SAP Business Application Studio.
1104
- - New property `cds.cli` allows reflecting on the CLI command and arguments.
1105
-
1106
- ### Changed
1107
-
1108
- - `--production` as a global flag now sets `CDS_ENV` to `production` instead of `NODE_ENV`.
1109
- - `cds add typer` is now allowed to be used, even if the runtime considers the project to be of Java nature.
1110
- - `cds add typer` now generates to `@cds-models`, which will also be `.gitignore`d by the facet.
1111
- - `cds add typer` now properly handles TypeScript projects, if possible.
1112
- - `cds add connectivity` now supports MTA-based deployment.
1113
- - `cds add data --for` is dropped in favor of `--data:for`.
1114
- - `cds add destinations` is renamed to `cds add destination`.
1115
- - `cds add enterprise-messaging` changes the default for the `topicRules.publish-filter` to `${namespace}/*`.
1116
- - `cds add enterprise-messaging` uses a more unique default (`default/<app-name>/1`) as its `namespace`.
1117
- - `cds add hana` uses a plain `cds.requires.db = 'hana'`, also for multitenancy scenarios.
1118
- - `cds bind` parameter `--for` replaces `--profile` to specify the profile to store connection information in `.cdsrc-private.json`; `cds bind --exec` still uses `--profile`.
1119
- - `cds build` moved to `@sap/cds-dk`.
1120
- - `cds build` no longer supports `@sap/cds-mtx`. Migrate to `@sap/cds-mtxs`, see https://cap.cloud.sap/docs/guides/multitenancy/old-mtx-migration.
1121
- - `cds build` no longer supports the classic CAP Java runtime. Migrate to the current CAP Java runtime SDK, see https://cap.cloud.sap/docs/java/migration.
1122
- - `cds deploy` moved to `@sap/cds-dk`.
1123
- - `cds deploy` now supports `--for` to specify the profile to store connection information in `.cdsrc-private.json`.
1124
- - `cds deploy` parameter `--no-save` is default.
1125
- - `cds import --from asyncapi` now takes event name from key `name` in the message.
1126
- - `cds init` uses latest Maven Java archetype version `2.0.1` for creating Java projects. This also requires Java 17 or higher.
1127
- - `cds watch` and `cds run` don't display stack traces any more if no models are found.
1128
- - `cds login` (and other commands implicitly logging in) now use the POST method to transmit credentials to @sap/cds-mtxs.
1129
-
1130
- ### Fixed
1131
-
1132
- - `cds add mta` now correctly generates the `mta.yaml` following a `cds add enterprise-messaging-shared`.
1133
- - `cds add typer` now correctly defaults to `…/cds-models`, instead of `…/cds-modules` as output path for generated types.
1134
- - `cds build` ignores invalid entries in an `undeploy.json` file.
1135
- - `cds build` now correctly copies CAP Node.js service handler implementations contained in different service modules. The service handlers will now be loaded correctly in local as well as in cloud deployment scenarios.
1136
- - `cds build` now correctly copies JavaScript files located in nested folders of a Node.js app into the deployment folder.
1137
- - `cds build` now correctly resolves model files of complex mtx extension projects.
1138
- - `cds build` now correctly supports shortcut options
1139
- - `cds-ts watch` no longer fails with strange compilation errors if called in combination w/ `ts-node`.
1140
- - `cds login` no longer echoes output from an NPM subprocess.
1141
- - `cds build` now creates the correct deployment layout for Node.js applications.
1142
-
1143
- ## Version 6.8.3 - 2023-06-15
1144
-
1145
- ### Fixed
1146
-
1147
- - `@sap/cds` 6.8.4
1148
- - `@sap/cds-compiler` 3.9.4
1149
-
1150
- ## Version 6.8.2 - 2023-05-31
1151
-
1152
- ### Changed
1153
-
1154
- - `cds compile` to `openapi` now uses `@Common.Label` annotation to generate `x-sap-shortText`.
1155
- - `cds import` now removes `x-` from elements in the `@AsyncAPI.Extensions` annotation while importing AsyncAPI documents.
1156
- - `cds compile` to `openapi` now sorts the `tags` and `paths` in alphabetical order.
1157
- - The livereload feature of `cds watch` can be disabled through `cds.livereload: false` in `package.json`.
1158
-
1159
- ### Fixed
1160
-
1161
- - `@sap/cds-dk` 6.8.2
1162
- - `@sap/cds-mtxs` 1.8.2
1163
- - `cds add mta` adds configuration `enterprise-messaging-shared` if necessary
1164
-
1165
- ## Version 6.8.1 - 2023-05-10
1166
-
1167
- ### Fixed
1168
-
1169
- - `cds-ts watch` no longer fails with strange compilation errors if called in combination w/ `ts-node`
1170
-
1171
- ## Version 6.8.0 - 2023-05-04
1172
-
1173
- ### Added
1174
-
1175
- - `cds add file-based-messaging` adds configuration for file-based messaging (Node.js).
1176
- - `cds add redis-messaging` adds configuration for Redis messaging (Node.js).
1177
- - `cds add enterprise-messaging-shared` adds configuration for Event Mesh support with `kind = 'enterprise-messaging-shared'` (Node.js).
1178
- - `cds import` now supports OData V4 EDMX file containing multiple `Schemas` with single `EntityContainer`.
1179
- - `cds import` now supports importing of AsyncAPI documents.
1180
- - `cds login -m <clientid>[:<key>]` now supports X.509 (mTLS) credential-type in XSUAA binding of @sap/cds-mtxs.
1181
-
1182
- ### Changed
1183
-
1184
- - `cds init` uses latest Maven Java archetype version 1.34.0 for creating Java projects.
1185
-
1186
-
1187
- ### Fixed
1188
-
1189
- - `cds-ts watch` now honors a `tsconfig.json` in the project
1190
- - launch script for `CAP projects` in VS Code fixed
1191
-
1192
- ## Version 6.7.2 - 2023-04-27
1193
-
1194
- ### Added
1195
-
1196
- - Added option `--skip-verification` to command `cds migrate`. It skips the extension verification to save memory. Requires `@sap/cds-mtxs@1.7.3`.
1197
-
1198
- ### Fixed
1199
-
1200
- - Swagger UI no longer fails with an error `Value of 'namespaceAndName' parameter must be in the following format: <namespace>.<name>`
1201
-
1202
- ## Version 6.7.1 - 2023-04-19
1203
-
1204
- ### Changed
1205
-
1206
- - `cds init` uses latest Maven Java archetype version 1.33.1 for creating Java projects.
1207
- - Bump `@sap/cds` to 6.7.1
1208
- - Bump `@sap/cds-mtxs` to 1.7.2
1209
-
1210
- ### Fixed
1211
-
1212
- - Compatibility with @sap/cds versions >= 4.5 and < 6.2: avoid runtime errors with debugging disabled.
1213
-
1214
- ## Version 6.7.0 - 2023-03-28
1215
-
1216
- ### Added
1217
-
1218
- - `cds upgrade` enables upgrading a tenant subscribed to a multitenant SaaS app to the latest base model.
1219
-
1220
- ### Changed
1221
-
1222
- - `cds env --for` is now used to specify profiles; before it specified project paths, but never worked correctly.
1223
- - `cds add data` now uses comma as CSV separator by default instead of semicolon. This allows using GitHub tabular display.
1224
- - `cds add approuter` doesn't create entries for `authenticationMethod` and `authenticationType` any more, but uses the equivalent `@sap/approuter` defaults.
1225
- - `cds add multitenancy` will now create a sidecar MTX project for Node.js as well.
1226
- - `cds subscribe` and `cds unsubscribe` no longer require a username in case @sap/cds-mtxs is configured with dummy auth.
1227
- - `cds subscribe` and `cds unsubscribe` now rely on @sap/cds-mtxs (version 1.7.0 or higher).
1228
-
1229
- ### Fixed
1230
-
1231
- - `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.
1232
- - In all but `cds compile` errors where not handled correctly, especially compiler errors not displayed in human readable format.
1233
- - `cds init` creates project sample files correctly.
1234
- - CLI commands w/ unknown arguments (`cds --foo`) clearly fail again with a proper error message
1235
- - Reduce console output in case of multitenancy-related command failures.
1236
-
1237
- ## Version 6.6.2 - 2023-03-22
1238
-
1239
- ### Fixed
1240
-
1241
- - Bump `sqlite3` to 5.1.6
1242
- - Bump `@sap/cds` to 6.2.2
1243
- - `cds init` creates project sample files correctly.
1244
-
1245
- ## Version 6.6.1 - 2023-03-09
1246
-
1247
- ### Added
1248
-
1249
- - `cds compile --to openapi` now adds extension validation keywords `x-sap-precision` and `x-sap-scale` for decimal values.
1250
-
1251
- ### Fixed
1252
-
1253
- - `cds add helm` fixed html5 cloud service is now read properly.
1254
- - `cds import` now flattens the `@Capabilities` annotation in the CSN for OData V4 files.
1255
- - `cds import` for OData V4 files now captures the `EnumTypes` information in the CSN according to `UnderlyingType`.
1256
- - `cds import` now captures the `@Common.Text` annotation value properly in the CSN for OData V4 files.
1257
- - `cds init --add java` now uses local Java version when creating new Java project.
1258
- - `cds watch` terminates properly in case livereload websocket clients are connected
1259
- - `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`)
1260
-
1261
- ## Version 6.6.0 - 2023-02-28
1262
-
1263
- ### Added
1264
-
1265
- - `cds compile` added a new target format `asyncapi` to convert CDS models to AsyncAPI documents.
1266
- - `cds pull` now hints at base-model name for `using` statement.
1267
-
1268
- ### Changed
1269
-
1270
- - `cds env` now allows inspecting entries with optional `get` command. E.g. `cds env requires.db`.
1271
- - `cds add multitenancy` now uses async SaaS Provisioning Service onboarding by default.
1272
- - `cds add multitenancy` for Java will now add `sqlite3` to `devDependencies` in the sidecar `package.json`.
1273
- - `cds add extensibility` now works for Java projects out-of-the-box.
1274
- - `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`.
1275
- - `cds add helm` connectivity service instance is no longer created.
1276
- - `cds init` uses latest Maven Java archetype version 1.32.0 for creating Java projects.
1277
-
1278
- ### Fixed
1279
-
1280
- - `cds unsubscribe --from` flag now recognized
1281
- - `cds import` now adds `cds.Boolean` as dummy return type if `ReturnType` for `FunctionImport` is missing in the OData V2 edmx.
1282
- - `cds import` resolves the `$Cast` construct in the CSN for OData V4 files.
1283
- - `cds lint` now reports like ESLint in case of missing plugin `@sap/eslint-plugin-cds`
1284
-
1285
- ## Version 6.5.2 - 2023-02-10
1286
-
1287
- ### Changed
1288
-
1289
- - New versions of `@sap/cds-mtxs` and `@sap/cds-compiler`
1290
- - `cds init` uses latest Maven Java archetype version 1.31.1 for creating Java projects.
1291
-
1292
- ### Fixed
1293
-
1294
- - `cds migrate` no longer fails because of authorization error
1295
-
1296
- ## Version 6.5.1 - 2023-02-06
1297
-
1298
- ### Changed
1299
-
1300
- - `cds init` uses latest Maven Java archetype version 1.31.0 for creating Java projects.
1301
-
1302
- ### Fixed
1303
-
1304
- - `cds deploy` no longer fails to write to a `package.json` file that has no `cds` section
1305
-
1306
- ## Version 6.5.0 - 2023-01-27
1307
-
1308
- ### Added
1309
-
1310
- - `cds run/serve/migrate --resolve-bindings` now pulls required service credentials if bound via `cds bind`. (beta)
1311
- - `cds add helm` now supports multitenancy.
1312
- - `cds bind` now supports binding of `user-provided service instances` from Cloud Foundry.
1313
-
1314
- ### Changed
1315
-
1316
- - `cds push` now runs a build of the extension project to update the pushed extension archive (unless custom archive given).
1317
- - `cds init` and `cds bind` no longer use a spinner when performing long running operations.
1318
-
1319
- ### Fixed
1320
-
1321
- - `cds import` now generates flattened value for `@Common.FieldControl` annotation in the CSN for OData V4 files.
1322
- - `cds import` now treates `CollectionKind` property attribute in OData V2 similar to `Collection(<data_type>)` in OData V4.
1323
-
1324
- ## Version 6.4.1 - 2022-01-17
1325
-
1326
- ### Fixed
1327
-
1328
- - `cds deploy -2 sqlite` now preserves the `schema_evolution` setting in the `package.json`.
1329
- - `cds import` bug fix for OData V4 import crash.
1330
-
1331
- ### Changed
1332
-
1333
- ## Version 6.4.0 - 2022-12-15
1334
-
1335
- ### Added
1336
-
1337
- - `cds add helm` now supports approuter.
1338
- - `cds subscribe --local` starts `@sap/cds-mtxs` locally instead of contacting a running instance via URL.
1339
- - `cds unsubscribe` removes the subscription of a tenant from a SaaS app.
1340
-
1341
- ### Changed
1342
-
1343
- - `cds add multitenancy` will not compile internal roles into the `xs-security.json` any more.
1344
- - `cds add hana` does not create a `hdi-service-name: ${service-name}` for the database resource properties any more.
1345
- - MTX-related commands now print usage help in case of known errors.
1346
- - `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`.
1347
- - `cds import` now adds default value in the CSN for the optional parameters in action/function for OData V4 files.
1348
- - `cds init` uses latest Maven Java archetype version 1.30.0 for creating Java projects.
1349
-
1350
- ### Fixed
1351
-
1352
- - `cds init` no longer creates `engines` entry in package.json to avoid `unsupported engine` warnings.
1353
- - `cds subscribe` correctly exits the process after deploying to a HANA database.
1354
- - `cds add multitenancy` doesn't create a duplicate `saas-registry` resource if there's one with `service-plan: service` any more.
1355
- - `cds bind` now correctly maps the `hana-mt` and `sql-mt` shortcuts to the `cds.requires.db` entry.
1356
- - `cds add mtx` no longer fails if the `mtx/sidecar` folder doesn't exist.
1357
- - `cds compile --to xsuaa` now rejects expressions leading to invalid XSUAA attributes like `$user.foo-bar`, `$user.foo/bar`, `$user.foo.bar`
1358
- - `cds compile --to xsuaa -o <file>` now sets `.json` as file ending instead of `.xsuaa`
1359
-
1360
- ## Version 6.3.2 - 2022-11-28
1361
-
1362
- ### Changed
1363
-
1364
- - Include `@sap/cds` 6.3.2
1365
- - Include `@sap/cds-compiler` 3.4.4
1366
- - Include `@sap/cds-mtxs` 1.3.2
1367
-
1368
- ## Version 6.3.1 - 2022-11-04
1369
-
1370
- ### Changed
1371
-
1372
- - `cds init` uses latest Maven Java archetype version 1.29.0 for creating Java projects.
1373
- - Use `@sap/cds` 6.3.1
1374
- - Use `@sap/cds-mtxs` 1.3.1
1375
-
1376
- ## Version 6.3.0 - 2022-11-02
1377
-
1378
- ### Added
1379
-
1380
- - `cds deploy --to h2 --dry` to create drop/create DDL for H2. Full deployment (w/o `--dry`) is not yet supported, though.
1381
- - `cds push <file>|<URL>` to specify a custom extension archive by local path or download URL.
1382
-
1383
- ### Changed
1384
-
1385
- - `cds add` support for classic Java projects is now removed.
1386
- - `cds import` now adds the annotation `@cds.external` for all the definitions in the CSN along with the service.
1387
- - `cds import` now adds `notNull` entry for all the parameters and properties in the CSN.
1388
- - MTX Client now trims a passcode entered via prompt for convenience when pasting
1389
-
1390
- ### Fixed
1391
-
1392
- - MTX Client now ignores a username potentially saved for the current project, if a passcode is given
1393
- - MTX Client now treats keytar as optional unless explicitly running `cds login`
1394
- - `cds import` now captures the documentation properly for all the EntitySet referring to same EntityType.
1395
- - `cds deploy --to sql` now produces 'plain' SQL again, suitable for e.g. H2. In 6.2 it produced 'sqlite' dialect, erroneously.
1396
- - `cds compile --to openapi` now fixes the duplication of fields in `required` section.
1397
- - `cds lint` now recognizes ESLint configurations from _package.json_.
1398
-
1399
-
1400
- ## Version 6.2.3 - 2022-10-21
1401
-
1402
- ### Changed
1403
-
1404
- - Use `@sap/cds` 6.2.3
1405
- - Use `@sap/hdi-deploy` 4.5.0, which brings support for Node 18
1406
-
1407
- ### Fixed
1408
-
1409
- - `cds mock` now prefers a local `@sap/cds` installation, like other `cds` commands as well.
1410
-
1411
- ## Version 6.2.2 - 2022-10-13
1412
-
1413
- ### Added
1414
-
1415
- - `cds deploy --to postgres --dry` to create drop/create DDL for PostgreSQL. Full deployment (w/o `--dry`) is not yet supported, though.
1416
-
1417
- ### Fixed
1418
-
1419
- - `cds deploy --to sql` now honors the `cds.sql.dialect` configuration to specify SQL dialects like `postgres`.
1420
-
1421
- ### Removed
1422
- - `cds add notebook` removed in favor of custom notebooks in VS Code (now part of the CDS Editor)
1423
-
1424
- ## Version 6.2.1 - 2022-10-10
1425
-
1426
- ### Fixed
1427
-
1428
- - Installation errors with unresolvable `@sap/hdi` 4.4.0 are fixed.
1429
-
1430
- ## Version 6.2.0 - 2022-10-07
1431
-
1432
- ### Added
1433
-
1434
- - `cds import` now imports Singleton entities for OData V4 files.
1435
- - `cds deploy` now supports the new default`.sqlite` file ending
1436
- - `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.
1437
- - `cds import` now supports enum types for OData V4
1438
- - `cds add enterprise-messaging` can be now be used to set up configuration and deployment descriptors for SAP Event Mesh.
1439
- - `cds add` now throws an error if no facet is passed.
1440
- - `cds watch` now also considers more files from SAP Fiori (`change,variant,ctrl_variant,ctrl_variant_change,ctrl_variant_management_change`)
1441
-
1442
- ### Changed
1443
-
1444
- - `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.
1445
- - `cds pull` requires `@sap/cds` 6.2 or higher
1446
-
1447
- ### Fixed
1448
-
1449
- - `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.
1450
- - `cds import` now adds the annotation `@odata.Precision` entry only if precision > 0 for Edm.DateTime and Edm.DateTimeOffset.
1451
- - `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.
1452
- - `.sqlite` files are now git-ignored in new projects created with `cds init`
1453
- - `cds compile --to openapi` now fixes the issue of failing range assertions for an element having undefined maximum and minimum range values.
1454
- - `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.
1455
-
1456
- ## Version 6.1.5 - 2022-09-13
1457
-
1458
- ### Fixed
1459
-
1460
- - `cds build` no longer erroneously warns about old `@sap/cds` versions. Previously, it warned about `@sap/cds` 4 although a newer version was installed.
1461
-
1462
- ## Version 6.1.4 - 2022-09-09
1463
-
1464
- ### Fixed
1465
-
1466
- - `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.
1467
-
1468
- ## Version 6.1.3 - 2022-09-06
1469
-
1470
- ### Fixed
1471
-
1472
- - `cds import` now gives higher precedence to complex type in case of name collision with actions or functions.
1473
- - `cds extend` and other commands no longer fail with `TypeError: Class constructor CliError cannot be invoked without 'new'`
1474
-
1475
- ## Version 6.1.2 - 2022-08-25
1476
-
1477
- ### Changed
1478
- - `cds init` uses latest Maven Java archetype version 1.27.1 for creating Java projects.
1479
-
1480
- ### Fixed
1481
- - `cds add helm` fixed JSON Schema for `srv` property in values.yaml
1482
- - `cds add helm` fixed env property errors for `hana_deployer` and `html5_apps_deployer`
1483
- - `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`
1484
- - `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.
1485
- - Remove redundant `console.log()` statement in `cds lint`
1486
- - `cds push` now shows complete error messages from extension validation
1487
- - `cds push` and related commands now show properly formatted error messages and also fail with a non-zero exit code in error situations
1488
-
1489
- ## Version 6.1.1 - 2022-08-11
1490
-
1491
- ### Added
1492
-
1493
- - `cds import` now supports OData and SAP annotations for OData V4 imports.
1494
- - `cds compile --to openapi` defines operation-specific HTTP error response status codes with descriptions via `ErrorResponses` property of certain annotations.
1495
- - `cds compile --to openapi` now supports `--openapi:servers` option.
1496
- - `cds add multitenancy` will add feature multitenancy-specific configuration, without extensibility.
1497
- - `cds add toggles` will add feature toggle-specific configuration.
1498
- - `cds add extensibility` will add configuration for project extensibility.
1499
- - `cds add helm` now supports resource configuration for HANA deployment job and HTML5 app deployment job.
1500
- - `cds add helm` added JSON Schema for values.yaml
1501
- - `cds pull` will download the current CDS model of an extended SaaS app running with @sap/cds-mtxs.
1502
- - `cds push` will upload an extension to a SaaS app running with @sap/cds-mtxs.
1503
-
1504
- ### Changed
1505
-
1506
- - `cds add helm` updated default resource requirements for both `java` and `nodejs` projects.
1507
- - `cds add helm` uses servicebinding.io bindings for CAP Java services, HANA and HTML5 app deployment jobs.
1508
- - `cds compile --to openapi` creates only component schemas for schemas referenced in operations and in other schemas.
1509
- - `cds import` switch from `@openapi.schema` to `@JSON.Schema`.
1510
- - `cds add mtx` will now add configuration for streamlined MTX. It effectively acts as a shortcut for `cds add multitenancy,toggles,extensibility`
1511
- - `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`.
1512
- - `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.
1513
- - `cds add lint:dev` updated to adjust to new api structure of `@sap/eslint-plugin-cds` v2.5.0
1514
- - `cds init` uses latest Maven Java archetype version 1.27.0 for creating Java projects.
1515
- - `cds login localhost:<port> -u <username>` now saves username (and empty password, if applicable) with project settings for convenience.
1516
- - `cds add` error handling is improved and will give suggestions if you make a typo.
1517
-
1518
- ### Fixed
1519
-
1520
- - `cds add helm:connectivity`: `connectivity.configMapName` was not used for the `connectivity-proxy-info`.
1521
- - `cds import` replaced occurrences of `\\` with `/` in the `package.json` for Linux platforms.
1522
- - `cds import` fixed `@Core.Description` and `doc` property duplication.
1523
- - `cds extend` and `cds activate` no longer save any data (this is reserved to `cds login`).
1524
- - Extensibility commands now add http (not https) to local app URLs without schema.
1525
- - Extensibility commands don't query CF any longer when run against local apps.
1526
-
1527
- ## Version 6.0.4 - 2022-08-02
1528
-
1529
- ### Changed
1530
-
1531
- - `cds init` uses latest Maven Java archetype version 1.26.1 for creating Java projects.
1532
- - Use `@sap/cds` 6.0.4
1533
- - `cds bind` handles orgs and spaces containing commas correctly.
1534
-
1535
- ## Version 6.0.3 - 2022-07-14
1536
-
1537
- ### Changed
1538
-
1539
- - `cds init` uses latest Maven Java archetype version 1.26.0 for creating Java projects.
1540
- - `cds init` now creates Node.js projects with version 6 of `@sap/cds`
1541
-
1542
- ### Fixed
1543
-
1544
- - `--vap-file` parameter of `cds deploy` is available again (removed in 6.0.0)
1545
- - `cds add helm:connectivity`: `connectivity.configMapName` was not used for the `connectivity-proxy-info`.
1546
- - `--vcap-file` parameter of `cds deploy` is available again (removed in 6.0.0)
1547
- - `cds add helm:connectivity`: `connectivity.configMapName` was not used for the `connectivity-proxy-info`.
1548
- - `cds add helm:connectivity`: Environment variables added for connectivity service for Java.
1549
- - `cds add helm`: Generation of `xs-security.json` file works on Windows now (`cds compile srv -2 xsuaa` command failed).
1550
-
1551
-
1552
- ## Version 6.0.2 - 2022-07-06
1553
-
1554
- ### Changed
1555
-
1556
- - Use `@sap/cds` 6.0.2
1557
-
1558
- ## Version 6.0.1 - 2022-07-05
1559
-
1560
- ### Changed
1561
-
1562
- - 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`.
1563
-
1564
- ### Fixed
1565
-
1566
- - `cds bind` api endpoint regex for cli now ignores trailing version info in url
1567
-
1568
- ## Version 6.0.0 - 2022-07-01
1569
-
1570
- ### Added
1571
-
1572
- - `cds import` now supports importing external openapi specification file into CSN.
1573
- - `cds import` now supports the `--from` option to specify the protocol for importing an external file.
1574
- - `cds import` can be programmatically accessed using APIs `cds.import()`, `cds.import.from.edmx()` and `cds.import.from.openapi()`.
1575
- - `cds compile --to openapi` allows describing custom headers and custom query options.
1576
- - `cds import` now supports `HasStream="true"` for both OData V4 and V2.
1577
- - `cds compile --to openapi` now adds properties with `@mandatory` to the required field.
1578
- - Added a link to VS Code CAP Notebooks documentation to `cds init --add notebooks` and `cds add notebooks`.
1579
-
1580
- ### Changed
1581
-
1582
- - `cds import` now uses `@odata.Type` and `@odata.Precision` for edm to cds type mapping.
1583
- - `cds compile --to openapi` now has better description for `$expand` query option.
1584
- - The original package `sqlite3` is now used again in its latest version.
1585
- - `cds import` now deprecated `cds.DecimalFloat` type.
1586
- - `cds import` now allows OData version 4.01 edmx files and supports `Scale="floating"`.
1587
- - `cds import` now adds `@odata.Type` annotation for `Edm.Byte` and `Edm.SByte`.
1588
- - `cds import` now has improved tests to check `--as`option with `force` flag file overwriting.
1589
- - `cds init` uses latest Maven Java archetype version 1.25.0 for creating Java projects.
1590
- - `cds import` now imports edmx file without any entities containing only unbounded action/function.
1591
- - `cds import` API now supports includeNamespaces option.
1592
- - `cds compile --to openapi` now adds `format`, `multipleOf`, `maximum` and `minimum` to anyOf.
1593
- - `cds import` will now mark an association as a composition when `OnDelete Action="Cascade"` is present.
1594
- - `cds import` has deprecated `--into` option.
1595
- - `cds bind` reads Cloud Foundry file `config.json` to get org and space information.
1596
- - `cds deploy` now stores connection information without credentials by default in `.cdsrc-private.json`.
1597
- - `cds deploy` has a new option `--store-credentials` to enforce the former behavior of storing credentials in `default-env.json`.
1598
- - If a `@sap/cds` is installed locally in a project, it must be version 4 or higher for CLI commands to run.
1599
- - `cds import` now doesn't trim the bound action/function name in the csn if the format of the name is A_B.
1600
- - `@sap/cds` version 6 is now required in new projects added by `cds init` and `cds add`.
1601
-
1602
- ### Fixed
1603
-
1604
- - `cds add html5-repo` and `cds add destinations` throw an error if applied for MTA deployments, for which they are currently unsupported.
1605
- - `cds compile --to openapi` fixes annotations on bound action overloads.
1606
- - `cds add cf-manifest` now uses the correct `application` plan for the `xsuaa` service
1607
- - A combination of `cds add approuter`, `cds add mtx`, and `cds add mta` will now use a safer approach to determine the subscription URL.
1608
- - `cds init` and `cds add` output the feature names correctly in case the names contain a dash
1609
- - `cds compile --to openapi` fix for type error when entity/action is not specified in the service definition.
1610
- - `cds import` API fix for race condition issue.
1611
- - `cds somecdsfile --profile ...` (without the `compile` command) no longer ignores the given profile
1612
- - `cds watch` got more robust against unlucky timing and no longer runs into port conflicts
1613
-
1614
-
1615
- ## Version 4.9.7 - 2022-06-08
1616
-
1617
- ### Changed
1618
-
1619
- - Update `@sap/xsenv` to 3.3.1
1620
-
1621
- ## Version 4.9.6 - 2022-06-08
1622
-
1623
- ### Changed
1624
-
1625
- - Include `@sap/cds` 5.9.6
1626
-
1627
- ### Fixed
1628
-
1629
- - `cds login` (and `cds extend`, `cds activate` if previously logged in) now properly renew token URL
1630
- - Improved logging during those commands
1631
-
1632
- ## Version 4.9.5 - 2022-05-17
1633
-
1634
- ### Changed
1635
-
1636
- - Include `@sap/cds` 5.9.5
1637
- - Include `@sap/cds-compiler` 2.15.2
1638
-
1639
- ### Fixed
1640
-
1641
- - `cds init` uses latest Maven Java archetype version 1.24.0 for creating Java projects.
1642
-
1643
- ## Version 4.9.4 - 2022-05-09
1644
-
1645
- ### Changed
1646
-
1647
- - Include `@sap/cds` 5.9.4
1648
- - Bump `axios` to latest (CVE-2022-1214)
1649
-
1650
- ## Version 4.9.3 - 2022-04-27
1651
-
1652
- ### Changed
1653
-
1654
- - `cds init` uses latest Maven Java archetype version 1.23.1 for creating Java projects.
1655
- - Include `@sap/cds` 5.9.3
1656
-
1657
- ### Fixed
1658
-
1659
- - `cds add cf-manifest` now uses the correct `application` plan for the `xsuaa` service
1660
- - `cds login`, `cds activate`: correctly include response in auth errors
1661
- - The SAP HANA and MTA options in the project wizard in BAS now work again
1662
-
1663
- ## Version 4.9.2 - 2022-04-11
1664
-
1665
- ### Changed
1666
-
1667
- - Include `moment` 2.29.2, fixing CVE-2022-24785
1668
- - Include `@sap/cds` 5.9.2
1669
- - Include `@sap/eslint-plugin` 2.3.5
1670
-
1671
- ## Version 4.9.1 - 2022-04-01
1672
-
1673
- ### Changed
1674
-
1675
- - `cds init` uses latest Maven Java archetype version 1.23.0 for creating Java projects.
1676
- - Include `@sap/cds` 5.9.1
1677
- - Include `@sap/cds-compiler` 2.13.8
1678
- - Include `@sap/eslint-plugin` 2.3.4
1679
-
1680
- ## Version 4.9.0 - 2022-03-28
1681
-
1682
- ### Added
1683
-
1684
- - `cds parse` as convenient shortcut to `cds compile --flavor parsed`.
1685
- - `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.
1686
- - `cds add` now accepts `--for <profile>` argument to create Node,js project configuration for a given profile
1687
- - `cds add approuter` allows for serving your application’s UI using SAP approuter.
1688
- - `cds add kibana-logging` adds Kibana-friendly logging in a more convenient way than having to manually alter the package.json.
1689
-
1690
- ### Changed
1691
-
1692
- - `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.
1693
- - `cds init` reports Maven archetype version in console if called with `--add java`.
1694
- - `cds init` uses latest Maven Java archetype version 1.22.2 for creating Java projects.
1695
- - `cds import` modified documentation for namespace option.
1696
- - `cds import` does not create bound function imports key parameters in CSN for OData V2.
1697
- - `cds import` now when `--keep-namespace` option is not given validates the file name and then converts it to compiler supported format as service name .
1698
- - add new methods from `FsUtil` to typescript interface.
1699
-
1700
- ### Fixed
1701
- - `cds compile --to openapi` now correctly treats `null` and the empty string as function parameters.
1702
- - `cds bind --exec` no command output (STDOUT) displayed on Windows.
1703
- - `cds watch` now gracefully shuts down the live reload server before exiting
1704
- - `cds import` now generates correct csn for both OData V2 and V4 EDMX files where the EntityType has a BaseType entry.
1705
- - `cds import` now throws an error in case of missing Association Sets.
1706
- - `cds import` bug fixed for `--force` flag. Now overwrites the correct file content.
1707
- - `cds import` fix will no longer capture unwanted annotations in the CSN for OData V4.
1708
- - `cds import` now support annotations for properties of type `Type Definition`
1709
- - `cds import` fix for supporting valid data types in unbounded function imports for OData V4.
1710
- - `cds import` bug fixed for missing data imports for parameters with entity type not mapped to an entity set.
1711
- - `cds import` now supports properties with complex type for OData V4.
1712
- - `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.
1713
- - `cds bind --to hana` provides more comprehensive error message in case Cloud Foundry `org` or `space` are not set.
1714
-
1715
- ## Version 4.8.2 - 2022-03-07
1716
-
1717
- ### Fixed
1718
-
1719
- - `cds import` can now capture the data for any given `EntityContainer Name` for OData V4. Earlier it only worked when the name was `EntityContainer`.
1720
-
1721
- ### Changed
1722
-
1723
- - `cds init` uses latest Maven Java archetype version 1.22.1 for creating Java projects.
1724
-
1725
- ## Version 4.8.1 - 2022-02-15
1726
-
1727
- ### Changed
1728
-
1729
- - `cds init` uses latest Maven Java archetype version `1.22.0` for creating Java projects.
1730
-
1731
- ### Fixed
1732
-
1733
- - Bump `follow-redirects` package to 1.14.8 (CVE-2022-0536)
1734
- - `cds bind --exec` no command output (STDOUT) displayed on Windows.
1735
-
1736
- ## Version 4.8.0 - 2022-01-28
1737
-
1738
- ### Added
1739
-
1740
- - `cds import` now reflects the entity set and entity container level annotations in the csn.
1741
- - `cds activate --sync` allows to use the synchronous server API for extension upload.
1742
-
1743
- ### Changed
1744
-
1745
- - 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`.
1746
- - [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`.
1747
- - Use `cds bind` during `cds deploy` to store connection information in file `.cdsrc-private.json`.
1748
-
1749
- ### Fixed
1750
-
1751
- - `cds import` now omits function imports with `put/delete` kind.
1752
- - `cds import` has fixed the entity type to entity set mapping in OData V2.
1753
- - `cds import` now supports collection type.
1754
- - `cds watch` now picks a free livereload port if the standard port 35729 is already bound
1755
- - `cds extend`, `cds activate`, `cds login`, and `cds logout` now prioritize command-line options over saved settings
1756
- - MTX client now logs fewer characters of secrets in debug output
1757
- - MTX client now handles incomplete error responses better
1758
-
1759
- ## Version 4.7.3 - 2022-01-14
1760
-
1761
- ### Changed
1762
-
1763
- - Bump `follow-redirects` package to 1.14.7 (CVE-2022-0155)
1764
-
1765
- ## Version 4.7.2 - 2021-12-15
1766
-
1767
- ### Fixed
1768
-
1769
- - `cds add lint` uses JSONC parser to read ESLint config files of type `.eslintrc[.js,.cjs,.json]`.
1770
-
1771
- ### Changed
1772
-
1773
- - `cds init` uses latest Maven Java archetype version `1.21.0` for creating Java projects.
1774
-
1775
- ## Version 4.7.1 - 2021-12-06
1776
-
1777
- ### Fixed
1778
-
1779
- - `cds activate` authentication no longer fails
1780
- - `cds.compile.to.openapi` does no longer crash if `cds.compile` was already initialized
1781
-
1782
- ## Version 4.7.0 - 2021-12-06
1783
-
1784
- ### Added
1785
-
1786
- - `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.
1787
- - `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.
1788
-
1789
- ### Changed
1790
-
1791
- - `cds import` now adds annotations for missing ON conditions in associations instead of appending it in `doc`.
1792
- - `cds import` has updated mapping for OData V2 and V4
1793
- - `cds add lint` now configures `csv` files in `.vscode/settings.json`
1794
- - `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`.
1795
- - `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.
1796
- - `cds watch` now ignores folders named `target`, to avoid restarts when Maven's build output changes
1797
-
1798
- ### Fixed
1799
-
1800
- - `cds import` throws warning messages for unsupported data types.
1801
- - `cds watch` allows the explicit `--with-mocks` option, although this is anyways included by default
1802
- - `cds watch` no longer runs into multiple restarts if many files are changed at once, like in git branch changes
1803
-
1804
- ## Version 4.6.4 - 2021-11-24
1805
-
1806
- ### Fixed
1807
-
1808
- - `cds import` fix for TypeError issue during OData V2 EDMX conversion to CSN.
1809
- - `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
1810
-
1811
- ### Changed
1812
-
1813
- - `cds init` uses latest Maven Java archetype version `1.20.3` for creating Java projects.
1814
-
1815
- ## Version 4.6.3 - 2021-11-16
1816
-
1817
- ### Fixed
1818
-
1819
- - `cds watch` recovers again from compilation errors and properly prints these
1820
- - `cds import` fix for omitting empty `doc` components.
1821
- - `cds add lint` no longer duplicates initial contents in `package.json`
1822
- - `cds add data` no longer ignores imported services for which credentials are stored in the project
1823
-
1824
- ## Version 4.6.2 - 2021-11-09
1825
-
1826
- ### Fixed
1827
-
1828
- - `cds add lint` now correctly detects missing local `eslint`
1829
- - `cds add lint` no longer removes parts of `package.json`
1830
- - `cds add lint` no longer creates duplicate configuration entries
1831
-
1832
- ## Version 4.6.1 - 2021-11-08
1833
-
1834
- ### Changed
1835
-
1836
- - `cds init` uses latest `Maven Java archetype` version `1.20.0` for creating Java projects.
1837
- - `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.
1838
-
1839
- ### Fixed
1840
-
1841
- - `cds repl` now finds modules like `hdb` that are installed locally in the app folder
1842
- - `cds repl` now enables the `await` statement also on Windows
1843
- - `cds lint` now limits all file extensions to those allowed by the @sap/eslint-plugin-cds ESLint configuration
1844
-
1845
- ## Version 4.6.0 - 2021-11-02
1846
-
1847
- ### Added
1848
-
1849
- - `cds bind` binds the given service to a HANA instance by storing the credentials in `.cdsrc.json` in your user home directory [beta].
1850
- - `cds import` introduced option `--include-namespaces` which imports the custom defined namespaces.
1851
- - `cds import` preserve documentation in CSN file for actions and functions from OData V4 EDMX file.
1852
- - `cds import` now supports reading values of the `as` option from cds.env
1853
-
1854
- ### Fixed
1855
-
1856
- - `cds import` fix for reflecting only supported datatypes in csn for actions and functions for OData V4.
1857
- - `cds import` fix for TypeError issue (#9868) during OData V4 EDMX conversion to CSN.
1858
- - `cds watch` no longer omits starting some services every other time it is restarting the process
1859
- - `cds-ts watch` now honors a local `tsconfig.json` file
1860
- - `cds import` fix for TypeError issue (#9950) during OData V2 EDMX conversion to CSN.
1861
- - `cds import` fix to generate the csn (#9950) during OData V2 EDMX conversion to CSN.
1862
- - `cds import` fix to replace the aliases with original schema namespace value.
1863
- - `cds import` adds `@cds.persistence.skip` back to imported models. Its accidental removal in 4.5.0 caused wrong DB deployments of imported entities.
1864
-
1865
- ## Version 4.5.4 - 2021-10-07
1866
-
1867
- ### Fixed
1868
-
1869
- - `cds watch` no longer fails if started with `--ext`, `--livereload`, or `--open` arguments
1870
-
1871
- ## Version 4.5.3 - 2021-10-05
1872
-
1873
- ### Fixed
1874
-
1875
- - `cds import` fix for `--dry` shortcut `-`
1876
- - `cds import` fix for missing type properties in csn for unbounded action and function in OData V4.
1877
- - A bug with `cds init` when called in BAS project wizard
1878
-
1879
- ## Version 4.5.2 - 2021-09-30
1880
-
1881
- ### Changed
1882
-
1883
- - `cds init` uses latest `Maven Java archetype` version `1.19.0` for creating Java projects.
1884
-
1885
- ### Fixed
1886
-
1887
- - `cds deploy --to sqlite` now writes `credentials.database` again to `package.json`
1888
-
1889
- ## Version 4.5.1 - 2021-09-29
1890
-
1891
- ### Added
1892
-
1893
- - `cds import` introduced option `--as` which converts EDMX file to different file formats such as cds, csn and json.
1894
- - `cds import` introduced flag `--f` which forcefully overwrite the content of existing cds file when specified with `--as` option.
1895
-
1896
- ### Changed
1897
-
1898
- - Marked `cds lint` as beta again to further investigate issues from 'extends' via prettier plugin.
1899
-
1900
- ## Version 4.5.0 - 2021-09-23
1901
-
1902
- ### Added
1903
-
1904
- - `cds import` supports import of functions, action, functionimport and actionimport from both OData V2 and V4 EDMX files.
1905
-
1906
- ### Changed
1907
-
1908
- - `cds init` uses latest `Maven Java archetype` version `1.18.1` for creating Java projects.
1909
-
1910
- ### Fixed
1911
-
1912
- - `cds watch` additional CLI args were not passed to launched process, for example, `--odata x4`.
1913
- - `cds import` fix for TypeError issue during OData V4 EDMX conversion to CSN.
1914
- - `cds import` fix for multi-line documentation text in OData V2 EDMX file.
1915
- - `cds import` fix for V4 CSN generation when non standard OData vocabularies are referred.
1916
- - `cds add data`
1917
- + no longer fails for entities without keys
1918
- + no longer creates csv files for synthetic draft entities
1919
- + no longer creates entries for virtual fields
1920
- + no longer skips over entities marked with `@cds.persistence.skip`, which is true for 'external' entities created by `cds import`.
1921
- - `cds init --add` handles comma list correctly.
1922
- - `cds import` fix for multi-line documentation text in OData V4 EDMX file.
1923
- - `cds import` fix preserves the missing entities in csn for OData V2 EDMX file.
1924
-
1925
-
1926
- ## Version 4.4.2 - 2021-09-03
1927
-
1928
- ### Fixed
1929
-
1930
- - Use latest `cds-sidecar-client` to fix file upload in `cds activate`
1931
-
1932
- ## Version 3.5.3 - 2021-08-31
1933
-
1934
- ### Fixed
1935
-
1936
- - Use latest `cds-sidecar-client` to fix file upload in `cds activate`
1937
-
1938
- ## Version 4.4.1 - 2021-08-03
1939
-
1940
- ### Fixed
1941
-
1942
- - Use `@sap/eslint-plugin-cds@2.0.4`
1943
-
1944
- ## Version 4.4.0 - 2021-08-02
1945
-
1946
- ### Changed
1947
-
1948
- - `cds init` uses latest `Maven Java archetype` version `1.17.0` for creating Java projects.
1949
-
1950
- ### Fixed
1951
-
1952
- - Fixed bug when logging in Business Application Studio during `New Project from Template` wizard.
1953
- - `cds import` fix for <documentation> tag in Odata V2 for EntityType and ComplexType.
1954
- - `cds help` does not crash with `this.load is not a function` in exotic installations
1955
-
1956
- ## Version 4.3.3 - 2021-07-26
1957
-
1958
- ### Fixed
1959
-
1960
- - Removed internal links in `npm-shrinkwrap.json`
1961
-
1962
- ## Version 4.3.2 - 2021-07-26
1963
-
1964
- ### Changed
1965
-
1966
- - Bumped version of `@sap/cds` to 5.3.2
1967
-
1968
- ## Version 3.5.2 - 2021-07-21
1969
-
1970
- ### Changed
1971
-
1972
- - Bump to latest versions
1973
- - Use latest `cds-sidecar-client` to fix CVE-2021-33502
1974
-
1975
- ## Version 4.3.1 - 2021-07-12
1976
-
1977
- ### Changed
1978
-
1979
- - New version of `@sap/eslint-plugin-cds`
1980
-
1981
- ## Version 4.3.0 - 2021-07-08
1982
-
1983
- ### Changed
1984
-
1985
- - `cds init` uses latest `Maven Java archetype` version `1.16.3` for creating Java projects.
1986
- - `cds init` generates dependency entry for `hdb` instead of `@sap/hana-client`.
1987
- - Reworked templates for cds linter.
1988
-
1989
- ### Added
1990
-
1991
- - `cds import` now supports OData V4 edmx files.
1992
- - `cds-ts` executable starts `cds` CLI with [`ts-node`](https://www.npmjs.com/package/ts-node) to allow JIT compilation of Typescript
1993
- - `cds` CLI will give you a best guess if a command cannot be found, e.g. in case of a typing mistake.
1994
- - `cds.import` as API alternative to `cds import` command to convert edmx files to csn [beta]
1995
- - `cds.compile.to.openapi` as API alternative to `cds compile --to openapi` to convert CDS models to OpenAPI definitions
1996
-
1997
- ### Fixed
1998
-
1999
- - `cds import` fix for <documentation> tag in Odata V2 and <Annotation> tag in Odata v4
2000
- - `cds import` now sets the `kind` attribute in package.json to the correct `odata-v2` value for OData v2 services.
2001
- - `cds import` now maps edm.DateTime to cds.DateTime for Odata V2.
2002
- - `cds compile --to edmx-v2/edmx-v4` now uses correct file naming when compiling a single CDS service.
2003
-
2004
- ## Version 4.2.1 - 2021-06-09
2005
-
2006
- ### Fixed
2007
-
2008
- - `cds deploy` w/o any file arguments now works again and no longer fails with `No cds models found at/in ''`.
2009
-
2010
-
2011
- ## Version 4.2.0 - 2021-06-07
2012
-
2013
- ### Added
2014
-
2015
- - `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.
2016
-
2017
- ### Fixed
2018
-
2019
- - `cds deploy` called with multiple sources ignored all but the first one
2020
- - `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.
2021
- - On drag and drop of an edmx file, `cds watch` now imports it in the proper working dir
2022
- - `cds import` now moves the edmx file again to `srv/external` instead of copying it.
2023
-
2024
- ## Version 4.1.5 - 2021-05-21
2025
-
2026
- ### Fixed
2027
-
2028
- - An issue with opening URLs on Windows
2029
- - `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.
2030
- - Include `@sap/cds` 5.1.5
2031
- - Include `@sap/cds-runtime` 3.1.1
2032
- - Include `@sap/cds-compiler` 2.2.8
2033
- - Include `@sap/eslint-plugin-cds` 1.1.4
2034
-
2035
- ## Version 4.1.4 - 2021-05-12
2036
-
2037
- ### Fixed
2038
-
2039
- - Include `@sap/cds` 5.1.4
2040
- - Include `@sap/cds-compiler` 2.2.6
2041
- - Include `@sap/eslint-plugin-cds` 1.1.3
2042
-
2043
- ## Version 4.1.3 - 2021-05-12
2044
-
2045
- ### Fixed
2046
-
2047
- - Include `@sap/cds` 5.1.3
2048
-
2049
- ## Version 4.1.2 - 2021-05-12
2050
-
2051
- ### Fixed
2052
-
2053
- - Include `@sap/cds` 5.1.2
2054
-
2055
- ## Version 4.1.1 - 2021-05-07
2056
-
2057
- ### Fixed
2058
-
2059
- - Include `@sap/cds` 5.1.1
2060
-
2061
- ## Version 4.1.0 - 2021-05-06
2062
-
2063
- ### Added
2064
-
2065
- - `cds watch --open` opens the app in the browser with a given URL (part)
2066
-
2067
- ### Changed
2068
-
2069
- - 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.
2070
- - `cds init` uses latest `Maven Java archetype` version `1.15.3` for creating Java projects.
2071
-
2072
- ### Fixed
2073
-
2074
- - `cds compile --to hdbtable, hdbcds` no longer creates duplicate file extensions.
2075
-
2076
- ## Version 4.0.7 - 2021-04-16
2077
-
2078
- ### Changed
2079
-
2080
- - Bumped versions of `@sap/cds`, `@sap/cds-compiler`
2081
-
2082
- ### Fixed
2083
-
2084
- - Lookup for `eslint` during `cds add lint`
2085
-
2086
- ## Version 4.0.6 - 2021-04-15
2087
-
2088
- ### Changed
2089
-
2090
- - Bumped versions of `@sap/cds`, `@sap/cds-runtime`, `@sap/cds-compiler`
2091
-
2092
-
2093
- ## Version 4.0.5 - 2021-04-12
2094
-
2095
- ### Changed
2096
-
2097
- - Bumped version of `@sap/eslint-plugin-cds`
2098
-
2099
- ## Version 4.0.4 - 2021-04-12
2100
-
2101
- ### Changed
2102
-
2103
- - `cds init` uses latest `Maven Java archetype` version `1.15.0` for creating Java projects.
2104
-
2105
-
2106
- ## Version 4.0.3 - 2021-04-07
2107
-
2108
- ### Changed
2109
-
2110
- - `cds compile --to xsuaa`, `edmx-v2`, and `edmx-v4` have moved from `@sap/cds` to `@sap/cds-dk`.
2111
-
2112
- ### Fixed
2113
-
2114
- - `cds init` now works if started in file paths with spaces
2115
-
2116
- ## Version 4.0.2 - 2021-04-01
2117
-
2118
- ### Changed
2119
-
2120
- - `cds init` uses latest `Maven Java archetype` version `1.14.3` for creating Java projects.
2121
- - `npm-shrinkwrap.json` format version 2 is now used, produced by `npm` 7
2122
- - `npm-shrinkwrap.json` now contains integrity hashes
2123
-
2124
- ### Fixed
2125
-
2126
- - Allow blanks in cds-dk installation path when running `cds init`.
2127
-
2128
- ## Version 4.0.1 - 2021-03-24
2129
-
2130
- ### Fixed
2131
-
2132
- - Many things in linter
2133
-
2134
- ## Version 4.0.0 - 2021-03-19
2135
-
2136
- ### Added
2137
-
2138
- - `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.
2139
-
2140
- ### Changed
2141
-
2142
- - `cds init` uses latest `Maven Java archetype` version `1.14.0` for creating Java projects.
2143
- - `cds watch` has dropped its fallback support for `nodemon` through the `CDS_USE_NODEMON` configuration.
2144
- - `cds add hana` now sets `hdbtable` as deployment format for SAP HANA
2145
-
2146
- ### Fixed
2147
-
2148
- - `cds watch` no longer runs in an endless restart loop if started in the user's home dir.
2149
-
2150
- ## Version 3.5.1 - 2021-03-12
2151
-
2152
- ### Changed
2153
-
2154
- - Bump version of `@sap/cds` to 4.6.5
2155
-
2156
- ## Version 3.5.0 - 2021-03-01
2157
-
2158
- ### Changed
2159
- - `cds init` creates projects with latest version of `sqlite3` again.
2160
- - `cds add mta` now creates a mta.yaml file that correctly handles spring boot .jar and .war archives.
2161
-
2162
- ### Fixed
2163
-
2164
- - `cds env` does not longer fail with an exception for unknown commands
2165
-
2166
- ## Version 3.4.2 - 2021-02-19
2167
-
2168
- ### Fixes
2169
-
2170
- - `cds init` now refers to the latest HDI deployer which supports Node.js 14
2171
-
2172
- ### Changed
2173
-
2174
- - `cds init` uses latest `Maven Java archetype` version `1.13.1` for creating Java projects.
2175
- - Bump version of `@sap/cds` to 4.5.3
2176
-
2177
- ## Version 3.4.1 - 2021-02-17
2178
-
2179
- ### Changed
2180
-
2181
- - Bump version of `@sap/cds` to 4.5.2
2182
- - Bump version of `@sap/cds-runtime` to 2.8.6
2183
- - Bump version of `@sap/cds-compiler` to 1.49.2
2184
-
2185
- ### Fixed
2186
-
2187
- - `cds watch` now shuts down its child process properly, so that `EADDRINUSE` errors in Business Application Studio are gone
2188
-
2189
- ## Version 3.4.0 - 2021-02-02
2190
- ### Changed
2191
- - `cds init` uses latest `Maven Java archetype` version `1.12.1` for creating Java projects.
2192
- - `cds init` allows `_` in project name and leaves conversion to `Maven Java archetype`.
2193
- - `cds init --add notebook` and `cds add notebook` now use a Python venv and offer a default Jupyter Notebook viewer.
2194
- - [beta] Multi-target Node.js applications can now be initialized with multitenancy support by running `cds init --add mta,mtx`.
2195
-
2196
- ## Version 3.3.5 - 2021-01-20
2197
-
2198
- ### Changed
2199
-
2200
- - Bump versions of `@sap/cds`
2201
-
2202
- ## Version 3.3.4 - 2021-01-12
2203
-
2204
- ### Changed
2205
-
2206
- - Bump versions of `@sap/cds` and `axios`
2207
-
2208
- ## Version 3.3.3 - 2020-12-18
2209
-
2210
- ### Changed
2211
-
2212
- - Bump versions of `@sap/cds`, `@sap/cds-runtime`, and `@sap/cds-sidecar-client`
2213
-
2214
- ## Version 3.3.2 - 2020-12-07
2215
-
2216
- ### Changed
2217
-
2218
- - Bump version of `@sap/cds` to 4.4.5
2219
-
2220
- ## Version 3.3.1 - 2020-12-04
2221
-
2222
- ### Changed
2223
-
2224
- - Bump version of `@sap/cds` to 4.4.4 and `@sap/cds-runtime` to `2.7.5`
2225
-
2226
- ## Version 3.3.0 - 2020-12-02
2227
-
2228
- ### Added
2229
-
2230
- - `cds init` and `cds add` now support the feature `notebook` to create a Jupyter Notebook in a project.
2231
- - `cds compile --to openapi` adds support for OpenAPI 3 to `cds compile`.
2232
- - If the server port is in use, `cds watch` offers to restart the server with a new port.
2233
- - `cds init` uses latest `Maven Java archetype` version `1.11.0` for creating Java projects.
2234
- - `cds init --add pipeline` and `cds add pipeline` will now use the general purpose pipeline of project "Piper".
2235
- - `cds login`, `cds extend` and `cds activate` now also support clientid/clientsecret as parameters. This is needed when extending multitenant
2236
- applications provided as as reusable services
2237
- (see [CP documentation](https://controlcenter.ondemand.com/index.html#/knowledge_center/articles/2316430f7d804820934910db736cefbf)).
2238
- - `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.
2239
-
2240
- ### Changed
2241
-
2242
- - `cds add cf-manifest` now adds a dependency to the `java_buildpack`.
2243
- - `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.
2244
-
2245
- ### Fixed
2246
-
2247
- - `cds add cf-manifest` now only adds db-deployer module if HANA service binding exists.
2248
- - `cds init --add hana` now adds `requires.db.kind: "sql"` to cds configuration for Node.js and Java
2249
- - `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.
2250
- - `cds deploy --to hana` now prefers to use an app-local install of `@sap/cds`, much like other `cds` commands
2251
-
2252
- ## Version 3.2.1 - 2020-11-20
2253
-
2254
- ### Fixed
2255
-
2256
- - `cds import` no longer creates `.csn` files with invalid `kind:ComplexType` fields
2257
-
2258
- ## Version 3.2.0 - 2020-11-03
2259
-
2260
- ### Added
2261
-
2262
- - `cds watch` now allows to set the `--in-memory` flag that is passed to `serve`.
2263
-
2264
- ### Changed
2265
-
2266
- - `@sap/cds-dk` is again shrinkwrapped, so that builds get reproducible again
2267
- - All `cds` commands now prefer a local installation of `@sap/cds`. This enables applications better control over the version of `@sap/cds`.
2268
- - `cds add cf-manifest` generates the service application with the `random-route: true` flag, which avoids route clashes on CF during development.
2269
-
2270
- ### Fixed
2271
-
2272
- - `cds run` finds its `express` module again in the case where no `express` is installed in the application.
2273
- - `cds env` now also displays properties that have a value `false` or `''`.
2274
- - Leading flags in `cds` CLI work again, like `cds --to sql my.cds`
2275
- - `cds compile --to` w/o an argument now fails with a better message
2276
-
2277
- ### Removed
2278
-
2279
-
2280
- ## Version 3.1.4 - 2020-10-27
2281
-
2282
- ### Fixed
2283
-
2284
- - `cds run` finds the `sqlite3` module again if `cds` is used from a globally installed `@sap/cds-dk`.
2285
-
2286
-
2287
- ## Version 3.1.3 - 2020-10-26
2288
-
2289
- ### Fixed
2290
-
2291
- - `cds run` finds the `express` package again in the case where no `express` is installed in the application's `node_modules`.
2292
-
2293
-
2294
- ## Version 3.1.2 - 2020-10-16
2295
-
2296
- ### Changed
2297
- - `cds init` uses latest `Maven Java archetype` version `1.10.0` for creating Java projects.
2298
-
2299
- ### Fixed
2300
- - `cds deploy --to sqlite` finds the `sqlite3` module again if `cds` is used from a globally installed `@sap/cds-dk`.
2301
-
2302
-
2303
- ## Version 3.1.1 - 2020-10-07
2304
-
2305
- ### Added
2306
- - `cds compile --locations` preserves `$location` properties in CSN outputs.
2307
-
2308
- ### Changed
2309
- - `cds compile` prints a better legible JSON output to terminals
2310
- - `cds compile -p` is no longer a shortcut for `--parse`, to allow `--parse ...more-args` to work.
2311
- - `cds compile -f` is no longer a shortcut for `--from` (which is not implemented), but for `--flavor`.
2312
-
2313
- ### Fixed
2314
- - `cds deploy --to sqlite` now writes `requires.db.model` in `package.json` such that `cds.connect.to.('db')` works w/o further `model` options.
2315
- - `cds deploy --to sqlite` with `@sap/cds` 4.2 no longer crashes due to a wrong import
2316
-
2317
- ## Version 3.1.0 - 2020-09-30
2318
-
2319
- ### Added
2320
- - `cds compile` now supports option `flavor` with values: `files` | `sources` | `parsed` | `xtended` | `inferred`.
2321
- + `cds compile --files` maps to `--flavor files`.
2322
- + `cds compile --sources` maps to `--flavor sources`.
2323
- + `cds compile --parse` maps to `--flavor parsed`.
2324
- + `cds compile` maps to `--flavor inferred`.
2325
- - `cds add cf-manifest` creates manifest.yml and services-manifest.yml allowing for Cloud Foundry native deployment.
2326
- - `cds init` now supports type `nodejs` to create a Node.js based project. This is the default and can be omitted.
2327
- - `cds watch`: enter `debug` or `debug-brk` to restart process in debug mode. Other commands are `ps` and `rs`.
2328
-
2329
- ### Changed
2330
- - `@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
2331
- - `cds init` uses latest `Maven Java archetype` version `1.9.0` for creating Java projects.
2332
-
2333
- ### Fixed
2334
- - `cds watch` now passes all environment variables to the spawned sub processes, enabling for example, `cds watch --production`
2335
- - `cds init` modifies artifact id and Java package name for Java projects to be standard conform.
2336
- - `cds` fails with a better error message for misspelled commands
2337
-
2338
-
2339
- ## Version 3.0.0 - 2020-08-31
2340
-
2341
- ### Changed
2342
- - `cds watch` now uses version 5 of `sqlite3`
2343
- - `cds watch` does not use `nodemon` anymore.
2344
- > You can continue using `cds watch` with `nodemon` by installing `nodemon` globally and setting env variable `CDS_USE_NODEMON` to true.
2345
- - `cds add mta` for Java applications now determines app details like name, version etc. based on `pom.xml` and no longer from `package.json`.
2346
-
2347
- ### Fixed
2348
- - `cds add mta` now configures the Service Manager for SaaS applications. The Instance Manager is no longer used.
2349
- - `cds import` no longer writes an empty file if the source and the target edmx files are the same
2350
- - `cds import` yields better error messages if the input file does not exists or is invalid
2351
- - `cds import` no longer writes a Windows-specific path to `package.json`
2352
- - `cds init --add java` shows better error message if Maven is not installed.
2353
-
2354
- ## Version 2.0.8 - 2020-08-07
2355
-
2356
- ### Changed
2357
- - `cds init` uses latest `Maven Java archetype` version `1.8.1` for creating Java projects.
2358
-
2359
- ### Fixed
2360
-
2361
- - 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.
2362
- The environment variable JBP_CONFIG_RESOURCE_CONFIGURATION required by the classic Java runtime has been removed.
2363
-
2364
- ## Version 2.0.7 - 2020-08-04
2365
-
2366
- ### Added
2367
- - `cds init` supports adding `samples` via `--add samples`. See `cds help init` for more details.
2368
- - **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`.
2369
- - `cds` commands now log a hint to update to the latest `@sap/cds` if this one is still of version 3.
2370
- - New command `cds login` added to simplify usage of `cds extend` and `cds activate` by providing them with automatic authentication and saving project settings.
2371
- Refreshes expired authentication tokens automatically. Optionally uses CF command-line client to determine login URLs and subdomains.
2372
- Saves authentication data in plain-text file or desktop keyring on Linux, macOS or Windows.
2373
- The latter requires an optional Node.js module `keytar` to be installed.
2374
- - New command `cds logout` removes authentication data and optionally project settings.
2375
-
2376
- ### Changed
2377
- - `@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`.
2378
- - `cds init` generates dependency to `@sap/cds` version `4` for Nodejs projects.
2379
- - Use square brackets to pass array values for options to `cds init --java:mvn`.
2380
- - `cds init --add pipeline` and `cds add pipeline` now create file `config.yml` in `.pipeline` folder.
2381
- - Improved `launch.json` file which is created during `cds init`.
2382
- - `cds add mta` now creates a mta.yaml file that sets the production flag for cds build and npm install.
2383
- This ensures that the HANA artefacts are created if `"kind": "sql"` or some `production` profile has been configured in package.json or .cdsrc.json.
2384
- Requires `@sap/cds` version >=4.x.
2385
- - `cds init` uses latest `Maven Java archetype` version `1.7.0` for creating Java projects.
2386
- - `cds init` no longer adds `package-lock.json` to `.gitignore` file when creating a new project.
2387
- - `cds init --add hana` and `cds add hana` now use `Maven Java archetype` to create HANA related pom.xml entries.
2388
- - 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`.
2389
-
2390
- ### Fixed
2391
-
2392
- - Fixed `cds import` to support imports from symlinked sources
2393
- - Fixing bug in `cds init` and `cds add` when using multiple features separated by comma.
2394
- - Fixing missing log output bug in `cds init` and `cds add` when using feature `samples`.
2395
- - `cds add mta` does no longer crash if no package.json file exists.
2396
-
2397
- ## Version 1.8.6 - 2020-07-10
2398
- ### Changed
2399
- - Service binding names have been adapted in mta.yaml created by `cds add mta` command.
2400
-
2401
- ### Fixes
2402
- - Simplified `cds env` calculation during `cds init` and `cds add`.
2403
-
2404
- ## Version 1.8.5 - 2020-06-05
2405
-
2406
- ### Changed
2407
- - `cds init` uses latest `Maven Java archetype` version `1.6.0` for creating Java projects.
2408
-
2409
- ## Version 1.8.4 - 2020-05-30
2410
-
2411
- ### Changed
2412
- - `cds init` uses latest `Maven Java archetype` version `1.5.2` for creating Java projects.
2413
-
2414
- ### Fixes
2415
- - An issue in `@sap/edm-converters` with missing entity sets
2416
-
2417
-
2418
- ## Version 1.8.2 - 2020-05-08
2419
- ### Fixes
2420
- - An issue in `@sap/edm-converters` with missing entity sets
2421
-
2422
-
2423
- ## Version 1.8.1 - 2020-05-08
2424
- ### Fixed
2425
- - An issue in `@sap/edm-converters` with missing entity sets
2426
-
2427
- ## Version 1.8.0 - 2020-04-27
2428
-
2429
- ### Added
2430
-
2431
- - `cds watch` now also accepts package names as arguments, e.g. `cds w @capire/bookshop`.
2432
- - `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.
2433
-
2434
- ### Changed
2435
- - Parameter `verbose` in `cds init` and `cds add` is now deprecated. Use environment variable `DEBUG=true` to obtain detailed output.
2436
- - `cds init` uses latest `Java archetype` version `1.4.0` for creating Java projects.
2437
- - Consume new `@sap/cds-sidecar-client` due to API change.
2438
-
2439
- ### Fixed
2440
- - Fixing terminology in `cds init` and `cds add` console output.
2441
- - `cds init` is logging `cds env` output only in debug mode.
2442
- - Using `cds build` command in generated `mta.yaml` file.
2443
- - Fixing Hana dependency during `cds init --add hana` for project type `java`.
2444
- - Fixing bug in `cds init` when `cds-dk` is not installed globally.
2445
-
2446
- ## Version 1.7.0 - 2020-03-24
2447
-
2448
- ### Added
2449
- - `cds init --add java` supports `--java:mvn` to add additional parameter.
2450
- - Improvements when logging console output during `cds init`.
2451
- - Link to Maven archetype documentation shown in `cds help init`.
2452
-
2453
- ### Changed
2454
- - `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.
2455
-
2456
-
2457
- ## Version 1.6.3 - 2020-03-05
2458
-
2459
- ### Changed
2460
-
2461
- ### Fixed
2462
- - Proper `npm-shrinkwrap.json`
2463
- - `cds init` is a bit more relaxed when checking for existing project content
2464
-
2465
-
2466
- ## Version 1.6.0 - 2020-02-25
2467
- ### Added
2468
- - `cds init --add java` now also works with `--hana`
2469
-
2470
- ### Changed
2471
- - `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`.
2472
-
2473
- ### Fixed
2474
- - `cds add mta` now creates valid configuration for `uaa` and `auditlog` resources.
2475
-
2476
-
2477
- ## Version 1.5.0 - 2020-02-10
2478
-
2479
- ### Changed
2480
- - `cds init` only supports new syntax. See `cds init help` for more info.
2481
- - `cds init` now supports adding template `hana` to Java projects.
2482
-
2483
- ### Fixed
2484
- - `cds add mta` fixes an issue in created mta.yaml for nodejs projects if used in xmake environment.
2485
- - `cds add mta` fixes an build order issue in created mta.yaml for java projects. Now service module is built before db module.
2486
- - `cds init` does not create `package.json` in db folder.
2487
-
2488
- ### Added
2489
- - `cds init` adds `private: true` and `license: "UNLICENSED"` to newly generated projects.
2490
- - `cds init` adds a default `.hdiconfig` file when using template `hana`.
2491
- - `cds init` supports Java package name via `--java:package` parameter.
2492
- - `cds init` generates dependency entry for `@sap/hana-client` when using template `hana`.
2493
- - `cds init` uses latest `Java archetype` version `1.3.0` for creating Java projects.
2494
- - `cds init` now creates a `.cdsrc.json` file.
2495
-
2496
- ## Version 1.4.0 - 2019-12-12
2497
-
2498
- ### Added
2499
- - Abort installation with a hint if `@sap/cds` is installed globally.
2500
- - New project generation using `cds init`. See `cds help init` for details.
2501
- - `cds init --add java` now creates Java projects with Spring Boot support.
2502
- - `cds watch` now also watches `.properties` files
2503
-
2504
- ### Fixed
2505
- - Find locally installed modules like `passport`, so that `cds watch` and `cds run` behave symmetrically.
2506
-
2507
- ## Version 1.3.0 - 2019-11-19
2508
-
2509
- ### Fixed
2510
- - `cds import` no longer fails due to Windows paths.
2511
-
2512
- ### Also see
2513
- - Changes of `@sap/cds` 3.20.0
2514
- - Changes of `@sap/cds-sidecar-client` 1.1.2
2515
-
2516
- ## Version 1.2.0 - 2019-10-31
2517
-
2518
- ### Added
2519
- - Experimental support for cds init
2520
-
2521
-
2522
- ## Version 1.1.3 - 2019-10-28
2523
-
2524
- ### Fixed
2525
- - `cds watch` now uses the same lookup paths for models as `cds run`
2526
-
2527
- ### Also see
2528
- - Changes of `@sap/cds` 3.18.3
2529
-
2530
-
2531
- ## Version 1.1.0 - 2019-10-08
2532
-
2533
- ### Added
2534
- - Added dependencies to `express` and `sqlite3` to ease development
2535
-
2536
- ### Changed
2537
- - Improved `cds watch`
2538
-
2539
- ### Also see
2540
- - Changes of `@sap/cds` 3.18.0
2541
- - Changes of `@sap/edm-converters` 1.0.19
2542
- - Changes of `@sap/generator-cds` 2.8.3
2543
- - Changes of `@sap/cds-sidecar-client` 1.1.1
2544
-
2545
-
2546
- ## Version 1.0.6 - 2019-09-25
2547
-
2548
- ### Changed
2549
-
2550
- - Updated version of `@sap/cds` to `3.17.8`
2551
-
2552
-
2553
- ## Version 1.0.5 - 2019-09-24
2554
-
2555
- ### Changed
2556
-
2557
- - Updated version of `@sap/cds` to `3.17.7`
2558
-
2559
-
2560
- ## Version 1.0.4 - 2019-09-23
2561
-
2562
- ### Changed
2563
-
2564
- - Updated version of `@sap/cds` to `3.17.6`
2565
-
2566
-
2567
- ## Version 1.0.3 - 2019-09-21
2568
-
2569
- ### Changed
2570
-
2571
- - Updated version of `@sap/cds` to `3.17.5`
2572
-
2573
-
2574
- ## Version 1.0.2 - 2019-09-19
2575
-
2576
- ### Changed
2577
-
2578
- - Updated version of `@sap/cds` to `3.17.4`
2579
-
2580
-
2581
- ## Version 1.0.1 - 2019-09-18
2582
-
2583
- ### Changed
2584
-
2585
- - Updated version of `@sap/cds` to `3.17.2`
2586
-
2587
-
2588
- ## Version 1.0.0 - 2019-09-10
2589
-
2590
- ### Added
2591
-
2592
- - Initial implementation
2593
- - cds watch
2594
- - cds import