Skip to content

Commit

Permalink
Merge pull request #319 from reservoirprotocol/feature/upgrade-rk-1.8.5
Browse files Browse the repository at this point in the history
Upgrade RK to improve ListModal performance and remove proxy payment-processor
  • Loading branch information
pedromcunha authored Sep 14, 2023
2 parents a3e7613 + 012f715 commit 9caff7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 23 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@radix-ui/react-toggle-group": "^1.0.1",
"@radix-ui/react-tooltip": "^1.0.2",
"@rainbow-me/rainbowkit": "^1.0.9",
"@reservoir0x/reservoir-kit-ui": "1.8.4",
"@reservoir0x/reservoir-kit-ui": "1.8.5",
"@sentry/nextjs": "^7.53.1",
"@types/uuid": "^9.0.1",
"dayjs": "^1.11.6",
Expand Down
18 changes: 0 additions & 18 deletions pages/api/reservoir/[...slug].ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ const proxy = async (req: NextApiRequest, res: NextApiResponse) => {
options.headers = headers

const response = await fetch(url.href, options)

let data: any

const contentType = response.headers.get('content-type')
Expand All @@ -128,23 +127,6 @@ const proxy = async (req: NextApiRequest, res: NextApiResponse) => {
data = await response.text()
}

if (endpoint.includes('supported-marketplaces')) {
if (chain.id == 1 || chain.id == 137) {
data = {
marketplaces: data.marketplaces.map((marketplace: any) => {
if (marketplace.name === 'Reservoir') {
return {
...marketplace,
orderKind: 'payment-processor',
}
}

return marketplace
}),
}
}
}

if (!response.ok) throw data

if (contentType?.includes('image/')) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1557,10 +1557,10 @@
dependencies:
"@react-hookz/deep-equal" "^1.0.3"

"@reservoir0x/[email protected].4":
version "1.8.4"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.8.4.tgz#b85edb2a669ca6cb4ab632c08384e2d1f5277d2e"
integrity sha512-IQB4vTd1CWfHRySbD9HcZ0UzuMkw4tquoAU3D39GCrKSkttYg0HtCq/wIUlkW0Ytlgru/V41zgdkbo9Wlt/2XQ==
"@reservoir0x/[email protected].5":
version "1.8.5"
resolved "https://registry.yarnpkg.com/@reservoir0x/reservoir-kit-ui/-/reservoir-kit-ui-1.8.5.tgz#a47bef428202308f9fd3f9d8bca290b215278398"
integrity sha512-VacuTvrGMTS87unYZQ6g9fh+pSKPr4hs+i9tNFTXdUGHhr6PnFL11/maNupm9C9ofS2qdlRklQB4DVmucapwEQ==
dependencies:
"@fortawesome/fontawesome-svg-core" "^6.1.1"
"@fortawesome/free-solid-svg-icons" "^6.1.1"
Expand Down

0 comments on commit 9caff7a

Please sign in to comment.