From 1f3efb55f29f78494807b4d89eae1d6af32abfd5 Mon Sep 17 00:00:00 2001 From: GleidsonDaniel Date: Thu, 22 Feb 2024 10:13:36 -0300 Subject: [PATCH] fix: bump commonmark and remove patch --- package.json | 2 +- patches/commonmark+0.29.0.patch | 13 ------------- yarn.lock | 7 +++---- 3 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 patches/commonmark+0.29.0.patch diff --git a/package.json b/package.json index 8e0bd971b..40ecc64fe 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,7 @@ "@rocket.chat/ui-kit": "^0.31.19", "bytebuffer": "^5.0.1", "color2k": "1.2.4", - "commonmark": "RocketChat/commonmark.js#bb03ae0b380152a3286f910fddc9d4d66a978ad4", + "commonmark": "https://github.com/RocketChat/commonmark.js.git", "commonmark-react-renderer": "git+https://github.com/RocketChat/commonmark-react-renderer.git", "dequal": "^2.0.3", "ejson": "^2.2.3", diff --git a/patches/commonmark+0.29.0.patch b/patches/commonmark+0.29.0.patch deleted file mode 100644 index c0119b344..000000000 --- a/patches/commonmark+0.29.0.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/node_modules/commonmark/lib/inlines.js b/node_modules/commonmark/lib/inlines.js -index 4179cfd..478bbd5 100644 ---- a/node_modules/commonmark/lib/inlines.js -+++ b/node_modules/commonmark/lib/inlines.js -@@ -996,7 +996,7 @@ var parseEmail = function(block) { - } - } - --var reHashtag = XRegExp.cache('^#(\\pL[\\pL\\d\\-_.]*[\\pL\\d])'); -+var reHashtag = XRegExp.cache('^#([\\pL\\d\\-_.]*[\\pL\\d])'); - var parseHashtag = function(block) { - if (this.brackets) { - // Don't perform autolinking while inside an explicit link diff --git a/yarn.lock b/yarn.lock index f6339c497..1bb494292 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8619,7 +8619,6 @@ builtins@^1.0.3: resolved "https://registry.yarnpkg.com/builtins/-/builtins-1.0.3.tgz#cb94faeb61c8696451db36534e1422f94f0aee88" integrity sha512-uYBjakWipfaO/bXI7E8rq6kpwHRZK5cNYrUv2OzZSI/FvmdMyXJ2tG9dKcjEC5YHmHpUAwsargWIZNWdxb/bnQ== - bunyamin@^1.5.0: version "1.5.2" resolved "https://registry.yarnpkg.com/bunyamin/-/bunyamin-1.5.2.tgz#681db204c0b16531369d5c1f6c89dc8d760b7558" @@ -9382,9 +9381,9 @@ commondir@^1.0.1: pascalcase "^0.1.1" xss-filters "^1.2.6" -commonmark@RocketChat/commonmark.js#bb03ae0b380152a3286f910fddc9d4d66a978ad4: - version "0.29.2" - resolved "https://codeload.github.com/RocketChat/commonmark.js/tar.gz/bb03ae0b380152a3286f910fddc9d4d66a978ad4" +"commonmark@https://github.com/RocketChat/commonmark.js.git": + version "0.29.4" + resolved "https://github.com/RocketChat/commonmark.js.git#7ce50a3b3c30a80a5a5d08a70f7695a29e7398ab" dependencies: entities "~2.0" mdurl "~1.0.1"