Skip to content

Commit

Permalink
feat: add support for emoji v15.1 (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
nolanlawson committed Dec 4, 2023
1 parent f9bd654 commit 2bf5aff
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -11,7 +11,7 @@ A lightweight emoji picker, distributed as a web component.

**Features:**

- Supports [Emoji v15.0](https://emojipedia.org/emoji-15.0/) (depending on OS) and custom emoji
- Supports [Emoji v15.1](https://emojipedia.org/emoji-15.1/) (depending on OS) and custom emoji
- Uses IndexedDB, so it consumes [far less memory](https://nolanlawson.com/2020/06/28/introducing-emoji-picker-element-a-memory-efficient-emoji-picker-for-the-web/) than other emoji pickers
- [Small bundle size](https://bundlephobia.com/result?p=emoji-picker-element) (<15kB min+gz)
- Renders native emoji by default, with support for custom fonts
Expand Down
2 changes: 1 addition & 1 deletion bin/versionsAndTestEmoji.js
Expand Up @@ -8,7 +8,7 @@
// "face without mouth" plus "fog".) These emoji can only be filtered using the width test,
// which happens in checkZwjSupport.js.
export const versionsAndTestEmoji = {
'🫨': 15,
'🫨': 15.1, // shaking head, technically from v15 but see note above
'🫠': 14,
'πŸ₯²': 13.1, // smiling face with tear, technically from v13 but see note above
'πŸ₯»': 12.1, // sari, technically from v12 but see note above
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -89,7 +89,7 @@
"cross-env": "^7.0.3",
"csso": "^5.0.2",
"d2l-resize-aware": "github:BrightspaceUI/resize-aware#semver:^1.2.2",
"emoji-picker-element-data": "^1.5.0",
"emoji-picker-element-data": "^1.6.0",
"emojibase-data": "^5.1.1",
"express": "^4.18.2",
"fake-indexeddb": "^5.0.1",
Expand Down
8 changes: 4 additions & 4 deletions test/spec/database/custom.test.js
Expand Up @@ -163,7 +163,7 @@ describe('custom emoji', () => {
'✌️': 8,
'🐢': 9,
'πŸŽ‰': 3,
'✨': 3,
'✨️': 3,
CapitalLettersLikeThis: 3,
underscores_like_this: 6,
monkey: 5
Expand All @@ -184,7 +184,7 @@ describe('custom emoji', () => {
{ name: 'monkey', shortcodes: ['monkey'], url: 'monkey.png' },
summaryByUnicode('πŸ’'),
summaryByUnicode('πŸŽ‰'),
summaryByUnicode('✨'),
summaryByUnicode('✨️'),
{ name: 'CapitalLettersLikeThis', shortcodes: ['CapitalLettersLikeThis'], url: 'caps.png' }
])

Expand All @@ -197,7 +197,7 @@ describe('custom emoji', () => {
{ name: 'monkey', shortcodes: ['monkey'], url: 'monkey.png' },
summaryByUnicode('πŸ’'),
summaryByUnicode('πŸŽ‰'),
summaryByUnicode('✨'),
summaryByUnicode('✨️'),
{ name: 'CapitalLettersLikeThis', shortcodes: ['CapitalLettersLikeThis'], url: 'caps.png' },
summaryByUnicode('🀣'),
summaryByUnicode('πŸ–οΈ')
Expand All @@ -212,7 +212,7 @@ describe('custom emoji', () => {
summaryByUnicode('🐡'),
summaryByUnicode('πŸ’'),
summaryByUnicode('πŸŽ‰'),
summaryByUnicode('✨'),
summaryByUnicode('✨️'),
summaryByUnicode('🀣'),
summaryByUnicode('πŸ–οΈ')
])
Expand Down
2 changes: 1 addition & 1 deletion test/spec/database/favsAndSkinTone.test.js
Expand Up @@ -44,7 +44,7 @@ describe('database tests', () => {

test('emoji favorite counts', async () => {
await db.incrementFavoriteEmojiCount('🐡')
const emojis = ['πŸ’', 'πŸ˜€', '🐡', 'πŸ˜…', '🀣', 'πŸ–οΈ', '🀏', '✌️', '🐢', 'πŸŽ‰', '✨']
const emojis = ['πŸ’', 'πŸ˜€', '🐡', 'πŸ˜…', '🀣', 'πŸ–οΈ', '🀏', '✌️', '🐢', 'πŸŽ‰', '✨️']

for (let i = 0; i < emojis.length; i++) {
for (let j = 0; j < emojis.length - i + 1; j++) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -2621,10 +2621,10 @@ emittery@^0.13.1:
resolved "https://registry.yarnpkg.com/emittery/-/emittery-0.13.1.tgz#c04b8c3457490e0847ae51fced3af52d338e3dad"
integrity sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==

emoji-picker-element-data@^1.5.0:
version "1.5.0"
resolved "https://registry.yarnpkg.com/emoji-picker-element-data/-/emoji-picker-element-data-1.5.0.tgz#bb6c1b150e856000d1ae291118e729d32e75b7ab"
integrity sha512-2lqImCs/lscLT5+ydNdiV9vLq2/lpTOqQ8ZldwxnVcqSAi4AY0HKNU+gf2RxgFQS7n0V9yhyl+J81ltmAVOeaw==
emoji-picker-element-data@^1.6.0:
version "1.6.0"
resolved "https://registry.yarnpkg.com/emoji-picker-element-data/-/emoji-picker-element-data-1.6.0.tgz#dba55004cbed96847b630e7e9266cae029ecc418"
integrity sha512-ktd7aW5yP8CDmdY4VDo7u1fWDfoSIunVNLBqCCK6wo0E2nxMaPlXG5CzXezCc1LhZIUWisF6OwHhveUCsmzJYQ==

emoji-regex@^8.0.0:
version "8.0.0"
Expand Down

0 comments on commit 2bf5aff

Please sign in to comment.