Skip to content

Update for lui v2.2.4: actions and setters now return state - #67

Merged
L3P3 merged 3 commits into
masterfrom
copilot/update-lui-package-version
Jan 22, 2026
Merged

Update for lui v2.2.4: actions and setters now return state#67
L3P3 merged 3 commits into
masterfrom
copilot/update-lui-package-version

Conversation

Copilot AI commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

lui v2.2.4 changes hook_model actions and hook_state setters to return the new state value (previously returned undefined).

Changes

  • externs.js: Updated Closure Compiler type definitions for hook_model and hook_state to reflect return types
  • c_menu_start.js: Simplified pattern that manually returned value after calling setter - now uses setter's return value directly
  • package.json: Bump version 0.11.13 → 0.11.14

Example

Before:

const world_selected_id = (
  world_selected_id_state !== world_renamed_id_old
  ? world_selected_id_state
  : (
      world_selected_id_set(world_renamed_id_new),
      world_renamed_id_new  // manually return the same value
    )
);

After:

const world_selected_id = (
  world_selected_id_state !== world_renamed_id_old
  ? world_selected_id_state
  : world_selected_id_set(world_renamed_id_new)  // setter returns it
);

All other action/setter usage remains unchanged - return values are either utilized or safely ignored in statement contexts.

Original prompt

This section details on the original issue you should resolve

<issue_title>lui update</issue_title>
<issue_description>lui was updated here: L3P3/lui#58

Check what needs to be adjusted in this project and adjust it.
Hints:

  • typescript files?
  • closure compiler externs file
  • places where actions are called and the new state used directly after it?
  • places where actions are tail-called and the now returned state might interfere with something</issue_description>

<agent_instructions>also increase patch part of version in package.jscon</agent_instructions>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

… state

Co-authored-by: L3P3 <4629449+L3P3@users.noreply.github.com>
Copilot AI changed the title [WIP] Update project for lui changes Update for lui v2.2.4: actions and setters now return state Jan 22, 2026
Copilot AI requested a review from L3P3 January 22, 2026 11:18
@L3P3
L3P3 marked this pull request as ready for review January 22, 2026 12:04
@L3P3
L3P3 merged commit f4744fd into master Jan 22, 2026
1 check passed
@L3P3
L3P3 deleted the copilot/update-lui-package-version branch January 22, 2026 12:05
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.

lui update

2 participants