Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
},
Expand Down
2 changes: 1 addition & 1 deletion srv/apps/z2ui5_cl_smp_app_027.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
2 changes: 1 addition & 1 deletion srv/apps/z2ui5_cl_smp_app_067.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Loading