Merge pull request #920 from c-bata/remove-recoil-dependency-from-tslib

Remove `recoil` and `@optuna/storage` dependencies from `optuna/react`
This commit is contained in:
c-bata
2024-08-07 22:27:01 +09:00
committed by GitHub
6 changed files with 14 additions and 60 deletions
+4 -25
View File
@@ -72,14 +72,13 @@
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.10",
"@mui/system": "^5.15.9",
"@optuna/storage": "file:../storage",
"@tanstack/react-table": "^8.17.3",
"plotly.js-dist-min": "^2.30.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recoil": "^0.7.7"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@optuna/storage": "file:../storage",
"@optuna/types": "file:../types",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
@@ -7185,10 +7184,6 @@
"gunzip-maybe": "bin.js"
}
},
"../tslib/react/node_modules/hamt_plus": {
"version": "1.0.2",
"license": "MIT"
},
"../tslib/react/node_modules/handlebars": {
"version": "4.7.8",
"dev": true,
@@ -9943,24 +9938,6 @@
"dev": true,
"license": "0BSD"
},
"../tslib/react/node_modules/recoil": {
"version": "0.7.7",
"license": "MIT",
"dependencies": {
"hamt_plus": "1.0.2"
},
"peerDependencies": {
"react": ">=16.13.1"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
}
},
"../tslib/react/node_modules/redent": {
"version": "3.0.0",
"dev": true,
@@ -12088,6 +12065,7 @@
"../tslib/storage": {
"name": "@optuna/storage",
"version": "0.0.1",
"dev": true,
"license": "MIT",
"dependencies": {
"@sqlite.org/sqlite-wasm": "^3.45.1-build1"
@@ -12103,6 +12081,7 @@
},
"../tslib/storage/node_modules/@sqlite.org/sqlite-wasm": {
"version": "3.45.1-build1",
"dev": true,
"license": "Apache-2.0",
"bin": {
"sqlite-wasm": "bin/index.js"
+2 -3
View File
@@ -56,14 +56,13 @@
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.10",
"@mui/system": "^5.15.9",
"@optuna/storage": "file:../storage",
"@tanstack/react-table": "^8.17.3",
"plotly.js-dist-min": "^2.30.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recoil": "^0.7.7"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@optuna/storage": "file:../storage",
"@optuna/types": "file:../types",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
+3 -27
View File
@@ -15,14 +15,13 @@
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.10",
"@mui/system": "^5.15.9",
"@optuna/storage": "file:../storage",
"@tanstack/react-table": "^8.17.3",
"plotly.js-dist-min": "^2.30.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recoil": "^0.7.7"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@optuna/storage": "file:../storage",
"@optuna/types": "file:../types",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
@@ -47,6 +46,7 @@
"../storage": {
"name": "@optuna/storage",
"version": "0.0.1",
"dev": true,
"license": "MIT",
"dependencies": {
"@sqlite.org/sqlite-wasm": "^3.45.1-build1"
@@ -8409,11 +8409,6 @@
"gunzip-maybe": "bin.js"
}
},
"node_modules/hamt_plus": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/hamt_plus/-/hamt_plus-1.0.2.tgz",
"integrity": "sha512-t2JXKaehnMb9paaYA7J0BX8QQAY8lwfQ9Gjf4pg/mk4krt+cmwmU652HOoWonf+7+EQV97ARPMhhVgU1ra2GhA=="
},
"node_modules/handlebars": {
"version": "4.7.8",
"resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz",
@@ -11430,25 +11425,6 @@
"integrity": "sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ==",
"dev": true
},
"node_modules/recoil": {
"version": "0.7.7",
"resolved": "https://registry.npmjs.org/recoil/-/recoil-0.7.7.tgz",
"integrity": "sha512-8Og5KPQW9LwC577Vc7Ug2P0vQshkv1y3zG3tSSkWMqkWSwHmE+by06L8JtnGocjW6gcCvfwB3YtrJG6/tWivNQ==",
"dependencies": {
"hamt_plus": "1.0.2"
},
"peerDependencies": {
"react": ">=16.13.1"
},
"peerDependenciesMeta": {
"react-dom": {
"optional": true
},
"react-native": {
"optional": true
}
}
},
"node_modules/redent": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/redent/-/redent-3.0.0.tgz",
+2 -3
View File
@@ -32,15 +32,14 @@
"@mui/lab": "^5.0.0-alpha.170",
"@mui/material": "^5.15.10",
"@mui/system": "^5.15.9",
"@optuna/storage": "file:../storage",
"@tanstack/react-table": "^8.17.3",
"plotly.js-dist-min": "^2.30.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"recoil": "^0.7.7"
"react-dom": "^18.2.0"
},
"devDependencies": {
"@optuna/types": "file:../types",
"@optuna/storage": "file:../storage",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-interactions": "^8.0.4",
"@storybook/addon-links": "^8.0.4",
@@ -1,6 +1,7 @@
import { JournalFileStorage, SQLite3Storage } from "@optuna/storage"
import * as Optuna from "@optuna/types"
import { SetterOrUpdater } from "recoil"
type SetterOrUpdater<T> = (valOrUpdater: ((currVal: T) => T) | T) => void
const readFile = async (file: File) => {
return new Promise<ArrayBuffer>((resolve, reject) => {
+1 -1
View File
@@ -1,6 +1,6 @@
import fs from "node:fs"
import * as Optuna from "@optuna/types"
import { loadStorageFromFile } from "../src/utils/loadStorageFromFile"
import { loadStorageFromFile } from "./loadStorageFromFile"
declare global {
interface Window {