Repository navigation
v0.0.1-beta.7: Merge pull request #105 from goesm-dev/claude/initial-app-7x639y
Pre-release
Pre-release
·
70 commits
to main
since this release
Tagged on 2026-10-17. Changes since v0.0.1-beta.6: v0.0.1-beta.6...v0.0.1-beta.7.
Bundle size
- A
switchwhose cases are all constants of a boolean, string or number type (notint64oruint64) is a JSswitchon the tag, instead of a chain of comparisons selecting a case index. unicode.ToUpperandToLowerbeyond ASCII are the engine'stoUpperCaseandtoLowerCaseof the rune, with Go's simple mapping where the engine's full mapping gives several runes. A program that converts case no longer keepsCaseRanges, about 10 KB minified. A case pair added in a later Unicode version than the engine's is left unmapped.- A call of
slices.Sort(also throughsort.Intsandsort.Strings) whose element type is an integer or string type where it is called goes to the engine's sort directly. A program that sorts only those no longer keepsslices.Sortand its pdqsort, about 7 KB minified.
日本語
2026-10-17 にタグを付けました。v0.0.1-beta.6 からの差分は v0.0.1-beta.6...v0.0.1-beta.7 で確認できます。
バンドルサイズ
- すべての case が bool、文字列、数値の型 (
int64とuint64を除く) の定数であるswitchは、比較を並べて case の番号を選ぶ代わりに、tag に対する JS のswitchになりました。 - ASCII 以外の rune の
unicode.ToUpperとToLowerは engine のtoUpperCaseとtoLowerCaseになりました。engine の完全な対応が複数の rune になる場合は Go の単純な対応を返します。大文字小文字を変換するプログラムにCaseRanges(minify 後約 10 KB) が残らなくなりました。engine のものより新しい Unicode のバージョンで追加された大文字と小文字の組は変換しません。 - 呼び出す場所で要素の型が整数か文字列の型と決まっている
slices.Sort(sort.Intsとsort.Strings経由も含む) の呼び出しは、engine の sort を直接呼ぶようになりました。それだけをソートするプログラムにslices.Sortとその pdqsort (minify 後約 7 KB) が残らなくなりました。