Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion buffe.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
function Buffe($, { h, w, s = 4 } = {}) {
if (!(this instanceof Buffe)) return new Buffe($, arguments[1]);

const coreVersion = '17.7.0-alpha.1';
const coreVersion = '17.8.0-alpha.1';
// y is 0-indexed model line numbers, x is column.
// cursor IFF head === anchor, else is a selection.
const anchor = { y: 0, x: 0 }, detached = {};
Expand Down
2 changes: 1 addition & 1 deletion buffee.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function BuffeeNativeController(editor) {
* const editor = Buffee(Buffe(document.getElementById('editor'), { h: 25 }));
*/
function Buffee(editorOrEl, opts) {
const buffeeVersion = '17.7.0-alpha.1';
const buffeeVersion = '17.8.0-alpha.1';
const editor = editorOrEl instanceof Buffe ? editorOrEl : new Buffe(editorOrEl, opts);
editor.Ctrl = BuffeeNativeController(editor);
editor.Mode.ext.push('Buffee@' + buffeeVersion);
Expand Down
5 changes: 5 additions & 0 deletions dev/changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
* Project Devlog

** 17.8.0-alpha.1 [2026-01-14]
*** core (buffe) : gz: 1809 / 1.77 KB (-4), br: 1675 / 1.64 KB (-1), min: 3708 / 3.62 KB (-10)
*** combined (buffee): gz: 2378 / 2.32 KB (-3), br: 2190 / 2.14 KB (-1), min: 5122 / 5.00 KB (-10)
- build: add terser pure_getters option (-10 bytes)

** 17.7.0-alpha.1 [2026-01-14]
*** core (buffe) : gz: 1813 / 1.77 KB (0), br: 1676 / 1.64 KB (-4), min: 3718 / 3.63 KB (0)
*** combined (buffee): gz: 2381 / 2.33 KB (0), br: 2192 / 2.14 KB (-4), min: 5132 / 5.01 KB (0)
Expand Down
2 changes: 1 addition & 1 deletion dist/buffe.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/buffee.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions hooks/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ report_sizes() {

# Generate dist/buffe.min.js (core only)
get_old_sizes dist/buffe.min.js
perl -pe 's/\bconst\b/let/g' buffe.js | terser -c -m -o dist/buffe.min.js
perl -pe 's/\bconst\b/let/g' buffe.js | terser -c pure_getters -m -o dist/buffe.min.js
if [ $? -ne 0 ]; then echo "✗ buffe.min.js minification failed"; exit 1; fi
report_sizes "buffe.min.js (core)" dist/buffe.min.js
CORE_SIZE=$NEW_SIZE; CORE_GZ=$NEW_GZIPPED; CORE_BR=$NEW_BROTLI
Expand All @@ -132,7 +132,7 @@ CORE_DIFF=${DIFF:-0}; CORE_DIFF_GZ=${DIFF_GZIPPED:-0}; CORE_DIFF_BR=${DIFF_BROTL

# Generate dist/buffee.min.js (core + controller)
get_old_sizes dist/buffee.min.js
cat buffe.js buffee.js | perl -pe 's/\bconst\b/let/g' | terser -c -m -o dist/buffee.min.js
cat buffe.js buffee.js | perl -pe 's/\bconst\b/let/g' | terser -c pure_getters -m -o dist/buffee.min.js
if [ $? -ne 0 ]; then echo "✗ buffee.min.js minification failed"; exit 1; fi
report_sizes "buffee.min.js (combined)" dist/buffee.min.js
COMB_SIZE=$NEW_SIZE; COMB_GZ=$NEW_GZIPPED; COMB_BR=$NEW_BROTLI
Expand Down
Loading
Loading