Skip to content

Bring the site to @cap2ui5/cds-plugin 0.8.0 on runtime 1.151.0 - #41

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/docs-0.8.0
Nov 27, 2026
Merged

oblomov-dev merged 1 commit into
mainfrom
claude/docs-0.8.0

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

The site described plugin 0.6.0 on runtime 1.149.0. This brings it to @cap2ui5/cds-plugin 0.8.0, which hosts @abap2ui5/node-runtime 1.151.0 (abap2UI5 1.151.0). No page was restructured; 27 files changed.

Release state — read this first

0.8.0 is not released. It was prepared in cap2UI5/cap2UI5#119, which was merged into cap2UI5's main while this was being written (50013eb), but there is no v0.8.0 tag and npm's latest is still 0.7.0 (looked up 2026-11-27). So the site describes a version a reader cannot install yet. Following AGENTS.md, every page that says "since 0.8.0" or describes what differs from 0.7.0 marks it not released yet; the Quickstart and reference/configuration ("0.8.0 and runtime 1.151.0") explain it. Those marks have to come off when 0.8.0 is on npm — AGENTS.md now says so.

@cap2ui5/samples 0.5.0 is in the same state: it exists on a branch of cap2UI5/samples (claude/pensive-euler-a6i8y1), npm has 0.4.0.

What changed

  • Pinned runtime: 1.151.0 wherever the current runtime is named; the plugin-to-runtime table gains 0.7.0 and 0.8.0. 1.149.0 moved to .verify-refs-ignore as history, with its reason.
  • Windowed table (api/client): rewritten for the app-driven window_bind_tab({ val, total, event, window }), the request in get().r_event_data, cs_window_reason, /__WINDOW/<PATH> with TOTAL, COUNT, SIZE, EVENT. window_get_row( ), t_sort and t_filter as parameters are described as gone, with what 0.6.0/0.7.0 did.
  • Removed from the client: _bind_edit( ) and the five *_model_update( ) are out of the API tables and the ABAP example on guide/views; a "Removed with 0.8.0" table says what to write instead.
  • New on the client: check_on_nav_back( ), get_nav_tag( ) with nav_app_call({ app, tag }), check_nav_pending( ), get_start_param( ), timer_set( ) / timer_stop( ), keep_messages — in api/client, with a short section on guide/navigation.
  • In-place changes: guide/data-binding, examples/list and api/app-interface no longer say a table must be assigned whole.
  • Protocol 3 (reference/protocol): S_FRONT.VIEWS / NAV / ACTIONS, S_FRONT.ROUTE, the flags object of an event wire, the loader page and the ?z2ui5-bundle frontend. "The page embeds the whole UI5 frontend" is reworded on the eleven pages that said it in passing.
  • Configuration: the accelerate key is removed from the table and named only as the key that went; compression, sessions and the queue are attributed to the runtime's compress( ), withSession( ), exclusive( ).
  • Persistence: a draft chain is pruned to two rows (draft_keep_per_chain) on guide/persistence, reference/database and the user exit's field table.
  • abap2js: itab[ n ], the new window_bind_tab( ), TRY and a row by key refused. Samples: 0.5.0, 76 of 145, 72 generated and four by hand.
  • AGENTS.md: the ground-truth section (npm state, pins, plugin/lib/ layout without compression.js and sessions.js, the bundle).

Three things outside the checklist, found while checking it:

  • t.ref( ) from 0.7.0 was not on the site at all; it has a short section in api/app-interface now.
  • guide/user-exit said the default CSP allows 'unsafe-eval'. On 1.151.0 it does not (script-src 'self' 'wasm-unsafe-eval' …, measured), so the section and the troubleshooting entry are corrected.
  • guide/agents named z2ui5_cl_pop_to_confirm as a framework popup. The z2ui5_cl_pop_* classes left abap2UI5's core in 1.151.0 and are not in the published runtime, which verify-refs flagged; the sentence no longer names the class. The plugin's own README still does.

