Skip to content

Commit

Permalink
Upgrade dependencies (#171)
Browse files Browse the repository at this point in the history
- Upgrade dependencies.
- Node example: import node-fetch (now an ESM-only module).
  • Loading branch information
bpierre authored Nov 23, 2021
1 parent 1318454 commit 2632cd0
Show file tree
Hide file tree
Showing 7 changed files with 3,548 additions and 1,678 deletions.
14 changes: 7 additions & 7 deletions examples/ethereum/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
"serve": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.4.0",
"@emotion/react": "^11.6.0",
"@metamask/detect-provider": "^1.2.0",
"ethers": "^5.2.0",
"ethers": "^5.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-spring": "^9.2.1",
"react-spring": "^9.3.1",
"use-nft": "workspace:*",
"use-viewport": "git://github.com/aragon/use-viewport.git#dd60132c8ab5c8f824e9dd08a7543a034c93141e",
"use-wallet": "git://github.com/bpierre/use-wallet.git#f7063ae7d89d031f00b492cc766e84c4908da7e4"
},
"devDependencies": {
"@types/react": "^17.0.8",
"@types/react-dom": "^17.0.5",
"@types/react": "^17.0.36",
"@types/react-dom": "^17.0.11",
"@vitejs/plugin-react-refresh": "^1.3.3",
"typescript": "^4.3.2",
"vite": "^2.3.4"
"typescript": "^4.5.2",
"vite": "^2.6.14"
}
}
14 changes: 7 additions & 7 deletions examples/ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
"serve": "vite preview"
},
"dependencies": {
"@emotion/react": "^11.4.0",
"@emotion/react": "^11.6.0",
"@metamask/detect-provider": "^1.2.0",
"ethers": "^5.2.0",
"ethers": "^5.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-spring": "^9.2.1",
"react-spring": "^9.3.1",
"use-nft": "workspace:*",
"use-viewport": "git://github.com/aragon/use-viewport.git#dd60132c8ab5c8f824e9dd08a7543a034c93141e",
"use-wallet": "git://github.com/bpierre/use-wallet.git#f7063ae7d89d031f00b492cc766e84c4908da7e4"
},
"devDependencies": {
"@types/react": "^17.0.8",
"@types/react-dom": "^17.0.5",
"@types/react": "^17.0.36",
"@types/react-dom": "^17.0.11",
"@vitejs/plugin-react-refresh": "^1.3.3",
"typescript": "^4.3.2",
"vite": "^2.3.4"
"typescript": "^4.5.2",
"vite": "^2.6.14"
}
}
4 changes: 2 additions & 2 deletions examples/fetchWrapper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ const FetchWrapper = require("use-nft").FetchWrapper

// nodejs does not have a fetch function, set it here
// not required for applications that run in a browser
const fetch = require("node-fetch")
if (!globalThis.fetch) {
globalThis.fetch = fetch
globalThis.fetch = (...args) =>
import("node-fetch").then(({ default: fetch }) => fetch(...args))
}

const fetchNfts = async () => {
Expand Down
6 changes: 3 additions & 3 deletions examples/fetchWrapper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
},
"homepage": "https://github.com/spectrexyz/use-nft#readme",
"dependencies": {
"ethers": "^5.2.0",
"node-fetch": "^2.6.1",
"ethers": "^5.5.1",
"node-fetch": "^3.1.0",
"use-nft": "workspace:*"
},
"devDependencies": {
"esnext-scripts": "^2.1.1",
"nodemon": "^2.0.7"
"nodemon": "^2.0.15"
}
}
38 changes: 19 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,30 +35,30 @@
"swr": "1.0.1"
},
"devDependencies": {
"@ethersproject/contracts": "^5.4.1",
"@ethersproject/providers": "^5.4.5",
"@types/jest": "^27.0.2",
"@types/react": "^17.0.26",
"@types/react-dom": "^17.0.9",
"@typescript-eslint/eslint-plugin": "^4.32.0",
"@typescript-eslint/parser": "^4.32.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^24.5.0",
"@ethersproject/contracts": "^5.5.0",
"@ethersproject/providers": "^5.5.0",
"@types/jest": "^27.0.3",
"@types/react": "^17.0.36",
"@types/react-dom": "^17.0.11",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"eslint": "^8.3.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jest": "^25.3.0",
"eslint-plugin-jest-dom": "^3.9.2",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-react": "^7.26.1",
"eslint-plugin-react-hooks": "^4.2.0",
"ethers": "^5.4.7",
"jest": "^27.2.4",
"jest-environment-jsdom": "^27.2.4",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"ethers": "^5.5.1",
"jest": "^27.3.1",
"jest-environment-jsdom": "^27.3.1",
"jest-watch-typeahead": "^1.0.0",
"microbundle": "^0.13.3",
"microbundle": "^0.14.2",
"prettier": "^2.4.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"ts-jest": "^27.0.5",
"typescript": "^4.4.3"
"ts-jest": "^27.0.7",
"typescript": "^4.5.2"
},
"peerDependencies": {
"@ethersproject/contracts": ">=5.2.0 <6",
Expand Down
Loading

0 comments on commit 2632cd0

Please sign in to comment.