Skip to content

Commit f0fc085

Browse files
authored
Merge pull request #2439 from oasisprotocol/mz/deps
Update build dependencies
2 parents 3200873 + 017fc09 commit f0fc085

12 files changed

Lines changed: 530 additions & 964 deletions

File tree

.changelog/2439.internal.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Update build dependencies

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Development deploy is available at <https://explorer.dev.oasis.io>.
3333
transactions;
3434
- **Non-Fungible Tokens (NFTs)**: Provides information about NFT ownership,
3535
metadata, transactions history and minting information. (
36-
See [more...](./docs/NFTs.md))
36+
See [NFT documentation](./docs/NFTs.md))
3737
- **Contract Reading and Writing** *(upcoming)*: Can read contract details and
3838
record new contract interactions.
3939

@@ -50,7 +50,7 @@ yarn
5050
yarn start
5151
```
5252

53-
Then go to <http://localhost:1234> to access the app.
53+
Then go to <http://localhost:5173> to access the app.
5454

5555
### Code style
5656

package.json

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"viem": "^2.31.4"
7171
},
7272
"devDependencies": {
73-
"@tailwindcss/vite": "^4.1.18",
73+
"@tailwindcss/vite": "^4.2.2",
7474
"@testing-library/dom": "^10.4.0",
7575
"@testing-library/jest-dom": "^6.6.3",
7676
"@testing-library/react": "^16.3.0",
@@ -82,7 +82,7 @@
8282
"@types/react-dom": "18.3.5",
8383
"@typescript-eslint/eslint-plugin": "7.18.0",
8484
"@typescript-eslint/parser": "7.18.0",
85-
"@vitejs/plugin-react": "^4.4.1",
85+
"@vitejs/plugin-react": "^6.0.1",
8686
"buffer": "^6.0.3",
8787
"eslint": "8.57.1",
8888
"eslint-config-prettier": "9.1.0",
@@ -93,17 +93,16 @@
9393
"eslint-plugin-react-refresh": "^0.4.24",
9494
"events": "^3.1.0",
9595
"jsdom": "^26.1.0",
96-
"markdownlint-cli": "0.44.0",
96+
"markdownlint-cli": "^0.48.0",
9797
"node-fetch": "2.7.0",
9898
"prettier": "3.5.3",
9999
"process": "0.11.10",
100100
"react-app-polyfill": "3.0.0",
101101
"stream-browserify": "3.0.0",
102-
"tailwindcss": "^4.1.18",
102+
"tailwindcss": "^4.2.2",
103103
"typescript": "5.6.3",
104-
"vite": "^6.4.1",
105-
"vite-tsconfig-paths": "^5.1.4",
106-
"vitest": "^3.1.4"
104+
"vite": "^8.0.1",
105+
"vitest": "^4.1.0"
107106
},
108107
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
109108
}

playwright/playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { defineConfig } from '@playwright/test'
22

33
export default defineConfig({
44
webServer: {
5-
url: 'http://localhost:1234',
5+
url: 'http://localhost:5173',
66
command: 'yarn --cwd ../ run start',
77
timeout: 120 * 1000,
88
reuseExistingServer: !process.env.CI,

playwright/tests/accounts.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ async function setup(page: Page) {
113113
)
114114

115115
await page.goto(
116-
'http://localhost:1234/mainnet/sapphire/address/0x0000000000000000000000000000000000000000/events',
116+
'http://localhost:5173/mainnet/sapphire/address/0x0000000000000000000000000000000000000000/events',
117117
)
118118
}
119119

playwright/tests/allowance.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ async function setup(page: Page) {
7878
test('Allowance transaction should display relative amount', async ({ page }) => {
7979
await setup(page)
8080
await page.goto(
81-
'http://localhost:1234/testnet/consensus/tx/10dc8edd24ae89b264a295a046d9ac9b99a59d81acf3b0394bac309c09bdd7c7',
81+
'http://localhost:5173/testnet/consensus/tx/10dc8edd24ae89b264a295a046d9ac9b99a59d81acf3b0394bac309c09bdd7c7',
8282
)
8383
await expect(page.getByText('+1 TEST')).toBeVisible()
8484
})
8585

8686
test('Allowance transaction should display negative amount', async ({ page }) => {
8787
await setup(page)
8888
await page.goto(
89-
'http://localhost:1234/mainnet/consensus/tx/4d4903206ee68d5c60ea9b26f4a7b218b263e66e032772f2faa61a2bf7d27b2b',
89+
'http://localhost:5173/mainnet/consensus/tx/4d4903206ee68d5c60ea9b26f4a7b218b263e66e032772f2faa61a2bf7d27b2b',
9090
)
9191
await expect(page.getByText('-5,000,000 ROSE')).toBeVisible()
9292
})

playwright/tests/getPreciseNumberFormat.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ async function setup(page: Page, balance: string, decimals: number) {
4646
})
4747

4848
await page.goto(
49-
'http://localhost:1234/mainnet/sapphire/address/0x0000000000000000000000000000000000000000/tokens/erc-20#tokens',
49+
'http://localhost:5173/mainnet/sapphire/address/0x0000000000000000000000000000000000000000/tokens/erc-20#tokens',
5050
)
5151
await expect(page.getByText('TokenForTests')).toBeVisible()
5252

src/app/components/TableCellAge/__tests__/index.test.tsx

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,17 @@ describe('TableCellAge', () => {
1616
vi.setSystemTime(new Date('2024-02-05T10:14:35.000Z'))
1717

1818
// Fix locale-specific mock output
19-
vi.spyOn(Intl, 'DateTimeFormat').mockImplementation(
20-
() =>
21-
({
22-
format: () => '05-02-2024, 10:14:40',
23-
}) as unknown as Intl.DateTimeFormat,
19+
const OriginalDateTimeFormat = Intl.DateTimeFormat
20+
vi.stubGlobal(
21+
'Intl',
22+
Object.assign({}, Intl, {
23+
DateTimeFormat: function (...args: ConstructorParameters<typeof Intl.DateTimeFormat>) {
24+
const instance = new OriginalDateTimeFormat(...args)
25+
return Object.assign({}, instance, {
26+
format: () => '05-02-2024, 10:14:40',
27+
})
28+
},
29+
}),
2430
)
2531
})
2632

src/config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ const splitUrls = (input: string | undefined): string[] =>
192192
export const deploys = {
193193
production: splitUrls(import.meta.env.REACT_APP_PRODUCTION_URLS),
194194
staging: splitUrls(import.meta.env.REACT_APP_STAGING_URLS),
195-
localhost: 'http://localhost:1234',
195+
localhost: 'http://localhost:5173',
196196
}
197197

198198
export const getAppTitle = () => import.meta.env.REACT_APP_META_TITLE

vite.config.mjs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,17 @@
11
import { defineConfig } from 'vite'
22
import react from '@vitejs/plugin-react'
3-
import tsconfigPaths from 'vite-tsconfig-paths'
43
import tailwindcss from '@tailwindcss/vite'
54

65
export default defineConfig(() => {
76
return {
8-
plugins: [react(), tsconfigPaths(), tailwindcss()],
7+
plugins: [react(), tailwindcss()],
98
build: {
109
outDir: 'build',
1110
sourcemap: true,
1211
emptyOutDir: true,
1312
},
14-
server: {
15-
port: 1234,
16-
open: true,
13+
resolve: {
14+
tsconfigPaths: true,
1715
},
1816
publicDir: 'public',
1917
envPrefix: 'REACT_APP_',

0 commit comments

Comments
 (0)