Skip to content

Commit 4b36f01

Browse files
silverwindclaude
andauthored
Update emoji data for Unicode 16 (#36596)
Use emoji data from github/gemoji#303 because `github/gemoji` is unmaintained. `assets/emoji.json` is now pretty-printed so that future diffs will actually be readable. This causes no isses as the only place where it is used is in frontend which imports it via `with {type: 'json'}` where whitespace is irrelevant. <img width="205" height="75" alt="image" src="https://github.com/user-attachments/assets/96e335b8-acf6-4996-ace4-824c0870a7d3" /> --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent d582c9c commit 4b36f01

4 files changed

Lines changed: 11669 additions & 49 deletions

File tree

assets/emoji.json

Lines changed: 11483 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/generate-emoji.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ import (
2424
)
2525

2626
const (
27-
gemojiURL = "https://raw.githubusercontent.com/github/gemoji/master/db/emoji.json"
28-
maxUnicodeVersion = 15
27+
gemojiURL = "https://raw.githubusercontent.com/rhysd/gemoji/537ff2d7e0496e9964824f7f73ec7ece88c9765a/db/emoji.json"
28+
maxUnicodeVersion = 16
2929
)
3030

3131
var flagOut = flag.String("o", "modules/emoji/emoji_data.go", "out")
@@ -149,8 +149,8 @@ func generate() ([]byte, error) {
149149
}
150150

151151
// write a JSON file to use with tribute (write before adding skin tones since we can't support them there yet)
152-
file, _ := json.Marshal(data)
153-
_ = os.WriteFile("assets/emoji.json", file, 0o644)
152+
file, _ := json.MarshalIndent(data, "", " ")
153+
_ = os.WriteFile("assets/emoji.json", append(file, '\n'), 0o644)
154154

155155
// Add skin tones to emoji that support it
156156
var (

0 commit comments

Comments
 (0)