Skip to content

Bugfix/primitives cleanup#21

Merged
hexplus merged 24 commits intomainfrom
bugfix/primitives-cleanup
Apr 11, 2026
Merged

Bugfix/primitives cleanup#21
hexplus merged 24 commits intomainfrom
bugfix/primitives-cleanup

Conversation

@hexplus
Copy link
Copy Markdown
Owner

@hexplus hexplus commented Apr 11, 2026

Description

Removes six public APIs that were either one-line forwards to existing primitives or identity wrappers, contradicting the SibuJS philosophy of plain verbs and no framework ceremony:

  • createSignal → was return signal(value). Use signal() directly.
  • createMemo → was return derived(fn). Use derived() directly.
  • createEffect → was return effect(fn). Use effect() directly.
  • memo → was return derived(factory). Use derived() directly.
  • memoFn → was return derived(callback). Use derived() directly.
  • composable → was return setup (identity function). Plain functions are already composables in SibuJS.

Three source files (src/patterns/primitives.ts, src/core/signals/memo.ts, src/core/signals/memoFn.ts) are reduced to empty stubs and can be deleted from disk in a follow-up commit. All barrel exports, build helpers (ide.ts metadata + type stubs + snippets, linting hook list, analyzer module table, Vite/Webpack pure-annotation list, plugins/ecosystem metadata), internal JSDoc references, and the test suite have been updated accordingly. Version bumped to 1.4.0.

Related Issue

Closes #

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Checklist

  • I have read CONTRIBUTING.md
  • My code builds without errors
  • I have tested my changes (npm run lint 395 files clean, vitest run 198 files / 2105 tests passing)
  • I have updated documentation if needed (CHANGELOG 1.4.0 entry with migration guide, sibujs-web Reference page sections + sidebar, public/llms.txt, public/llms-full.txt)

hexplus added 24 commits March 28, 2026 15:11
…eateMemo, createEffect, memo, memoFn, composable); bump to 1.4.0
@hexplus hexplus merged commit e389cf5 into main Apr 11, 2026
1 check passed
@hexplus hexplus deleted the bugfix/primitives-cleanup branch April 11, 2026 20:28
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.

1 participant