emoji-picker-element
Advanced tools
Comparing version 1.3.3 to 1.3.4
@@ -0,1 +1,16 @@ | ||
## [1.3.4](https://github.com/nolanlawson/emoji-picker-element/compare/v1.3.3...v1.3.4) (2020-12-29) | ||
### Bug Fixes | ||
* fix getEmojiByShortcode when shortcodes are optional ([#98](https://github.com/nolanlawson/emoji-picker-element/issues/98)) ([f4e7ad8](https://github.com/nolanlawson/emoji-picker-element/commit/f4e7ad8bdf063b0ca07dbbd3f9d1dcf50138de8a)) | ||
### Performance Improvements | ||
* reduce bundle size by optimizing HTML/CSS a bit ([#97](https://github.com/nolanlawson/emoji-picker-element/issues/97)) ([3bf8225](https://github.com/nolanlawson/emoji-picker-element/commit/3bf8225b41f3cee9a8ec37cc00afd8f32a1a6499)) | ||
* simplify baseline emoji html ([#96](https://github.com/nolanlawson/emoji-picker-element/issues/96)) ([4f03bfc](https://github.com/nolanlawson/emoji-picker-element/commit/4f03bfc961145a95ebfa2deb3d6b5c23ded60d37)) | ||
## [1.3.3](https://github.com/nolanlawson/emoji-picker-element/compare/v1.3.2...v1.3.3) (2020-12-25) | ||
@@ -2,0 +17,0 @@ |
@@ -465,3 +465,3 @@ function assertNonEmptyString (str) { | ||
return emojis.filter(_ => { | ||
const lowerShortcodes = _.shortcodes.map(_ => _.toLowerCase()); | ||
const lowerShortcodes = (_.shortcodes || []).map(_ => _.toLowerCase()); | ||
return lowerShortcodes.includes(shortcode.toLowerCase()) | ||
@@ -527,3 +527,4 @@ })[0] || null | ||
} | ||
// TODO: this could be optimized by doing the get and the cursor.continue() in parallel | ||
// This could be done in parallel (i.e. make the cursor and the get()s parallelized), | ||
// but my testing suggests it's not actually faster. | ||
getIDB(emojiStore, unicodeOrName, emoji => { | ||
@@ -530,0 +531,0 @@ if (emoji) { |
{ | ||
"name": "emoji-picker-element", | ||
"version": "1.3.3", | ||
"version": "1.3.4", | ||
"description": "Lightweight emoji picker distributed as a web component", | ||
@@ -42,5 +42,5 @@ "main": "index.js", | ||
"lint:fix": "standard --fix && stylelint --fix '**/*.scss'", | ||
"test": "jest", | ||
"test": "jest --runInBand", | ||
"test:adhoc": "node ./test/adhoc/server.js", | ||
"cover": "jest --coverage", | ||
"cover": "jest --runInBand --coverage", | ||
"docs": "node bin/processCustomEmoji.js", | ||
@@ -85,2 +85,3 @@ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", | ||
"cssnano": "^4.1.10", | ||
"d2l-resize-aware": "BrightspaceUI/resize-aware#semver:^1.2.2", | ||
"emoji-picker-element-data": "^1.0.0", | ||
@@ -143,2 +144,3 @@ "emojibase-data": "^5.1.1", | ||
"CustomEvent", | ||
"Event", | ||
"fetch", | ||
@@ -189,3 +191,3 @@ "getComputedStyle", | ||
"path": "./bundle.js", | ||
"maxSize": "41.5 kB", | ||
"maxSize": "41.1 kB", | ||
"compression": "none" | ||
@@ -192,0 +194,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
498214
5562
56