Skip to content

Commit

Permalink
chore: bump dev deps (#4302)
Browse files Browse the repository at this point in the history
* chore: bump dev deps

* chore: bump vitest

* chore: format

* chore: bump

* chore: tweaks

---------

Co-authored-by: tmm <tmm@users.noreply.github.com>
  • Loading branch information
tmm and tmm authored Sep 27, 2024
1 parent eba8188 commit 87c378b
Show file tree
Hide file tree
Showing 16 changed files with 1,582 additions and 1,766 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
workflow_dispatch:

jobs:
lint:
name: Lint
check:
name: Check
permissions:
contents: write
runs-on: ubuntu-latest
Expand All @@ -18,11 +18,11 @@ jobs:
- name: Install dependencies
uses: wevm/actions/.github/actions/pnpm@main

- name: Lint repo
run: pnpm lint:repo
- name: Check repo
run: pnpm check:repo

- name: Lint code
run: pnpm lint
- name: Check code
run: pnpm check

- name: Update package versions
run: pnpm version:update
Expand All @@ -37,7 +37,7 @@ jobs:

build:
name: Build
needs: lint
needs: check
runs-on: ubuntu-latest
timeout-minutes: 5

Expand All @@ -59,7 +59,7 @@ jobs:

types:
name: Types
needs: lint
needs: check
runs-on: ubuntu-latest
timeout-minutes: 5
strategy:
Expand All @@ -80,9 +80,9 @@ jobs:
run: pnpm preconstruct

- name: Check types
run: pnpm typecheck
run: pnpm check:types

# Redundant with `pnpm typecheck`
# Redundant with `pnpm check:types`
# If Vitest adds special features in the future, e.g. type coverage, can add this back!
# - name: Test types
# run: pnpm test:typecheck
Expand Down
40 changes: 20 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@
"dev:react": "pnpm --filter vite-react dev",
"dev:vue": "pnpm --filter vite-vue dev",
"docs:dev": "pnpm --filter site dev",
"check": "biome check --write",
"check:repo": "sherif -i viem",
"check:types": "pnpm run --r --parallel typecheck && tsc --noEmit",
"check:unused": "pnpm clean && knip",
"format": "biome format --write",
"lint": "biome check --write",
"lint:repo": "sherif",
"lint:unused": "pnpm clean && knip",
"postinstall": "pnpm preconstruct",
"preconstruct": "bun scripts/preconstruct.ts",
"preinstall": "pnpx only-allow pnpm",
Expand All @@ -36,32 +37,31 @@
"test:update": "vitest --update",
"test:ui": "vitest --ui",
"test:vue": "vitest --project @wagmi/vue",
"typecheck": "pnpm run --r --parallel typecheck && tsc --noEmit",
"version:update": "bun scripts/updateVersion.ts",
"version:update:viem": "bun scripts/updateViemVersion.ts"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.15.3",
"@biomejs/biome": "^1.8.3",
"@arethetypeswrong/cli": "^0.16.4",
"@biomejs/biome": "^1.9.2",
"@changesets/changelog-github": "0.4.6",
"@changesets/cli": "^2.27.1",
"@types/bun": "^1.1.1",
"@vitest/coverage-v8": "^1.6.0",
"@vitest/ui": "^1.6.0",
"@changesets/cli": "^2.27.8",
"@types/bun": "^1.1.10",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/ui": "^2.1.1",
"@wagmi/test": "workspace:*",
"bun": "^1.1.7",
"glob": "^10.3.12",
"happy-dom": "^12.2.1",
"knip": "^5.13.0",
"prool": "^0.0.11",
"publint": "^0.2.7",
"sherif": "^0.8.4",
"bun": "^1.1.29",
"glob": "^10.4.5",
"happy-dom": "^15.7.4",
"knip": "^5.30.6",
"prool": "^0.0.16",
"publint": "^0.2.11",
"sherif": "^1.0.0",
"simple-git-hooks": "^2.11.1",
"typescript": "5.5.2",
"viem": "2.17.0",
"vitest": "^1.6.0"
"vitest": "^2.1.1"
},
"packageManager": "pnpm@9.4.0",
"packageManager": "pnpm@9.11.0",
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
Expand All @@ -76,7 +76,7 @@
"node": "22.x"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint"
"pre-commit": "pnpm check"
},
"knip": {
"ignore": ["**/templates/**", "**/hardhat.config.js"],
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo config plugins",
"dev": "bun src/cli.ts",
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm",
"typecheck": "tsc --noEmit"
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm"
},
"files": [
"dist/**",
Expand Down Expand Up @@ -89,7 +89,7 @@
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.12.10",
"fixturez": "^1.1.0",
"msw": "^2.2.14"
"msw": "^2.4.9"
},
"contributors": ["awkweb.eth <t@wevm.dev>", "jxom.eth <j@wevm.dev>"],
"funding": "https://github.com/sponsors/wevm",
Expand Down
6 changes: 3 additions & 3 deletions packages/connectors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo",
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm",
"typecheck": "tsc --noEmit"
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm"
},
"files": [
"dist/**",
Expand Down Expand Up @@ -55,7 +55,7 @@
},
"devDependencies": {
"@wagmi/core": "workspace:*",
"msw": "^2.2.14"
"msw": "^2.4.9"
},
"contributors": ["awkweb.eth <t@wevm.dev>", "jxom.eth <j@wevm.dev>"],
"funding": "https://github.com/sponsors/wevm",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo actions chains codegen experimental internal query",
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm",
"typecheck": "tsc --noEmit"
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm"
},
"files": [
"dist/**",
Expand Down
7 changes: 6 additions & 1 deletion packages/core/src/actions/waitForTransactionReceipt.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { config, testClient, wait } from '@wagmi/test'
import { parseEther } from 'viem'
import { expect, test } from 'vitest'
import { beforeEach, expect, test } from 'vitest'

import { connect } from './connect.js'
import { disconnect } from './disconnect.js'
Expand All @@ -9,6 +9,11 @@ import { waitForTransactionReceipt } from './waitForTransactionReceipt.js'

const connector = config.connectors[0]!

beforeEach(async () => {
if (config.state.current === connector.uid)
await disconnect(config, { connector })
})

test('default', async () => {
await connect(config, { connector })

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/createConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ export function createConfig<
[
...(rest.connectors ?? []),
...(!ssr
? mipd?.getProviders().map(providerDetailToConnector) ?? []
? (mipd?.getProviders().map(providerDetailToConnector) ?? [])
: []),
].map(setup),
)
Expand Down
4 changes: 2 additions & 2 deletions packages/create-wagmi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo",
"dev": "bun src/cli.ts",
"test:build": "publint --strict",
"typecheck": "tsc --noEmit"
"test:build": "publint --strict"
},
"files": [
"dist/**",
Expand Down
9 changes: 5 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo actions chains codegen connectors experimental query",
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm",
"typecheck": "tsc --noEmit"
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm"
},
"files": [
"dist/**",
Expand Down Expand Up @@ -96,10 +96,11 @@
},
"devDependencies": {
"@tanstack/react-query": ">=5.45.1",
"@testing-library/react": ">=15.0.7",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": ">=16.0.1",
"@types/react": ">=18.3.1",
"@types/react-dom": ">=18.3.0",
"@types/use-sync-external-store": "^0.0.3",
"@types/use-sync-external-store": "^0.0.6",
"react": ">=18.3.1",
"react-dom": ">=18.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/register-tests/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit"
"check:types": "tsc --noEmit"
},
"dependencies": {
"@tanstack/react-query": ">=5.45.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/register-tests/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"private": true,
"type": "module",
"scripts": {
"typecheck": "tsc --noEmit"
"check:types": "tsc --noEmit"
},
"dependencies": {
"@tanstack/vue-query": ">=5.45.0",
Expand Down
7 changes: 4 additions & 3 deletions packages/test/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo",
"test:build": "publint --strict",
"typecheck": "tsc --noEmit"
"test:build": "publint --strict"
},
"files": [
"dist/**",
Expand Down Expand Up @@ -101,7 +101,8 @@
"devDependencies": {
"@tanstack/react-query": ">=5.45.1",
"@tanstack/vue-query": ">=5.45.0",
"@testing-library/react": ">=15.0.7",
"@testing-library/dom": "^10.4.0",
"@testing-library/react": ">=16.0.1",
"@types/react": ">=18.3.1",
"@types/react-dom": ">=18.3.0",
"@wagmi/core": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
"scripts": {
"build": "pnpm run clean && pnpm run build:esm+types",
"build:esm+types": "tsc --project tsconfig.build.json --outDir ./dist/esm --declaration --declarationMap --declarationDir ./dist/types",
"check:types": "tsc --noEmit",
"clean": "rm -rf dist tsconfig.tsbuildinfo actions chains connectors nuxt query",
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm",
"typecheck": "vue-tsc --noEmit"
"test:build": "publint --strict && attw --pack --ignore-rules cjs-resolves-to-esm"
},
"files": [
"dist/**",
Expand Down
Loading

0 comments on commit 87c378b

Please sign in to comment.