Skip to content
This repository has been archived by the owner on Jun 19, 2024. It is now read-only.

Commit

Permalink
chore(deps): update all non-major dependencies (#119)
Browse files Browse the repository at this point in the history
* chore(deps): update all non-major dependencies

* fix: fixing merge conflicts

* fix: increasing rows per page for swaps; additional tweak in filtering

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Altynbek Orumbayev <[email protected]>
  • Loading branch information
renovate[bot] and aorumbayev authored Sep 2, 2022
1 parent b598568 commit 2b0a273
Show file tree
Hide file tree
Showing 12 changed files with 2,276 additions and 1,028 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.16
16.17
6 changes: 3 additions & 3 deletions api/storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
"author": "AlgoWorld <[email protected]>",
"license": "GPL-3.0",
"dependencies": {
"typescript": "4.7.4",
"web3.storage": "4.3.0"
"typescript": "4.8.2",
"web3.storage": "4.4.0"
},
"devDependencies": {
"@vercel/node": "2.5.3"
"@vercel/node": "2.5.13"
}
}
1,322 changes: 1,230 additions & 92 deletions api/storage/yarn.lock

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions e2e/pages/dashboard.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ test(`should navigate to the about page`, async ({ page }) => {

await page.locator(`#AWNavigationBar >> text=About`).click();
await expect(
page.locator(`text=AlgoWorld Swapper v0.5.1`).first(),
page.locator(`text=AlgoWorld Swapper v0.5.2`).first(),
).toBeVisible();

await page.locator(`button:has-text("Close")`).click();
await expect(
page.locator(`text=AlgoWorld Swapper v0.5.1`).first(),
page.locator(`text=AlgoWorld Swapper v0.5.2`).first(),
).toBeHidden();
});
16 changes: 10 additions & 6 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@
// https://nextjs.org/docs/api-reference/next.config.js/introduction
// https://docs.sentry.io/platforms/javascript/guides/nextjs/

const withPWA = require('next-pwa');
const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
runtimeCaching,
});

const plugins = [];

