Skip to content

M1: add Model, List, Component with deprecated LEO aliases - #31

Merged
basiclines merged 1 commit into
masterfrom
roadmap/m1-rename-aliases
Nov 6, 2026
Merged

basiclines merged 1 commit into
masterfrom
roadmap/m1-rename-aliases

Conversation

@basiclines

Copy link
Copy Markdown
Owner

Roadmap: #30, M1 Stack + naming, slice "rename with aliases".

What changed

  • src/leo.js exports Model, List, Component; LEOObject, LEOList, LEOElement stay as deprecated aliases (same classes, so instanceof and subclassing keep working).
  • readme.template uses the new names and notes the aliases; README and dist/ regenerated (npm run dist). Examples keep the old names on purpose (alias coverage) and their built bundles were rebuilt.

Tests (written first)

tests/unit/aliases_tests.js: new names exported, aliases are strictly equal to the new names, List instanceof Model. Failed 3/3 before the change.

Mutation evidence

  • Removed the alias export: alias identity test fails (1 failing).
  • Removed the new-name export: all 3 new tests fail.
  • Restored: 55 passing.

Checks run locally

npm test (55 pass), npm run dist, npm run build:examples && npm run test:examples passed.

Pending (rest of M1)

TypeScript move, tsup/Vite, Vitest, automatic JSX runtime, drop polyfills and committed dist. No size or performance numbers claimed.

@basiclines basiclines added the leo-roadmap Roadmap builder PR (#30) label Nov 6, 2026

@basiclines basiclines left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewer verdict: ready (head 7be0e3f; builder revision not stated on the PR).

  • CI: both test checks SUCCESS; mergeable CLEAN, base master.
  • Local: npm test 55 passing at this head.
  • Mutation spot-check: removing the deprecated alias export makes the alias identity test fail (54 pass, 1 fail); restored, 55 pass.
  • Scope: first unchecked milestone M1 (rename with aliases). Model/List/Component exported, LEOObject/LEOList/LEOElement kept as same-class deprecated aliases, no removal, no release/version change, no perf or size claims. Docs/README and committed dist regenerated per current policy.
  • Gaps: none blocking. Remaining M1 items (TS, tsup/Vite, Vitest, JSX runtime, drop dist) stay pending, so M1 is not checked.

@basiclines basiclines added the ready-to-merge Reviewer: milestone criteria met, CI green label Nov 6, 2026 — with Copilot SWE Agent
@basiclines
basiclines merged commit 384bfd6 into master Nov 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

leo-roadmap Roadmap builder PR (#30) ready-to-merge Reviewer: milestone criteria met, CI green

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants