fix(deps): resolve open Dependabot alerts (#5778)

* fix(deps): resolve open Dependabot alerts

* test: remove lockfile version assertions

* chore(deps): point Foliate at merged PDF.js fix
This commit is contained in:
Huang Xin 2026-08-19 02:22:38 +08:00 committed by GitHub
parent b50ff93741
commit 3e6cb2bca9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 167 additions and 501 deletions

View file

@ -102,8 +102,8 @@
"dependencies": {
"@ai-sdk/openai-compatible": "^2.0.48",
"@ai-sdk/react": "^3.0.49",
"@assistant-ui/react": "0.11.56",
"@assistant-ui/react-ai-sdk": "1.1.21",
"@assistant-ui/react": "0.11.58",
"@assistant-ui/react-ai-sdk": "1.2.0",
"@assistant-ui/react-markdown": "0.11.9",
"@aws-sdk/client-s3": "^3.1000.0",
"@aws-sdk/s3-request-presigner": "^3.1000.0",

@ -1 +1 @@
Subproject commit 25ae01833968aac1a02c17de7acba4247506ab2c
Subproject commit 913dc3574ae022563f2e7ed17c9ed5974e96aa53

View file

@ -1,32 +0,0 @@
diff --git a/dist/index.js b/dist/index.js
index f6fa5a295309e45bfa9d0114976751706c6613bf..507892f405ed6843484bc6fbb09441338e81ab51 100644
--- a/dist/index.js
+++ b/dist/index.js
@@ -1824,8 +1824,9 @@ function stringifyRegExpWithFlags(regex, refs) {
}
if (flags.m) {
if (source[i] === "^") {
- pattern += `(^|(?<=[\r
-]))`;
+ // Changed from lookbehind (?<=[\r\n]) to support older iOS Safari (before 16.4)
+ pattern += `(^|[\r
+])`;
continue;
} else if (source[i] === "$") {
pattern += `($|(?=[\r
diff --git a/dist/index.mjs b/dist/index.mjs
index 6f3887f5cc4b62a386978f7504b8083a7f56b82f..715483c0b59f52d64b3bf96c6fa0371bb5456e8d 100644
--- a/dist/index.mjs
+++ b/dist/index.mjs
@@ -1734,8 +1734,9 @@ function stringifyRegExpWithFlags(regex, refs) {
}
if (flags.m) {
if (source[i] === "^") {
- pattern += `(^|(?<=[\r
-]))`;
+ // Changed from lookbehind (?<=[\r\n]) to support older iOS Safari (before 16.4)
+ pattern += `(^|[\r
+])`;
continue;
} else if (source[i] === "$") {
pattern += `($|(?=[\r

619
pnpm-lock.yaml generated

File diff suppressed because it is too large Load diff

View file

@ -19,11 +19,16 @@ onlyBuiltDependencies:
- sharp
patchedDependencies:
'@ai-sdk/provider-utils@3.0.25': patches/@ai-sdk__provider-utils@3.0.25.patch
'@ai-sdk/provider-utils@4.0.27': patches/@ai-sdk__provider-utils@4.0.27.patch
mdast-util-gfm-autolink-literal@2.0.1: patches/mdast-util-gfm-autolink-literal@2.0.1.patch
overrides:
deepmerge-ts: '>=8.0.1 <9'
'nanoid@3': '>=3.3.18 <4'
'nanoid@5': '>=5.1.16 <6'
'@puppeteer/browsers': '3.2.1'
pdfjs-dist: '>=6.2.108 <7'
mermaid: '>=11.16.1 <12'
glob: '>=11.1.0'
jws: '>=4.0.1'
vite: '>=7.3.5 <8'
@ -33,7 +38,7 @@ overrides:
undici: '>=7.29.0 <8'
flatted: '>=3.4.2'
body-parser: '>=2.3.0'
dompurify: '>=3.4.12'
dompurify: '>=3.4.13'
i18next-http-backend: '>=3.0.5'
picomatch: '>=4.0.4'
path-to-regexp: '>=8.4.0'
@ -50,7 +55,7 @@ overrides:
shell-quote: '>=1.9.0'
sharp: '>=0.35.0 <0.36'
form-data: '>=4.0.6'
js-yaml: '>=4.3.0 <5'
js-yaml: '>=4.3.1 <5'
'brace-expansion@1': '>=1.1.18 <2'
'brace-expansion@2': '>=2.1.4 <3'
'brace-expansion@5': '>=5.0.9 <6'