From d001dcbffcd7ceb207bc844c0353faa9241c333a Mon Sep 17 00:00:00 2001 From: developer Date: Tue, 29 Sep 2026 22:04:34 -0300 Subject: [PATCH] Release 0.2.0 For @cap2ui5/cds-plugin 0.4.0: the peer range, the README, and the two samples 0.4.0's abap2js translates differently. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 14 +++++++++++++- README.md | 2 +- package.json | 6 +++--- srv/apps/z2ui5_cl_smp_app_027.js | 2 +- srv/apps/z2ui5_cl_smp_app_067.js | 2 +- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e671460..05b2d42 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,17 @@ versions [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.2.0] - 2026-09-30 + +For `@cap2ui5/cds-plugin` 0.4.0, whose model carries only the fields an app +binds. + +- The peer dependency is `@cap2ui5/cds-plugin` `^0.4.0`; 0.1.0 does not + install beside 0.4.0. +- The samples are translated again by 0.4.0's abap2js from the same + abap2UI5/samples commit: `Z2UI5_CL_SMP_APP_027` and `Z2UI5_CL_SMP_APP_067` + start their numeric fields as numbers, not as strings. + ## [0.1.0] - 2026-09-29 The first release: abap2UI5's samples as a package a CAP project adds. @@ -18,5 +29,6 @@ The first release: abap2UI5's samples as a package a CAP project adds. peer dependency - and the samples run beside the project's own apps: the package declares them for the plugin, `"cap2ui5": { "apps": "srv/apps" }`. -[Unreleased]: https://github.com/cap2UI5/samples/compare/v0.1.0...HEAD +[Unreleased]: https://github.com/cap2UI5/samples/compare/v0.2.0...HEAD +[0.2.0]: https://www.npmjs.com/package/@cap2ui5/samples/v/0.2.0 [0.1.0]: https://www.npmjs.com/package/@cap2ui5/samples/v/0.1.0 diff --git a/README.md b/README.md index d603789..2636241 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ original's comments and texts, all of them, as they are. ## Add them to your project In a CAP project with [`@cap2ui5/cds-plugin`](https://github.com/cap2UI5/cap2UI5) -0.3 or later: +0.4 or later: ```bash npm add -D @cap2ui5/samples diff --git a/package.json b/package.json index 98b49da..4b51a11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cap2ui5/samples", - "version": "0.1.0", + "version": "0.2.0", "description": "abap2UI5's samples as cap2UI5 apps: add the package to a CAP project and they run beside its own apps. Every sample a plain JavaScript class, translated from its ABAP original line for line.", "keywords": [ "cap", @@ -35,13 +35,13 @@ "node": ">=22" }, "peerDependencies": { - "@cap2ui5/cds-plugin": "^0.3.0" + "@cap2ui5/cds-plugin": "^0.4.0" }, "devDependencies": { "@abaplint/transpiler-cli": "2.13.91", "@cap-js/cds-test": "^1.0.2", "@cap-js/sqlite": "^3", - "@cap2ui5/cds-plugin": "^0.3.0", + "@cap2ui5/cds-plugin": "^0.4.0", "@sap/cds": "^10", "fast-xml-parser": "^5.11.1" }, diff --git a/srv/apps/z2ui5_cl_smp_app_027.js b/srv/apps/z2ui5_cl_smp_app_027.js index d7fb389..5c7e54b 100644 --- a/srv/apps/z2ui5_cl_smp_app_027.js +++ b/srv/apps/z2ui5_cl_smp_app_027.js @@ -21,7 +21,7 @@ defineApp("Z2UI5_CL_SMP_APP_027", class { if (client.check_on_init()) { this.product = "tomato"; - this.quantity = "500"; + this.quantity = 500; this.input41 = "faasdfdfsaVIp"; this.view_display(); diff --git a/srv/apps/z2ui5_cl_smp_app_067.js b/srv/apps/z2ui5_cl_smp_app_067.js index cae2383..3bd59cd 100644 --- a/srv/apps/z2ui5_cl_smp_app_067.js +++ b/srv/apps/z2ui5_cl_smp_app_067.js @@ -16,7 +16,7 @@ defineApp("Z2UI5_CL_SMP_APP_067", class { if (client.check_on_init()) { this.numeric = "000000000012"; - this.amount = "123456789.123"; + this.amount = 123456789.123; this.currency = "USD"; this.view_display();