@sap/cds-dk 8.9.3 → 9.0.4

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