15.x.x-alpha.1: Minimize API Surface - #66
Merged
Merged
Conversation
- Remove expandTabs function from core - text inserted as-is - Add BuffeeSanitize extension for opt-in sanitization: - Converts tabs to spaces based on Mode.s - Removes zero-width chars (ZWSP, ZWNJ, ZWJ, BOM) - Normalizes multi-width Unicode spaces - API: Sanitize.line(), text(), lines() - Update docs with sanitization guidance - Add navigation link to API docs
- Add ext array to Mode for tracking extension registration order - All extensions now push their name to Mode.ext on initialization - Add unit tests for extension registration and chaining patterns
- `Span.ins('text')` → `Span.ins(['text'])`
- `Span.ins('line1\nline2')` → `Span.ins(['line1', 'line2'])`
- Client handles newline splitting, not buffee core
- FileLoader: removed expandTabs from appendLines helper
- sample-loader.html: wrap with BuffeeSanitize for tab handling
- Update API docs for Span.ins and Mode.ext
- Public API changed: editor.View.render() and editor.View.RENDER() - Internal implementation unchanged (render/RENDER remain as const) - Updated all extensions to destructure render from editor.View - Converted docs/api.md to docs/api.txt (ASCII plaintext format) - Updated all references to api.md throughout codebase - Bump version to 15.6.0-alpha.1
- Rename extensions/ directory to combinators/ - Rename web/extensions.html to web/combinators.html - Rename test/lib/test-extensions.js to test/lib/test-combinators.js - Update all path references across codebase - Update wrapper props: extensions → combinators - Update documentation and navigation - Bump wrapper versions to 1.3.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
# 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: Tue Jan 13 11:10:29 2026 +0100 # # On branch 15.0.0-alpha.1 # Changes to be committed: # modified: README.md # modified: index.html # modified: samples/sample-tui.html # modified: themes/theme-hn.css # modified: web/combinators.html # # 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: Tue Jan 13 11:10:29 2026 +0100 # # On branch 15.0.0-alpha.1 # Changes to be committed: # modified: README.md # modified: index.html # modified: samples/sample-tui.html # modified: themes/theme-hn.css # modified: web/combinators.html #
- api: remove View._ getter (unused, reduces API surface) - docs: remove View._ from README
- View.first = n replaces View.set(n) - View.n = n replaces View.size(n) - Removed resize helper function
Modern browsers fire copy/cut events on any focused element, so the hidden textarea workaround is no longer needed. Breaking: buffee-clip textarea no longer required in HTML template.
Empty clipboard paste is a no-op, no need for conditional check.
Optional chaining ?.() already handles missing keys as no-ops.
Only z (undo/redo) remains, so inline directly in keydown handler.
varrockbank
force-pushed
the
15.0.0-alpha.1
branch
from
January 13, 2026 21:54
cd02eb6 to
a18cc53
Compare
- Model.end returns last coordinate {y, x} (replaces Model.last)
- Span.select() accepts optional position to set head
- Update api.txt documentation
varrockbank
force-pushed
the
15.0.0-alpha.1
branch
3 times, most recently
from
January 14, 2026 00:38
3cb7dc4 to
122c5a0
Compare
- Update StatusLine and UltraHighCapacity for Model.end API - Remove obsolete View.N from api.txt - Handle UltraHighCapacity mode in computeByteCount - Fix sample-loader.html to use View.render() - Fix ios.js to use Model.end.y - Default original counts to 0, always show "XL, originally: YL Z bytes" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
varrockbank
force-pushed
the
15.0.0-alpha.1
branch
from
January 14, 2026 00:38
122c5a0 to
e331974
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.
New APIs
Renamed APIs
Removed APIs