Skip to content

Commit

Permalink
chore(*): update deps (#1384)
Browse files Browse the repository at this point in the history
# Overview

<!--
    A clear and concise description of what this pr is about.
 -->

## PR Checklist

- [ ] I did below actions if need

1. I read the [Contributing
Guide](https://github.com/toss/suspensive/blob/main/CONTRIBUTING.md)
2. I added documents and tests.
  • Loading branch information
manudeli authored Dec 7, 2024
1 parent 9708917 commit 5640309
Show file tree
Hide file tree
Showing 21 changed files with 1,746 additions and 1,469 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
command:
['prepack', 'ci:attw', 'ci:eslint', 'ci:publint', 'ci:sherif', 'ci:type', 'ci:test', 'ci:bench', 'build']
command: ['prepack', 'ci:attw', 'ci:eslint', 'ci:publint', 'ci:sherif', 'ci:type', 'ci:test', 'build']
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/pnpm-setup-node
Expand All @@ -30,11 +29,6 @@ jobs:
uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- if: matrix.command == 'ci:bench'
uses: CodSpeedHQ/action@v2
with:
run: pnpm ci:bench
token: ${{ secrets.CODSPEED_TOKEN }}
- if: matrix.command == 'prepack'
uses: preactjs/compressed-size-action@v2
with:
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ esm
# graph
graph/

# benchmark
benchmarks/

# react-native
expo-env.d.ts
.expo/
Expand Down
1 change: 0 additions & 1 deletion codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ comment:

ignore:
- '**/*.test-d.*'
- '**/*.bench.*'
- '**/test-utils/*'

component_management:
Expand Down
18 changes: 9 additions & 9 deletions configs/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@
"clean": "rimraf ./dist && rimraf ./coverage"
},
"dependencies": {
"@cspell/eslint-plugin": "^8.14.4",
"@eslint-react/eslint-plugin": "^1.14.3",
"@cspell/eslint-plugin": "^8.16.1",
"@eslint-react/eslint-plugin": "^1.17.3",
"@next/eslint-plugin-next": "catalog:",
"@vitest/eslint-plugin": "^1.1.4",
"@vitest/eslint-plugin": "^1.1.14",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.30.0",
"eslint-plugin-jest-dom": "^5.4.0",
"eslint-plugin-jsdoc": "^50.3.1",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest-dom": "^5.5.0",
"eslint-plugin-jsdoc": "^50.6.0",
"eslint-plugin-mdx": "^3.1.5",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react-compiler": "0.0.0-experimental-7670337-20240918",
"eslint-plugin-react-hooks": "^4.6.2",
"typescript-eslint": "^8.9.0"
"eslint-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
"eslint-plugin-react-hooks": "^5.1.0",
"typescript-eslint": "^8.17.0"
}
}
4 changes: 2 additions & 2 deletions configs/tsup/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export const options: Options = {
banner: { js: '"use client"' },
format: ['cjs', 'esm'],
target: ['chrome51', 'firefox53', 'edge18', 'safari11', 'ios11', 'opera38', 'es6', 'node14'],
entry: ['src/*.{ts,tsx}', '!**/*.{spec,test,test-d,bench}.*'],
entry: ['src/*.{ts,tsx}', '!**/*.{spec,test,test-d}.*'],
outDir: 'dist',
sourcemap: true,
dts: true,
Expand All @@ -13,6 +13,6 @@ export const options: Options = {
export const scriptOptions: Options = {
format: 'cjs',
target: ['node18'],
entry: ['src/bin/*.{ts,tsx}', '!**/*.{spec,test,test-d,bench}.*'],
entry: ['src/bin/*.{ts,tsx}', '!**/*.{spec,test,test-d}.*'],
outDir: 'dist/bin',
}
12 changes: 6 additions & 6 deletions docs/suspensive.org/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
"start": "next start -p 4000"
},
"dependencies": {
"@codesandbox/sandpack-react": "^2.19.1",
"@codesandbox/sandpack-react": "^2.19.10",
"@suspensive/react": "workspace:*",
"@suspensive/react-query-4": "workspace:*",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^4.36.1",
"codehike": "^1.0.4",
"d3": "^7.9.0",
"framer-motion": "^11.11.8",
"framer-motion": "^11.13.1",
"next": "catalog:",
"nextra": "^3.2.0",
"nextra-theme-docs": "^3.0.11",
"nextra": "^3.2.4",
"nextra-theme-docs": "^3.2.4",
"react": "catalog:react18",
"react-dom": "catalog:react18",
"react-dom": "catalog:react-dom",
"remark-sandpack": "^0.0.5",
"sharp": "catalog:",
"zod": "^3.23.8"
Expand All @@ -43,7 +43,7 @@
"@suspensive/eslint-config": "workspace:*",
"@types/d3": "^7.4.3",
"@types/react": "catalog:react18",
"@types/react-dom": "catalog:react18",
"@types/react-dom": "catalog:react-dom",
"autoprefixer": "catalog:",
"postcss": "catalog:",
"prettier-plugin-tailwindcss": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions examples/next-streaming-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
"@tanstack/react-query-next-experimental": "catalog:react-query5",
"next": "catalog:",
"react": "catalog:react18",
"react-dom": "catalog:react18",
"react-dom": "catalog:react-dom",
"sharp": "catalog:"
},
"devDependencies": {
"@suspensive/eslint-config": "workspace:*",
"@types/react": "catalog:react18",
"@types/react-dom": "catalog:react18",
"@types/react-dom": "catalog:react-dom",
"autoprefixer": "catalog:",
"postcss": "catalog:",
"prettier-plugin-tailwindcss": "catalog:",
Expand Down
50 changes: 25 additions & 25 deletions examples/react-native-playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,39 +15,39 @@
"web": "expo start --web"
},
"dependencies": {
"@expo/vector-icons": "^14.0.2",
"@react-navigation/bottom-tabs": "^7.0.0",
"@react-navigation/native": "^7.0.0",
"@expo/vector-icons": "catalog:react-native",
"@react-navigation/bottom-tabs": "catalog:react-native",
"@react-navigation/native": "catalog:react-native",
"@suspensive/react-native": "workspace:*",
"expo": "catalog:",
"expo-blur": "~14.0.1",
"expo-constants": "~17.0.3",
"expo-font": "~13.0.1",
"expo-haptics": "~14.0.0",
"expo-linking": "~7.0.2",
"expo-router": "catalog:",
"expo-splash-screen": "~0.29.9",
"expo-status-bar": "catalog:",
"expo-symbols": "~0.2.0",
"expo-system-ui": "~4.0.2",
"expo-web-browser": "~14.0.1",
"expo": "catalog:react-native",
"expo-blur": "catalog:react-native",
"expo-constants": "catalog:react-native",
"expo-font": "catalog:react-native",
"expo-haptics": "catalog:react-native",
"expo-linking": "catalog:react-native",
"expo-router": "catalog:react-native",
"expo-splash-screen": "catalog:react-native",
"expo-status-bar": "catalog:react-native",
"expo-symbols": "catalog:react-native",
"expo-system-ui": "catalog:react-native",
"expo-web-browser": "catalog:react-native",
"react": "catalog:react18",
"react-dom": "catalog:react18",
"react-native": "catalog:react18",
"react-native-gesture-handler": "~2.20.2",
"react-native-reanimated": "~3.16.1",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.0.0",
"react-native-web": "~0.19.13",
"react-native-webview": "13.12.2"
"react-dom": "catalog:react-dom",
"react-native": "catalog:react-native",
"react-native-gesture-handler": "catalog:react-native",
"react-native-reanimated": "catalog:react-native",
"react-native-safe-area-context": "catalog:react-native",
"react-native-screens": "catalog:react-native",
"react-native-web": "catalog:react-native",
"react-native-webview": "catalog:react-native"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/core": "^7.26.0",
"@types/jest": "^29.5.12",
"@types/react": "catalog:react18",
"@types/react-test-renderer": "^18.3.0",
"jest": "catalog:",
"jest-expo": "catalog:",
"jest-expo": "catalog:react-native",
"react-test-renderer": "18.3.1",
"typescript": "^5.3.3"
},
Expand Down
6 changes: 3 additions & 3 deletions examples/visualization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,19 @@
"@suspensive/react-query": "workspace:*",
"@tanstack/react-query": "catalog:react-query4",
"@tanstack/react-query-devtools": "catalog:react-query4",
"axios": "^1.7.7",
"axios": "^1.7.9",
"clsx": "catalog:",
"next": "catalog:",
"react": "catalog:react18",
"react-dom": "catalog:react18",
"react-dom": "catalog:react-dom",
"sharp": "catalog:",
"zod": "^3.23.8"
},
"devDependencies": {
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@types/react": "catalog:react18",
"@types/react-dom": "catalog:react18",
"@types/react-dom": "catalog:react-dom",
"autoprefixer": "catalog:",
"postcss": "catalog:",
"prettier-plugin-tailwindcss": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"@tanstack/react-query": "catalog:react-query5",
"@tanstack/react-query-devtools": "catalog:react-query5",
"react": "catalog:react18",
"react-dom": "catalog:react18"
"react-dom": "catalog:react-dom"
},
"devDependencies": {
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@types/react": "catalog:react18",
"@types/react-dom": "catalog:react18",
"@types/react-dom": "catalog:react-dom",
"@vitejs/plugin-react": "^4.3.2",
"globals": "^15.10.0"
}
Expand Down
3 changes: 2 additions & 1 deletion knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"ignoreWorkspaces": ["examples/**"],
"workspaces": {
".": {
"ignore": ["packlint.config.mjs"]
"ignore": ["packlint.config.mjs"],
"ignoreDependencies": ["vite"]
},
"configs/eslint-config*": {
"eslint": {
Expand Down
42 changes: 20 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
"changeset": "changeset",
"changeset:publish": "pnpm prepack && changeset publish",
"changeset:version": "changeset version && pnpm i --lockfile-only",
"ci:all": "pnpm ci:attw && pnpm ci:eslint && pnpm ci:publint && pnpm ci:sherif && pnpm ci:type && pnpm ci:test && pnpm ci:knip && pnpm ci:bench && pnpm build",
"ci:all": "pnpm ci:attw && pnpm ci:eslint && pnpm ci:publint && pnpm ci:sherif && pnpm ci:type && pnpm ci:test && pnpm ci:knip && pnpm build",
"ci:attw": "turbo run ci:attw",
"ci:bench": "turbo run ci:bench",
"ci:eslint": "turbo run ci:eslint",
"ci:knip": "pnpm prepack && pnpm knip",
"ci:publint": "turbo run ci:publint",
Expand All @@ -42,38 +41,37 @@
"start": "turbo run start"
},
"devDependencies": {
"@arethetypeswrong/cli": "^0.16.4",
"@arethetypeswrong/cli": "^0.17.1",
"@changesets/changelog-github": "^0.5.0",
"@changesets/cli": "^2.27.9",
"@codspeed/vitest-plugin": "^3.1.1",
"@commitlint/cli": "^19.5.0",
"@commitlint/config-conventional": "^19.5.0",
"@changesets/cli": "^2.27.10",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@testing-library/dom": "^10.4.0",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.0.1",
"@testing-library/react": "^16.1.0",
"@testing-library/user-event": "^14.5.2",
"@types/node": "^22.8.6",
"@vitest/browser": "^2.1.4",
"@vitest/coverage-istanbul": "^2.1.4",
"@vitest/coverage-v8": "^2.1.4",
"@vitest/ui": "^2.1.4",
"@types/node": "^22.10.1",
"@vitest/browser": "^2.1.8",
"@vitest/coverage-istanbul": "^2.1.8",
"@vitest/coverage-v8": "^2.1.8",
"@vitest/ui": "^2.1.8",
"broken-link-checker": "^0.7.8",
"eslint": "^9.13.0",
"husky": "^9.1.6",
"eslint": "^9.16.0",
"husky": "^9.1.7",
"jsdom": "^25.0.1",
"knip": "^5.36.0",
"knip": "^5.39.2",
"lint-staged": "^15.2.10",
"ms": "3.0.0-canary.1",
"packlint": "^0.2.4",
"playwright": "^1.48.2",
"prettier": "^3.3.3",
"playwright": "^1.49.0",
"prettier": "^3.4.2",
"publint": "^0.2.12",
"rimraf": "^6.0.1",
"sherif": "^1.0.1",
"sherif": "^1.0.2",
"tsup": "^8.3.5",
"turbo": "^2.2.3",
"turbo": "^2.3.3",
"typescript": "^5.4.5",
"vite": "^5.4.10",
"vitest": "^2.1.4"
"vite": "^6.0.3",
"vitest": "^2.1.8"
}
}
2 changes: 1 addition & 1 deletion packages/codemods/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default defineConfig([
},
{
...scriptOptions,
entry: ['src/transforms/*.{ts,tsx}', '!**/*.{spec,test,test-d,bench}.*'],
entry: ['src/transforms/*.{ts,tsx}', '!**/*.{spec,test,test-d}.*'],
outDir: 'dist/transforms',
},
])
4 changes: 2 additions & 2 deletions packages/react-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,9 @@
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:react18",
"@types/react-dom": "catalog:react18",
"@types/react-dom": "catalog:react-dom",
"react": "catalog:react18",
"react-dom": "catalog:react18"
"react-dom": "catalog:react-dom"
},
"peerDependencies": {
"react": "^18"
Expand Down
8 changes: 4 additions & 4 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@testing-library/react-native": "catalog:",
"@testing-library/react-native": "catalog:react-native",
"@types/react": "catalog:react18",
"babel-jest": "catalog:",
"expo": "catalog:",
"expo": "catalog:react-native",
"jest": "catalog:",
"jest-expo": "catalog:",
"jest-expo": "catalog:react-native",
"react": "catalog:react18",
"react-native": "catalog:react18",
"react-native": "catalog:react-native",
"ts-node": "^10.9.2"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
"scripts": {
"build": "tsup",
"ci:attw": "attw --pack",
"ci:bench": "vitest bench --run",
"ci:eslint": "eslint \"**/*.{ts,tsx,cts,mts}\"",
"ci:publint": "publint --strict",
"ci:test": "vitest run --coverage --typecheck",
Expand Down
9 changes: 0 additions & 9 deletions packages/react/src/ErrorBoundary.bench.tsx

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react/vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
import codspeedPlugin from '@codspeed/vitest-plugin'
import { defineConfig } from 'vitest/config'
import packageJson from './package.json'

export default defineConfig({
plugins: process.env.CI === 'true' ? [codspeedPlugin()] : [],
test: {
name: packageJson.name,
dir: './src',
environment: 'jsdom',
globals: true,
setupFiles: './vitest.setup.ts',
benchmark: { outputJson: `benchmarks/${packageJson.version}.json` },
coverage: {
provider: 'istanbul',
},
Expand Down
Loading

0 comments on commit 5640309

Please sign in to comment.