Closed gwansikk closed 3 weeks ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
suspensive.org | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 27, 2024 6:05pm |
v1.suspensive.org | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 27, 2024 6:05pm |
visualization.suspensive.org | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Jun 27, 2024 6:05pm |
Latest commit: 5c4fe759d4bbab0c6c2bc2e071feb749be42e3a7
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Comparing react-query/feat/commander
(5c4fe75) with main
(cfd09f5)
:warning: No benchmarks were detected in both the base of the PR and the PR.
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 80.88%. Comparing base (
cfd09f5
) to head (5c4fe75
).
@manudeli
Related: https://github.com/toss/suspensive/pull/976#discussion_r1655064350
We need to retrieve the version of @suspensive/react-query-x
that is set (switched) in the environment to check if it is compatible with the dependencies of @tanstack/react-query
.
@suspensive/react-query-x
exported from @suspensive/react-query/dist/index.js
.@suspensive/react-query-4
or @suspensive/react-query-5
in their environment.For these reasons, I had to use variables and implemented it as follows:
import packageJson from '@suspensive/react-query-4/package.json'
const packageName = packageJson.name
export * from '@suspensive/react-query-4'
export { packageName }
Originally, I was exporting the entire packageJson, but I minimized it to only export the packageName since it is not necessary to expose the entire packageJson to the user. This allows for dynamic compatibility checks in the user environment.
@gwansikk I should double check this work before releasing. wait a moment!
When I use this package in examples/next-streaming-react-query, I met this error
Error: EISDIR: illegal operation on a directory, read
Ah... because of my unnecessary folder..!
Overview
We provide a better CLI UX by using commander.js.
Usage
Users who have installed the package can access the CLI via npx. The current interfaces provided are
version
status
When @suspensive/react-query and @tanstack/react-query are set to compatible versions.
If @suspensive/react-query and @tanstack/react-query are set to incompatible versions,
switch
fix
The
fix
command switches to the appropriate@suspensive/react-query-x
version for the current environment.help
PR Checklist