Skip to content

Commit

Permalink
[Release] Hotfix 2.19.0 => 2.19.1 (patch) (#9388)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Apr 14, 2023
1 parent ce1e1ec commit c9de5cc
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"yarn": ">=999.0.0",
"npm": ">=999.0.0"
},
"version": "2.19.0",
"version": "2.19.1",
"private": true,
"license": "AGPL-3.0-or-later",
"scripts": {
Expand Down
8 changes: 5 additions & 3 deletions packages/base/src/Identifier/profile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,21 @@ export class ProfileIdentifier extends Identifier {
static of(network: string | undefined | null, userID: string | undefined | null): Option<ProfileIdentifier> {
if (!userID || !network) return None
if (network === 'localhost' && userID === '$unknown') return None
if (network.includes('/') || userID.includes('/')) return None
if (network.includes('\n') || userID.includes('\n')) return None
return Some(new ProfileIdentifier(network, userID))
}

// ! "network" and "userId" cannot be renamed because they're stored in the database in it's object form.
declare readonly network: string
declare readonly userId: string
private constructor(network: string, userID: string) {
network = String(network).toLowerCase()
userID = String(userID)

if (network === 'localhost' && userID === '$unknown') {
throw new TypeError('[@masknet/base] Use null instead.')
}

network = String(network).toLowerCase()
userID = String(userID)
if (!userID) throw new TypeError('[@masknet/base] userID cannot be empty.')

const networkCache = (id[network] ??= {})
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Mask Network",
"version": "2.19.0",
"version": "2.19.1",
"manifest_version": 2,
"permissions": ["storage", "downloads", "webNavigation", "activeTab"],
"optional_permissions": ["<all_urls>", "notifications", "clipboardRead"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import { startWatch } from '../../../../utils/watcher.js'
import { querySelectorAll } from '../../utils/selector.js'

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

// structure: <user-name> <user-id> <timestamp>
Expand Down
4 changes: 2 additions & 2 deletions packages/web3-providers/src/Sentry/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ const IGNORE_ERRORS = [
"Cannot perform 'getPrototypeOf' on a proxy that has been revoked",
'UnknownError: The databases() promise was rejected.',
'DataError: Failed to read large IndexedDB value',
"Failed to execute 'open' on 'CacheStorage': Unexpected internal error.",
'UnknownError: Internal error opening backing store for indexedDB.open.',
'Unexpected internal error',
'UnknownError: Internal error',
'TimeoutError: Transaction timed out due to inactivity.',
'execution reverted',
'Failed to fetch',
Expand Down

0 comments on commit c9de5cc

Please sign in to comment.