Skip to content

Commit

Permalink
chore(pnpm): use catalogs (#1234)
Browse files Browse the repository at this point in the history
# Overview

I used this to clearly distinguish package versions. This approach
allows us to gradually update each package to new versions (e.g.,
React19, ReactQuery6) over time.

- add catalogs
  - react18
  - react-query4
  - react-query5
  • Loading branch information
gwansikk authored Aug 26, 2024
1 parent fb05601 commit 840160d
Show file tree
Hide file tree
Showing 18 changed files with 165 additions and 182 deletions.
6 changes: 3 additions & 3 deletions examples/next-streaming-react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
"dependencies": {
"@suspensive/react": "workspace:*",
"@suspensive/react-query-5": "workspace:*",
"@tanstack/react-query": "^5.51.23",
"@tanstack/react-query-devtools": "^5.51.23",
"@tanstack/react-query-next-experimental": "^5.51.23",
"@tanstack/react-query": "catalog:react-query5",
"@tanstack/react-query-devtools": "catalog:react-query5",
"@tanstack/react-query-next-experimental": "catalog:react-query5",
"next": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions examples/react-query-next-experimental-4-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
"@suspensive/react": "workspace:*",
"@suspensive/react-query-4": "workspace:*",
"@suspensive/react-query-next-experimental-4": "workspace:*",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^4.36.1",
"@tanstack/react-query": "catalog:react-query4",
"@tanstack/react-query-devtools": "catalog:react-query4",
"next": "catalog:",
"react": "catalog:",
"react-dom": "catalog:",
Expand Down
4 changes: 2 additions & 2 deletions examples/visualization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
"@suspensive/react": "workspace:*",
"@suspensive/react-image": "workspace:*",
"@suspensive/react-query": "workspace:*",
"@tanstack/react-query": "^4.36.1",
"@tanstack/react-query-devtools": "^4.36.1",
"@tanstack/react-query": "catalog:react-query4",
"@tanstack/react-query-devtools": "catalog:react-query4",
"axios": "catalog:",
"clsx": "catalog:",
"next": "catalog:",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-query": "^5.52.1",
"@tanstack/react-query-devtools": "^5.52.1",
"react": "catalog:",
"react-dom": "catalog:"
"@tanstack/react-query": "catalog:react-query5",
"@tanstack/react-query-devtools": "catalog:react-query5",
"react": "catalog:react18",
"react-dom": "catalog:react18"
},
"devDependencies": {
"@suspensive/eslint-config": "workspace:*",
Expand Down
4 changes: 2 additions & 2 deletions packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
"@suspensive/react": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:",
"react": "catalog:"
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"react": "^18"
Expand Down
4 changes: 2 additions & 2 deletions packages/jotai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:",
"@types/react": "catalog:react18",
"jotai": "^2.8.4",
"react": "catalog:"
"react": "catalog:react18"
},
"peerDependencies": {
"jotai": "^2",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:",
"react": "catalog:"
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"react": "^18"
Expand Down
4 changes: 2 additions & 2 deletions packages/react-image/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:",
"react": "catalog:"
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"react": "^18"
Expand Down
4 changes: 2 additions & 2 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@testing-library/react-native": "catalog:",
"@types/react": "catalog:",
"@types/react": "catalog:react18",
"babel-jest": "catalog:",
"expo": "catalog:",
"jest": "catalog:",
"jest-expo": "catalog:",
"react": "catalog:",
"react": "catalog:react18",
"react-native": "catalog:",
"ts-node": "^10.9.2"
},
Expand Down
6 changes: 3 additions & 3 deletions packages/react-query-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"@suspensive/react": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@tanstack/react-query": "^4.36.1",
"@types/react": "catalog:",
"react": "catalog:"
"@tanstack/react-query": "catalog:react-query4",
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"@suspensive/react": "workspace:^2.14.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-query-5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@
"@suspensive/react": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@tanstack/react-query": "^5.51.23",
"@types/react": "catalog:",
"react": "catalog:"
"@tanstack/react-query": "catalog:react-query5",
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"@suspensive/react": "workspace:^2.14.0",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-query-next-experimental-4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@tanstack/react-query": "^4.36.1",
"@types/react": "catalog:",
"@tanstack/react-query": "catalog:react-query4",
"@types/react": "catalog:react18",
"next": "catalog:",
"react": "catalog:"
"react": "catalog:react18"
},
"peerDependencies": {
"@tanstack/react-query": "^4",
Expand Down
4 changes: 2 additions & 2 deletions packages/react-query-next-experimental/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:",
"@types/react": "catalog:react18",
"next": "catalog:",
"react": "catalog:"
"react": "catalog:react18"
},
"peerDependencies": {
"@tanstack/react-query": "^4 || ^5",
Expand Down
6 changes: 3 additions & 3 deletions packages/react-query/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@
"@suspensive/react": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@tanstack/react-query": "^4.36.1",
"@types/react": "catalog:",
"react": "catalog:"
"@tanstack/react-query": "catalog:react-query4",
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"@suspensive/react": "workspace:^2.14.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:",
"react": "catalog:"
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"react": "^18"
Expand Down
4 changes: 2 additions & 2 deletions packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@
"@suspensive/eslint-config": "workspace:*",
"@suspensive/tsconfig": "workspace:*",
"@suspensive/tsup": "workspace:*",
"@types/react": "catalog:",
"react": "catalog:"
"@types/react": "catalog:react18",
"react": "catalog:react18"
},
"peerDependencies": {
"react": "^18"
Expand Down
Loading

0 comments on commit 840160d

Please sign in to comment.