What I verified

  • npm run check is green with CAP2UI5_DIR at the branch claude/pensive-euler-a6i8y1-table-expression (8cf9899) and ABAP2UI5_DIR at tag 1.151.0. verify-refs --require-checkout is also green against cap2UI5's main as it is now, which is what CI checks out.
  • Each statement was read against plugin/CHANGELOG.md, plugin/README.md, plugin/index.d.ts, cap2UI5's AGENTS.md and the example's apps and tests.
  • Measured, in a scratch copy of the cap2UI5 checkout with the published runtime 1.151.0 assembled into it, on the wire:
    • the startup log lines (no runtime accelerations active any more);
    • the page (9.7 kB, 3.4 kB gzipped), the bundle (194 kB, 57 kB gzipped), its Cache-Control with and without the hash, and 404 for /z2ui5/webapp/index.html;
    • the two protocol 3 responses printed on the protocol page, and the event wire with its flags object;
    • /__WINDOW/ROWS and the first window of the example app;
    • draft_keep_per_chain: default 2, and 0 and 4 set through defineExit (2, 7 and 4 of 7 drafts still answering);
    • the exit's cfg fields and the default CSP;
    • abap2js on six small classes: TRY, itab[ 1 ], itab[ id = 1 ], window_bind_tab( ), window_get_row( ), _bind_edit( ).
  • 88 tests of the example's suite pass on that runtime (window, nav, state, nested, refs, drafts, actions, compression, sessions, abap2js, config, books, coexistence). The whole suite was not run.
  • npm, on 2026-11-27: plugin 0.7.0 with runtime 1.149.0, samples 0.4.0 with peer ^0.6.0, and npm add -D @cap2ui5/samples beside plugin 0.7.0 failing with ERESOLVE — the Quickstart's warning now says that instead of the 0.6.0/0.3.0 pair.

What I could not verify

  • Nothing was run in a browser. The old "What is measured here" box for the windowed table (a growing sap.m.Table in a headless browser, on 0.6.0) is replaced by one that says wire only. Not seen in a browser: the list requesting more rows, a ticking timer_set( ), and whether hash_set( ) / hash_replace( ) leave the URL alone without a hash_attach_changed listener — on the wire the S_FRONT.NAV request goes out either way, and the page says the decision is the browser's.
  • keep_messages and S_FRONT.ROUTE are described from the CHANGELOG, the type declarations and the tests' helpers; I did not send such a request myself.
  • The performance paragraph's "linear with nothing to switch on" is the plugin README's statement; the table was not measured again.
  • The CSP snippet that adds 'unsafe-eval' back for an old UI5 is not run, and the page says so.
  • The plugin's line count on guide/ecosystem (about 4,600, plus about 2,500 vendored) is my own count without comments and blank lines; the earlier figure may have been counted differently.
  • An installed 0.8.0 from npm, since there is none; BTP, HANA and the approuter remain unrun, as before.

Not merged, as asked.


Generated by Claude Code

0.8.0 hosts abap2UI5 1.151.0, which breaks the wire and the windowed
table, and the site still described 0.6.0 on 1.149.0. It is on cap2UI5's
main but not tagged or on npm, so every page that describes it marks it
"not released yet", as AGENTS.md asks.

- the windowed table is app-driven: window_bind_tab({ val, total, event,
  window }), the request in get().r_event_data, no window_get_row( )
- _bind_edit( ) and the *_model_update( ) no-ops are removed, the new
  client methods (nav back and tag, pending, start params, timer) added
- in-place changes of a table or structure field are kept; the advice to
  assign the whole array is corrected
- protocol 3 on the protocol page: VIEWS / NAV / ACTIONS, ROUTE, the
  flags object of an event wire, the loader page and the frontend bundle
- the accelerate key is gone; compression and sessions are the runtime's
- a draft chain is pruned to two rows (draft_keep_per_chain)
- abap2js: itab[ n ], the new window_bind_tab( ); samples 0.5.0
- t.ref( ) of 0.7.0, which the site had skipped
- the default CSP has no 'unsafe-eval' on 1.151.0 (measured), and the
  popup classes left the runtime, so the pages that said otherwise say so

Measured where it says measured: cap2UI5's example on the published
runtime 1.151.0, on the wire. No browser was run.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014YZFmF5H6WQ7x9qQkEGQmH
@oblomov-dev
oblomov-dev merged commit 0dd444a into main Nov 27, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants