Skip to content

Commit

Permalink
feat: get react-query v5 working
Browse files Browse the repository at this point in the history
  • Loading branch information
melistik committed Apr 12, 2024
1 parent b25d434 commit 793a220
Show file tree
Hide file tree
Showing 14 changed files with 108 additions and 245 deletions.
5 changes: 4 additions & 1 deletion client-generation/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ mkdir -p ./tmp

NX_WORKSPACE=rcktbs-commons
PACKAGE=openapi-client
VERSION="1.$(date '+%Y%m%d').$(date '+%H%M')"


ARRAY=(
"../commons-rest-openapi/target/test.zip:openapi"
)
Expand Down Expand Up @@ -37,7 +40,7 @@ rm -rf ./tmp

cd $NX_WORKSPACE
cd packages/$PACKAGE
npm version "0.1.0-rc.$(date '+%Y%m%d-%H%M')"
npm version $VERSION
npm i
cd ../..
npm install -g npx
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"name": "@rcktbs/openapi-client",
"version": "0.1.0",
"version": "1.20240412.1047",
"type": "commonjs",
"license": "Unlicense",
"devDependencies": {
"@rocketbase/commons-core": "^0.9.0",
"@tanstack/react-query": "^4.24.10",
"@rocketbase/commons-core": "^0.9.1",
"@tanstack/react-query": "^5.29.2",
"@types/react": "^18.0.28",
"axios": "^1.3.4",
"react": "^18.2.0"
},
"peerDependencies": {
"@rocketbase/commons-core": "^0.9.0",
"@tanstack/react-query": "^4.12.0",
"@rocketbase/commons-core": "^0.9.1",
"@tanstack/react-query": "^5.0.0",
"axios": "^1.3.0",
"react": "^17.0.0 || ^18.0.0"
"react": "^18.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const useApi = () => {

return React.useMemo(
() => ({
moduleApi: createOpenApiModuleApi(axiosClient, { baseURL: baseUrl() }),
openApiModuleApi: createOpenApiModuleApi(axiosClient, { baseURL: baseUrl() }),
}),
[axiosClient, baseUrl]
);
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './openapi';
export * from "./util";
Loading

0 comments on commit 793a220

Please sign in to comment.