From 92d60c1d6bbf07b0c5560cd324e32f2ad4fa18e3 Mon Sep 17 00:00:00 2001 From: Zx Date: Tue, 13 Aug 2024 22:00:19 -0700 Subject: [PATCH] Switch to @twemoji/api 15.1.0 --- README.md | 6 +++--- package.json | 4 ++-- src/Twemoji/index.js | 2 +- yarn.lock | 26 +++++++++++++------------- 4 files changed, 19 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index f1e32c2..e67e0da 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # react-twemoji -A simple [React](https://facebook.github.io/react/) wrapper for [Twemoji](https://github.com/twitter/twemoji). +A simple [React](https://facebook.github.io/react/) wrapper for [Twemoji](https://github.com/jdecked/twemoji). It calls twemoji.parse() to convert emoji characters to Twemoji images. ## Install @@ -31,9 +31,9 @@ It outputs the following HTML to DOM, ```html

- 😂 + 😂 - 😉 + 😉

diff --git a/package.json b/package.json index e4e4b67..ac622a5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-twemoji", - "version": "0.5.0", + "version": "0.6.0", "description": "A React wrapper for Twemoji", "keyword": [ "emoji", @@ -63,7 +63,7 @@ "dependencies": { "lodash.isequal": "^4.5.0", "prop-types": "^15.7.2", - "twemoji": "14.0.1" + "@twemoji/api": "15.1.0" }, "peerDependencies": { "react": ">=16.4.2" diff --git a/src/Twemoji/index.js b/src/Twemoji/index.js index c6efa41..7b867e9 100644 --- a/src/Twemoji/index.js +++ b/src/Twemoji/index.js @@ -1,7 +1,7 @@ import isEqual from 'lodash.isequal'; import React from 'react'; import PropTypes from 'prop-types'; -import twemoji from 'twemoji'; +import twemoji from '@twemoji/api'; export default class Twemoji extends React.Component { static propTypes = { diff --git a/yarn.lock b/yarn.lock index cd85f2a..fd1374e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -638,6 +638,19 @@ version "1.0.2" resolved "https://registry.yarnpkg.com/@socket.io/base64-arraybuffer/-/base64-arraybuffer-1.0.2.tgz#568d9beae00b0d835f4f8c53fd55714986492e61" +"@twemoji/api@15.1.0": + version "15.1.0" + resolved "https://registry.yarnpkg.com/@twemoji/api/-/api-15.1.0.tgz#66fc74c74accbcb6376d977560a03bba5215923c" + dependencies: + "@twemoji/parser" "15.1.0" + fs-extra "^8.0.1" + jsonfile "^5.0.0" + universalify "^0.1.2" + +"@twemoji/parser@15.1.0": + version "15.1.0" + resolved "https://registry.yarnpkg.com/@twemoji/parser/-/parser-15.1.0.tgz#ad83b69fcd1fbcb705022f2b85d73e127ad5f335" + "@types/component-emitter@^1.2.10": version "1.2.11" resolved "https://registry.yarnpkg.com/@types/component-emitter/-/component-emitter-1.2.11.tgz#50d47d42b347253817a39709fef03ce66a108506" @@ -4794,19 +4807,6 @@ tty-browserify@0.0.0: version "0.0.0" resolved "https://registry.yarnpkg.com/tty-browserify/-/tty-browserify-0.0.0.tgz#a157ba402da24e9bf957f9aa69d524eed42901a6" -twemoji-parser@14.0.0: - version "14.0.0" - resolved "https://registry.yarnpkg.com/twemoji-parser/-/twemoji-parser-14.0.0.tgz#13dabcb6d3a261d9efbf58a1666b182033bf2b62" - -twemoji@14.0.1: - version "14.0.1" - resolved "https://registry.yarnpkg.com/twemoji/-/twemoji-14.0.1.tgz#0640887ef149403ae577081cbc2480a026e55ed6" - dependencies: - fs-extra "^8.0.1" - jsonfile "^5.0.0" - twemoji-parser "14.0.0" - universalify "^0.1.2" - type-check@~0.3.2: version "0.3.2" resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72"