const moduleExports = {
plugins.push(withPWA);

const nextConfig = {
reactStrictMode: true,
pageExtensions: ['page.tsx', 'page.ts', 'page.jsx', 'page.js'],
images: {
Expand All @@ -23,7 +30,4 @@ const moduleExports = {
},
};

module.exports = withPWA({
...moduleExports,
pwa: { dest: 'public', runtimeCaching },
});
module.exports = () => plugins.reduce((acc, next) => next(acc), nextConfig);
68 changes: 34 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "algoworld-swapper",
"description": "Free and trustless ASA swapper, powered by Algorand ⚡️",
"version": "0.5.1",
"version": "0.5.2",
"private": true,
"author": "AlgoWorld <[email protected]>",
"license": "GPL-3.0",
Expand Down Expand Up @@ -31,68 +31,68 @@
]
},
"dependencies": {
"@emotion/cache": "11.10.1",
"@emotion/react": "11.10.0",
"@emotion/cache": "11.10.3",
"@emotion/react": "11.10.4",
"@emotion/server": "11.10.0",
"@emotion/styled": "11.10.0",
"@fontsource/roboto": "4.5.7",
"@emotion/styled": "11.10.4",
"@fontsource/roboto": "4.5.8",
"@hookform/resolvers": "2.9.7",
"@json-rpc-tools/utils": "1.7.6",
"@mui/icons-material": "5.8.4",
"@mui/lab": "5.0.0-alpha.93",
"@mui/material": "5.9.3",
"@mui/x-data-grid": "5.15.0",
"@randlabs/myalgo-connect": "1.2.0",
"@reduxjs/toolkit": "1.8.3",
"@mui/icons-material": "5.10.3",
"@mui/lab": "5.0.0-alpha.97",
"@mui/material": "5.10.3",
"@mui/x-data-grid": "5.17.0",
"@randlabs/myalgo-connect": "1.3.0",
"@reduxjs/toolkit": "1.8.5",
"@walletconnect/client": "1.8.0",
"algorand-walletconnect-qrcode-modal": "1.7.4",
"algosdk": "1.19.0",
"algorand-walletconnect-qrcode-modal": "1.8.0",
"algosdk": "1.19.1",
"axios": "0.27.2",
"axios-retry": "3.3.1",
"next": "12.2.4",
"next-pwa": "5.5.5",
"nextjs-google-analytics": "2.0.0",
"next": "12.2.5",
"next-pwa": "5.6.0",
"nextjs-google-analytics": "2.1.0",
"notistack": "2.0.5",
"prop-types": "15.8.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-number-format": "4.9.3",
"react-redux": "8.0.2",
"react-tsparticles": "2.1.4",
"react-tsparticles": "2.2.4",
"react-use": "17.4.0",
"swr": "1.3.0",
"tsparticles": "2.1.4"
"tsparticles": "2.2.4"
},
"devDependencies": {
"@commitlint/cli": "17.0.3",
"@commitlint/config-conventional": "17.0.3",
"@playwright/test": "1.24.2",
"@testing-library/jest-dom": "5.16.4",
"@commitlint/cli": "17.1.2",
"@commitlint/config-conventional": "17.1.0",
"@playwright/test": "1.25.1",
"@testing-library/jest-dom": "5.16.5",
"@testing-library/react": "13.3.0",
"@testing-library/user-event": "14.4.1",
"@types/jest": "28.1.6",
"@testing-library/user-event": "14.4.3",
"@types/jest": "28.1.8",
"@types/node": "17.0.41",
"@types/react": "18.0.15",
"@types/react": "18.0.18",
"@types/react-dom": "18.0.6",
"@typescript-eslint/eslint-plugin": "5.32.0",
"@typescript-eslint/parser": "5.32.0",
"@typescript-eslint/eslint-plugin": "5.36.1",
"@typescript-eslint/parser": "5.36.1",
"autoprefixer": "10.4.8",
"cd": "0.3.3",
"commitizen": "4.2.5",
"cz-conventional-changelog": "3.3.0",
"dotenv": "16.0.1",
"eslint": "8.21.0",
"eslint-config-next": "12.2.3",
"dotenv": "16.0.2",
"eslint": "8.23.0",
"eslint-config-next": "12.2.5",
"eslint-config-prettier": "8.5.0",
"eslint-import-resolver-typescript": "3.4.0",
"eslint-import-resolver-typescript": "3.5.0",
"eslint-plugin-prettier": "4.2.1",
"jest": "28.1.3",
"jest-environment-jsdom": "28.1.3",
"lint-staged": "13.0.3",
"postcss": "8.4.14",
"postcss": "8.4.16",
"prettier": "2.7.1",
"ts-jest": "28.0.7",
"typescript": "4.7.4"
"ts-jest": "28.0.8",
"typescript": "4.8.2"
},
"config": {
"commitizen": {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialogs/AboutDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function AboutDialog({ open, changeState }: Props) {
aria-describedby="scroll-dialog-description"
>
<DialogTitle color={`primary`} id="scroll-dialog-title">
AlgoWorld Swapper v0.5.1
AlgoWorld Swapper v0.5.2
</DialogTitle>
<DialogContent dividers={true}>
<DialogContentText ref={descriptionElementRef} tabIndex={-1}>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/public-swaps.page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default function PublicSwaps() {
const [publicSwapAccounts, setPublicSwapAccounts] = useState<string[]>([]);
const [isLoading, setLoading] = useState(false);
const chain = useAppSelector((state) => state.walletConnect.chain);
const rowsPerPage = 6;
const rowsPerPage = 50;

const router = useRouter();
const { creatorAddress } = router.query as {
Expand Down
9 changes: 4 additions & 5 deletions src/utils/api/accounts/getPublicSwapCreators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,11 @@ export default async function getPublicSwapCreators(
return false;
}

const swapConfigs = await getSwapConfigurationsForAccount(
chain,
account.address,
);
const swapConfigs = (
await getSwapConfigurationsForAccount(chain, account.address)
).filter((config) => config.isPublic);

return swapConfigs.length > 0;
return swapConfigs && swapConfigs.length > 0;
} catch (e) {
return false;
}
Expand Down
2 changes: 1 addition & 1 deletion src/utils/wallets/myAlgoWallet.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe(`MyAlgoWalletClient`, () => {
signTransaction: jest.fn(),
signLogicSig: jest.fn(),
tealSign: jest.fn(),
};
} as unknown as jest.Mocked<MyAlgoConnect>;

const myAlgoClient = new MyAlgoWalletClient(mockAlgoConnect);

Expand Down
4 changes: 2 additions & 2 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"functions": {
"api/swaps/*.py": {
"excludeFiles": "{+(.next|node_modules|public|src)/**,yarn.lock,README.md}"
"excludeFiles": "{+(.next|node_modules|public|src|e2e)/**,api/storage/node_modules/**,yarn.lock,README.md}"
},
"api/storage/*.ts": {
"excludeFiles": "{+(.next|node_modules|public|src)/**,yarn.lock,README.md}"
"excludeFiles": "{+(.next|node_modules|public|src|e2e)/**,yarn.lock,README.md}"
}
}
}
Loading

1 comment on commit 2b0a273

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for algoworld-swapper ready!

✅ Preview
https://algoworld-swapper-l85q6nk62-algoworldexplorer.vercel.app

Built with commit 2b0a273.
This pull request is being automatically deployed with vercel-action

Please sign in to comment.