From 2aa171a52f77a365f3044648af60e6d0b53010d1 Mon Sep 17 00:00:00 2001 From: Florian Eckerstorfer Date: Mon, 13 Nov 2023 21:12:41 +0100 Subject: [PATCH 1/3] 4.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 1ef493a..c25b4a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@fec/remark-a11y-emoji", - "version": "3.1.0", + "version": "4.0.0", "description": "Remark plugin to add a label to emoji and make them accessible.", "main": "dist/remark-a11y-emoji.cjs.js", "module": "dist/remark-a11y-emoji.esm.js", From d814271206a3e795d3385b5729a05bc62dd42a89 Mon Sep 17 00:00:00 2001 From: Florian Eckerstorfer Date: Wed, 15 Nov 2023 19:53:34 +0100 Subject: [PATCH 2/3] chore: Set correct of mdast-util-field-and-replace --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index c25b4a9..9818d69 100644 --- a/package.json +++ b/package.json @@ -45,10 +45,10 @@ "@babel/preset-env": "^7.12.7", "@rollup/plugin-commonjs": "^24.0.1", "@rollup/plugin-json": "^4.1.0", - "rehype-stringify": "^9.0.3", "@rollup/plugin-node-resolve": "^15.0.1", "babel-jest": "^29.5.0", "jest": "^29.5.0", + "rehype-stringify": "^9.0.3", "remark": "^13.0.0", "remark-rehype": "^10.1.0", "rollup": "^2.34.0" @@ -56,7 +56,7 @@ "dependencies": { "emoji-regex": "^10.0.0", "gemoji": "^6.1.0", - "mdast-util-find-and-replace": "^2.2.2", + "mdast-util-find-and-replace": "^1.1.1", "unist-util-visit": "^3.1.0" }, "engines": { From 612ea9e44b4c0bc0bc47bda035c00b7d67be3627 Mon Sep 17 00:00:00 2001 From: Florian Eckerstorfer Date: Wed, 15 Nov 2023 19:57:28 +0100 Subject: [PATCH 3/3] fix: Fix import for findAndReplace --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 492eec8..c58cd5b 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import emojiRegex from 'emoji-regex'; -import { findAndReplace } from 'mdast-util-find-and-replace'; +import findAndReplace from 'mdast-util-find-and-replace'; import { getEmojiDescription } from './helper'; function a11yEmoji() {