Skip to content

Commit

Permalink
enhance: support Unicode 15.0 emoji (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
zyoshoka authored Dec 16, 2023
1 parent ae92c2a commit 902da0b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@
-->

## 0.x.x (unreleased)
### Features
- Supports Unicode 15.0 emoji

## 0.23.3
- tweak fn parsing
- fnNameList option removed
Expand Down
26 changes: 13 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typescript": "4.7.4"
},
"dependencies": {
"twemoji-parser": "14.0.0"
"@twemoji/parser": "15.0.0"
},
"files": [
"built",
Expand Down
2 changes: 1 addition & 1 deletion src/@types/twemoji.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module 'twemoji-parser/dist/lib/regex' {
declare module '@twemoji/parser/dist/lib/regex' {
const regex: RegExp;
export default regex;
}
4 changes: 2 additions & 2 deletions src/internal/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import * as P from './core';
import { mergeText } from './util';

// NOTE:
// tsdのテストでファイルを追加しているにも関わらず「twemoji-parser/dist/lib/regex」の型定義ファイルがないとエラーが出るため、
// tsdのテストでファイルを追加しているにも関わらず「@twemoji/parser/dist/lib/regex」の型定義ファイルがないとエラーが出るため、
// このエラーを無視する。
/* eslint @typescript-eslint/ban-ts-comment: 1 */
// @ts-ignore
import twemojiRegex from 'twemoji-parser/dist/lib/regex';
import twemojiRegex from '@twemoji/parser/dist/lib/regex';

type ArgPair = { k: string, v: string | true };
type Args = Record<string, string | true>;
Expand Down

0 comments on commit 902da0b

Please sign in to comment.