Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.43.0 #3560

Merged
merged 4 commits into from
Jul 23, 2023
Merged

v0.43.0 #3560

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/BUG.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ body:
label: Version
description: What version of the extension are you running?
options:
- v0.43.0
- v0.42.0
- v0.41.0
- v0.40.2
Expand Down
18 changes: 18 additions & 0 deletions background/differ.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { DiffContext, Filter, create } from "jsondiffpatch"

const differ = create()

const bigintDiffFilter: Filter<DiffContext> = (context) => {
if (typeof context.left === "bigint" && typeof context.right === "bigint") {
if (context.left !== context.right) {
context.setResult([context.left, context.right])
}
}
}
bigintDiffFilter.filterName = "bigint"

differ.processor.pipes.diff.before("objects", bigintDiffFilter)

export const diff = differ.diff.bind(differ)
export const patch = differ.patch.bind(differ)
export type { Delta } from "jsondiffpatch"
2 changes: 1 addition & 1 deletion background/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import browser from "webextension-polyfill"

import { Store as ProxyStore } from "webext-redux"
import { Delta, patch as patchDeepDiff } from "jsondiffpatch"
import { produce } from "immer"
import { AnyAction } from "@reduxjs/toolkit"

import { Delta, patch as patchDeepDiff } from "./differ"
import Main from "./main"
import { encodeJSON, decodeJSON } from "./lib/utils"

Expand Down
2 changes: 1 addition & 1 deletion background/main.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import browser, { runtime } from "webextension-polyfill"
import { alias, wrapStore } from "webext-redux"
import { diff as deepDiff } from "jsondiffpatch"
import { configureStore, isPlain, Middleware } from "@reduxjs/toolkit"
import { devToolsEnhancer } from "@redux-devtools/remote"
import { PermissionRequest } from "@tallyho/provider-bridge-shared"
import { debounce } from "lodash"
import { utils } from "ethers"

import { diff as deepDiff } from "./differ"
import {
decodeJSON,
encodeJSON,
Expand Down
2 changes: 1 addition & 1 deletion manifest/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Taho",
"version": "0.42.0",
"version": "0.43.0",
"description": "The community owned and operated Web3 wallet.",
"homepage_url": "https://taho.xyz",
"author": "https://taho.xyz",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@tallyho/tally-extension",
"private": true,
"version": "0.42.0",
"version": "0.43.0",
"description": "Taho, the community owned and operated Web3 wallet.",
"main": "index.js",
"repository": "git@github.com:thesis/tally-extension.git",
Expand Down