Skip to content

Commit c9de5cc

Browse files
guanbinruiJack-WorksUncleBill
authored
[Release] Hotfix 2.19.0 => 2.19.1 (patch) (#9388)
* chore: bump version to 2.19.0 * fix: ignore internal error * fix: filter more invalid idents (#9393) * fix: mf-4020 can't use :has(), some users still use chrome<105 (#9392) --------- Co-authored-by: Jack Works <[email protected]> Co-authored-by: UncleBill <[email protected]>
1 parent ce1e1ec commit c9de5cc

File tree

5 files changed

+12
-8
lines changed

5 files changed

+12
-8
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"yarn": ">=999.0.0",
99
"npm": ">=999.0.0"
1010
},
11-
"version": "2.19.0",
11+
"version": "2.19.1",
1212
"private": true,
1313
"license": "AGPL-3.0-or-later",
1414
"scripts": {

packages/base/src/Identifier/profile.ts

+5-3
Original file line numberDiff line numberDiff line change
@@ -18,19 +18,21 @@ export class ProfileIdentifier extends Identifier {
1818
static of(network: string | undefined | null, userID: string | undefined | null): Option<ProfileIdentifier> {
1919
if (!userID || !network) return None
2020
if (network === 'localhost' && userID === '$unknown') return None
21+
if (network.includes('/') || userID.includes('/')) return None
22+
if (network.includes('\n') || userID.includes('\n')) return None
2123
return Some(new ProfileIdentifier(network, userID))
2224
}
2325

2426
// ! "network" and "userId" cannot be renamed because they're stored in the database in it's object form.
2527
declare readonly network: string
2628
declare readonly userId: string
2729
private constructor(network: string, userID: string) {
30+
network = String(network).toLowerCase()
31+
userID = String(userID)
32+
2833
if (network === 'localhost' && userID === '$unknown') {
2934
throw new TypeError('[@masknet/base] Use null instead.')
3035
}
31-
32-
network = String(network).toLowerCase()
33-
userID = String(userID)
3436
if (!userID) throw new TypeError('[@masknet/base] userID cannot be empty.')
3537

3638
const networkCache = (id[network] ??= {})

packages/mask/src/manifest.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Mask Network",
3-
"version": "2.19.0",
3+
"version": "2.19.1",
44
"manifest_version": 2,
55
"permissions": ["storage", "downloads", "webNavigation", "activeTab"],
66
"optional_permissions": ["<all_urls>", "notifications", "clipboardRead"],

packages/mask/src/social-network-adaptor/twitter.com/injection/Lens/injectLensOnPost.tsx

+3-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ import { startWatch } from '../../../../utils/watcher.js'
88
import { querySelectorAll } from '../../utils/selector.js'
99

1010
const selector = () => {
11-
return querySelectorAll<HTMLElement>('[data-testid=User-Name] div :has(a[role=link]:not([tabindex]))')
11+
return querySelectorAll<HTMLElement>('[data-testid=User-Name] div').filter((node) => {
12+
return node.firstElementChild?.matches('a[role=link]:not([tabindex])')
13+
})
1214
}
1315

1416
// structure: <user-name> <user-id> <timestamp>

packages/web3-providers/src/Sentry/index.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const IGNORE_ERRORS = [
2222
"Cannot perform 'getPrototypeOf' on a proxy that has been revoked",
2323
'UnknownError: The databases() promise was rejected.',
2424
'DataError: Failed to read large IndexedDB value',
25-
"Failed to execute 'open' on 'CacheStorage': Unexpected internal error.",
26-
'UnknownError: Internal error opening backing store for indexedDB.open.',
25+
'Unexpected internal error',
26+
'UnknownError: Internal error',
2727
'TimeoutError: Transaction timed out due to inactivity.',
2828
'execution reverted',
2929
'Failed to fetch',

0 commit comments

Comments
 (0)