From 1862adebef4ddfde8d071669c99038bf3343383c Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 22 Nov 2024 11:07:15 -0600 Subject: [PATCH] Remove mobx-devtools-mst (#6414) * build(deps): bump mobx-devtools-mst from 0.9.30 to 0.9.34 Bumps [mobx-devtools-mst](https://github.com/mobxjs/mobx-devtools) from 0.9.30 to 0.9.34. - [Changelog](https://github.com/mobxjs/mobx-devtools/blob/master/CHANGELOG.md) - [Commits](https://github.com/mobxjs/mobx-devtools/commits) --- updated-dependencies: - dependency-name: mobx-devtools-mst dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] * remove mobx-devtools-mst --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Delilah <23665803+goplayoutside3@users.noreply.github.com> --- packages/app-project/package.json | 1 - packages/app-project/pages/_app.js | 2 -- packages/lib-classifier/package.json | 1 - packages/lib-classifier/src/hooks/useHydratedStore.js | 4 +--- yarn.lock | 5 ----- 5 files changed, 1 insertion(+), 12 deletions(-) diff --git a/packages/app-project/package.json b/packages/app-project/package.json index 66b277a26a..c6f64fb5b1 100644 --- a/packages/app-project/package.json +++ b/packages/app-project/package.json @@ -41,7 +41,6 @@ "lodash": "~4.17.11", "million": "~3.1.11", "mobx": "~6.12.0", - "mobx-devtools-mst": "~0.9.21", "mobx-react": "~9.1.0", "mobx-state-tree": "~5.4.0", "morgan": "^1.10.0", diff --git a/packages/app-project/pages/_app.js b/packages/app-project/pages/_app.js index 2d0a32c03d..69ff114cc7 100644 --- a/packages/app-project/pages/_app.js +++ b/packages/app-project/pages/_app.js @@ -1,4 +1,3 @@ -import makeInspectable from 'mobx-devtools-mst' import { enableStaticRendering, Provider } from 'mobx-react' import Error from 'next/error' import { useEffect, useMemo } from 'react' @@ -50,7 +49,6 @@ function MyApp({ Component, pageProps }) { /* Initialize the mobx store */ const { initialState } = pageProps const store = useStore(initialState) - makeInspectable(store) useEffect( function onMount() { diff --git a/packages/lib-classifier/package.json b/packages/lib-classifier/package.json index 2963e6df04..af386aa077 100644 --- a/packages/lib-classifier/package.json +++ b/packages/lib-classifier/package.json @@ -99,7 +99,6 @@ "jsdom": "~24.0.0", "million": "~3.1.11", "mobx": "~6.12.0", - "mobx-devtools-mst": "~0.9.21", "mobx-react": "~9.1.0", "mobx-state-tree": "~5.4.0", "mocha": "~10.8.2", diff --git a/packages/lib-classifier/src/hooks/useHydratedStore.js b/packages/lib-classifier/src/hooks/useHydratedStore.js index 92379f8524..e033b30ca9 100644 --- a/packages/lib-classifier/src/hooks/useHydratedStore.js +++ b/packages/lib-classifier/src/hooks/useHydratedStore.js @@ -1,4 +1,3 @@ -import makeInspectable from 'mobx-devtools-mst' import { addDisposer, destroy, onSnapshot } from 'mobx-state-tree' import { useMemo } from 'react' @@ -64,7 +63,6 @@ function initStore({ cachePanoptesData, storageKey, storeEnv }) { */ persist(storageKey, store) } - makeInspectable(store) } return store } @@ -79,4 +77,4 @@ export function cleanStore() { export default function useHydratedStore(storeEnv = {}, cachePanoptesData = false, storageKey) { const _store = useMemo(() => initStore({ cachePanoptesData, storageKey, storeEnv }), [cachePanoptesData, storageKey, storeEnv]) return _store -} \ No newline at end of file +} diff --git a/yarn.lock b/yarn.lock index 8f3ec502a6..df33cf9e37 100644 --- a/yarn.lock +++ b/yarn.lock @@ -13428,11 +13428,6 @@ mkdirp@^1.0.3: resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== -mobx-devtools-mst@~0.9.21: - version "0.9.30" - resolved "https://registry.npmjs.org/mobx-devtools-mst/-/mobx-devtools-mst-0.9.30.tgz" - integrity sha512-6fIYeFG4xT4syIeKddmK55zQbc3ZZZr/272/cCbfaAAM5YiuFdteGZGUgdsz8wxf/mGxWZbFOM3WmASAnpwrbw== - mobx-react-lite@^4.0.7: version "4.0.7" resolved "https://registry.yarnpkg.com/mobx-react-lite/-/mobx-react-lite-4.0.7.tgz#f4e21e18d05c811010dcb1d3007e797924c4d90b"