Skip to content

Commit

Permalink
v0.43.0 (#3560)
Browse files Browse the repository at this point in the history
  • Loading branch information
hyphenized authored Jul 23, 2023
2 parents 6596a0f + 66a8e3d commit 2dea1ca
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 4 deletions.
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": "[email protected]:thesis/tally-extension.git",
Expand Down

0 comments on commit 2dea1ca

Please sign in to comment.