Skip to content

1.13.0 — Code modularisation

Choose a tag to compare

@nickhamze nickhamze released this 25 Mar 23:23
· 97 commits to main since this release

What changed

Internal code reorganisation. No user-facing changes.

edit.js — the main block editor file — has been split from 6,745 lines into focused, independently-testable modules:

  • src/data/ — personalities, tokens, content types, presets, and UI strings (pure data, no React)
  • src/components/ — BuildScreen, ContentItem, LayoutWireframe, ResultsScreen, SavedSessions
  • src/lib/ — prompt builders and the UUID helper (deduplicated)

edit.js is now 1,797 lines (down 73%). The production build, all tests, and all lint checks are unchanged.

Safe to update. No plugin behaviour has changed.