17.0.0 alpha.1: Decouple Buffe (model-view, text buffer core) from Buffee (MVC) - #70
Merged
Conversation
- buffe.js: Buffe function - core rendering engine without keyboard handling - buffee.js: Buffee function - extends Buffe, adds clipboard and keyboard controller - Update all HTML files to import both scripts - Update docs and wrapper comments - Update pre-commit hook to handle split files
- Buffe.plug(ctrl) registers controller, auto-unplugs previous - Buffe.unplug() removes current controller - Controller returns cleanup function for event handler removal - Buffee.controller extracted as static, plugged in constructor
- Accepts Buffe instance (combinator style) or element (shorthand) - Registers in Mode.ext like other combinators - Buffee(editor) or Buffee(el, opts) both work
- api: Buffe callable without new for consistent function chaining - fix: use instanceof for robust Buffe detection in Buffee
- api: version string is now Mode.ext[0] instead of instance.v - Updated docs, tests, and pre-commit hook
# Please enter the commit message for your changes. Lines starting # with '#' will be kept; you may remove them yourself if you want to. # An empty message aborts the commit. # # Date: Wed Jan 14 09:46:01 2026 +0100 # # On branch 17.0.0-alpha.1 # Changes to be committed: # modified: index.html # # Changes not staged for commit: # modified: docs/api.txt # modified: index.html #
- Remove plug/unplug from Buffe core - Controller is now convention: editor.Ctrl = Controller(editor) - Call editor.Ctrl() to unregister (cleanup function) - index.html: add quote, syntax-highlighted code examples
- Add buffeeVersion constant to buffee.js - Mode.ext now includes version: 'Buffee@17.6.0-alpha.1' - Pre-commit hook tracks buffee.js version - Docs: add versioning section to api.txt
- Add createBareEditor() helper for testing Buffe without Buffee - Add test for bare Buffe Mode.ext having core version only - Add test for Buffee@version in Mode.ext - Update existing tests to slice(2) since Buffee now adds version
varrockbank
force-pushed
the
17.0.0-alpha.1
branch
2 times, most recently
from
January 14, 2026 09:54
41c3abb to
e8406d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.