Skip to content

Commit

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

**Features:**

- Supports [Emoji v14.0](https://emojipedia.org/emoji-14.0/) (depending on OS) and custom emoji
- Supports [Emoji v15.0](https://emojipedia.org/emoji-15.0/) (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 Expand Up @@ -158,14 +158,14 @@ Then, specify the maximum emoji version supported by the font (see [Emojipedia](
In HTML:

```html
<emoji-picker emoji-version="14.0"></emoji-picker>
<emoji-picker emoji-version="15.0"></emoji-picker>
```

Or JavaScript:

```js
const picker = new Picker({
emojiVersion: 14.0
emojiVersion: 15.0
});
```

Expand Down
1 change: 1 addition & 0 deletions bin/versionsAndTestEmoji.js
Expand Up @@ -8,6 +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,
'🫠': 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 @@ -90,7 +90,7 @@
"cross-env": "^7.0.3",
"csso": "^5.0.2",
"d2l-resize-aware": "BrightspaceUI/resize-aware#semver:^1.2.2",
"emoji-picker-element-data": "^1.3.0",
"emoji-picker-element-data": "^1.4.0",
"emojibase-data": "^5.1.1",
"express": "^4.18.2",
"fake-indexeddb": "3.1.7",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3092,10 +3092,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.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/emoji-picker-element-data/-/emoji-picker-element-data-1.3.0.tgz#64423b97a91dd0da798023077ebe745c287b23d4"
integrity sha512-0Hsp+MgX0R7wUKaRx34ILJsVsTaz2rpEDwdnb0lP3eEoquLVgZUY+jyrbdFzuwceY026egaeIRMVCcs239SCbQ==
emoji-picker-element-data@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/emoji-picker-element-data/-/emoji-picker-element-data-1.4.0.tgz#85ec882fff5ed7345ba8547a34dcdd8ec944680d"
integrity sha512-1SSP0Tat3zswRus82/D8tSpQWY/raP/FDSmlZmSH4Ek+R24DnO2ihn3Y77RuHjmnMWtZBAzSEM4+an/b91RYyg==

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

0 comments on commit c68ecf5

Please sign in to comment.