Skip to content

v0.0.1-beta.7: Merge pull request #105 from goesm-dev/claude/initial-app-7x639y

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 17 Oct 06:56
· 70 commits to main since this release
33d4c54

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 switch whose cases are all constants of a boolean, string or number type (not int64 or uint64) is a JS switch on the tag, instead of a chain of comparisons selecting a case index.
  • unicode.ToUpper and ToLower beyond ASCII are the engine's toUpperCase and toLowerCase of the rune, with Go's simple mapping where the engine's full mapping gives several runes. A program that converts case no longer keeps CaseRanges, 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 through sort.Ints and sort.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 keeps slices.Sort and 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) が残らなくなりました。