From c825e79baa43e83fc50e160de44381934340298a Mon Sep 17 00:00:00 2001 From: tombch Date: Mon, 1 Jul 2024 14:30:47 +0100 Subject: [PATCH] Downgraded React and react-query to versions 17 and 4 respectively, for compatibility reasons --- lib/Onyx.tsx | 4 ++-- package-lock.json | 45 ++++++++++++++++++++++++++++++++------------- package.json | 8 ++++---- 3 files changed, 38 insertions(+), 19 deletions(-) diff --git a/lib/Onyx.tsx b/lib/Onyx.tsx index fd3fa85..5685bc0 100644 --- a/lib/Onyx.tsx +++ b/lib/Onyx.tsx @@ -23,7 +23,7 @@ import LoadingAlert from "./components/LoadingAlert"; import "./Onyx.css"; import "./bootstrap.css"; -const VERSION = "0.10.0"; +const VERSION = "0.10.1"; type ProjectField = { type: string; @@ -444,7 +444,7 @@ function Data(props: DataProps) { {...props} handleSearch={setSearchParameters} resultPending={resultPending} - resultError={resultError} + resultError={resultError instanceof Error ? resultError : null} resultData={resultData} /> diff --git a/package-lock.json b/package-lock.json index c27fa69..cf6dbf9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,14 +1,14 @@ { "name": "climb-onyx-gui", - "version": "0.9.1", + "version": "0.10.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "climb-onyx-gui", - "version": "0.9.1", + "version": "0.10.1", "dependencies": { - "@tanstack/react-query": "^5.45.1", + "@tanstack/react-query": "^4.36.1", "export-to-csv": "^1.3.0", "react-bootstrap": "^2.10.2", "react-select": "^5.8.0" @@ -30,8 +30,8 @@ "vite-plugin-dts": "^3.9.1" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" } }, "node_modules/@babel/code-frame": { @@ -1594,27 +1594,38 @@ } }, "node_modules/@tanstack/query-core": { - "version": "5.45.0", - "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-5.45.0.tgz", - "integrity": "sha512-RVfIZQmFUTdjhSAAblvueimfngYyfN6HlwaJUPK71PKd7yi43Vs1S/rdimmZedPWX/WGppcq/U1HOj7O7FwYxw==", + "version": "4.36.1", + "resolved": "https://registry.npmjs.org/@tanstack/query-core/-/query-core-4.36.1.tgz", + "integrity": "sha512-DJSilV5+ytBP1FbFcEJovv4rnnm/CokuVvrBEtW/Va9DvuJ3HksbXUJEpI0aV1KtuL4ZoO9AVE6PyNLzF7tLeA==", "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" } }, "node_modules/@tanstack/react-query": { - "version": "5.45.1", - "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-5.45.1.tgz", - "integrity": "sha512-mYYfJujKg2kxmkRRjA6nn4YKG3ITsKuH22f1kteJ5IuVQqgKUgbaSQfYwVP0gBS05mhwxO03HVpD0t7BMN7WOA==", + "version": "4.36.1", + "resolved": "https://registry.npmjs.org/@tanstack/react-query/-/react-query-4.36.1.tgz", + "integrity": "sha512-y7ySVHFyyQblPl3J3eQBWpXZkliroki3ARnBKsdJchlgt7yJLRDUcf4B8soufgiYt3pEQIkBWBx1N9/ZPIeUWw==", "dependencies": { - "@tanstack/query-core": "5.45.0" + "@tanstack/query-core": "4.36.1", + "use-sync-external-store": "^1.2.0" }, "funding": { "type": "github", "url": "https://github.com/sponsors/tannerlinsley" }, "peerDependencies": { - "react": "^18.0.0" + "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react-native": "*" + }, + "peerDependenciesMeta": { + "react-dom": { + "optional": true + }, + "react-native": { + "optional": true + } } }, "node_modules/@types/argparse": { @@ -3925,6 +3936,14 @@ } } }, + "node_modules/use-sync-external-store": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/use-sync-external-store/-/use-sync-external-store-1.2.2.tgz", + "integrity": "sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==", + "peerDependencies": { + "react": "^16.8.0 || ^17.0.0 || ^18.0.0" + } + }, "node_modules/validator": { "version": "13.12.0", "resolved": "https://registry.npmjs.org/validator/-/validator-13.12.0.tgz", diff --git a/package.json b/package.json index 408cc1e..808204a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "climb-onyx-gui", - "version": "0.10.0", + "version": "0.10.1", "type": "module", "main": "dist/climb-onyx-gui.js", "types": "dist/main.d.ts", @@ -18,14 +18,14 @@ "prepublishOnly": "npm run build" }, "dependencies": { - "@tanstack/react-query": "^5.45.1", + "@tanstack/react-query": "^4.36.1", "export-to-csv": "^1.3.0", "react-bootstrap": "^2.10.2", "react-select": "^5.8.0" }, "peerDependencies": { - "react": "^18.2.0", - "react-dom": "^18.2.0" + "react": "^17.0.2", + "react-dom": "^17.0.2" }, "devDependencies": { "@types/node": "^20.12.12",