Skip to content

Commit

Permalink
feat: Use CozyDevTools instead FlagSwitcher
Browse files Browse the repository at this point in the history
  • Loading branch information
Merkur39 committed Dec 18, 2023
1 parent 2213c08 commit fcf4b12
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 10 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"cozy-interapp": "^0.8.1",
"cozy-keys-lib": "^6.0.0",
"cozy-logger": "^1.10.1",
"cozy-mespapiers-lib": "^68.1.0",
"cozy-mespapiers-lib": "^69.0.0",
"cozy-notifications": "^0.14.0",
"cozy-realtime": "^5.0.0",
"cozy-sharing": "^10.0.0",
Expand All @@ -79,6 +79,7 @@
"lodash": "4.17.21",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-inspector": "5.1.1",
"react-router-dom": "6.4.5",
"terser-webpack-plugin": "1.4.5"
}
Expand Down
4 changes: 0 additions & 4 deletions src/targets/browser/setupApp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ const setupApp = memoize(() => {
client.registerPlugin(RealtimePlugin)
client.registerPlugin(flag.plugin)

if (process.env.NODE_ENV !== 'production' && flag('switcher') === null) {
flag('switcher', true)
}

Sentry.init({
dsn: 'https://[email protected]/63',
environment: process.env.NODE_ENV,
Expand Down
37 changes: 32 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8516,10 +8516,10 @@ cozy-logger@^1.3.0:
chalk "^2.4.2"
json-stringify-safe "5.0.1"

cozy-mespapiers-lib@^68.1.0:
version "68.1.0"
resolved "https://registry.yarnpkg.com/cozy-mespapiers-lib/-/cozy-mespapiers-lib-68.1.0.tgz#962e9339f784abd49a1f14d40623a79adf6b3821"
integrity sha512-ZifSRBESHw4doHjZBOrPkFcbNCcYRVuMieWIWs/aAIuUTfivV4RR1bLMysOt4rI97PQaYCRPkeF4PZAtpqe/Ww==
cozy-mespapiers-lib@^69.0.0:
version "69.0.0"
resolved "https://registry.yarnpkg.com/cozy-mespapiers-lib/-/cozy-mespapiers-lib-69.0.0.tgz#3bbfe2a055ac2cb443e7032c9b3a713f0c8d5303"
integrity sha512-eLeMdEcg5gvXVaN7Qn0g0gKFtb2CpW72tNMDTt3s0QHcZN2RQNSLAF3NeC1OWziQuVseJmUDqn95BPkcqcC5MQ==
dependencies:
"@date-io/date-fns" "1"
"@material-ui/pickers" "3.3.10"
Expand Down Expand Up @@ -12667,6 +12667,14 @@ is-docker@^2.0.0, is-docker@^2.1.1:
resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa"
integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ==

is-dom@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/is-dom/-/is-dom-1.1.0.tgz#af1fced292742443bb59ca3f76ab5e80907b4e8a"
integrity sha512-u82f6mvhYxRPKpw8V1N0W8ce1xXwOrQtgGcxl6UCL5zBmZu3is/18K0rR7uFCnMDuAsS/3W54mGL4vsaFUQlEQ==
dependencies:
is-object "^1.0.1"
is-window "^1.0.2"

is-dotfile@^1.0.0:
version "1.0.3"
resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.3.tgz#a6a2f32ffd2dfb04f5ca25ecd0f6b83cf798a1e1"
Expand Down Expand Up @@ -12825,6 +12833,11 @@ is-number@^7.0.0:
resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b"
integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==

is-object@^1.0.1:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-object/-/is-object-1.0.2.tgz#a56552e1c665c9e950b4a025461da87e72f86fcf"
integrity sha512-2rRIahhZr2UWb45fIOuvZGpFtz0TyOZLf32KxBbSoUCeZR495zCKlWUKKUByk3geS2eAs7ZAABt0Y/Rx0GiQGA==

is-path-cwd@^2.0.0, is-path-cwd@^2.2.0:
version "2.2.0"
resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-2.2.0.tgz#67d43b82664a7b5191fd9119127eb300048a9fdb"
Expand Down Expand Up @@ -12994,6 +13007,11 @@ is-whitespace-character@^1.0.0:
resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz#0858edd94a95594c7c9dd0b5c174ec6e45ee4aa7"
integrity sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w==

is-window@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-window/-/is-window-1.0.2.tgz#2c896ca53db97de45d3c33133a65d8c9f563480d"
integrity sha512-uj00kdXyZb9t9RcAUAwMZAnkBUwdYGhYlt7djMXhfyhUCzwNba50tIiBKR7q0l7tdoBtFVw/3JmLY6fI3rmZmg==

is-windows@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d"
Expand Down Expand Up @@ -16968,7 +16986,7 @@ [email protected], prop-types@^15.5.10, prop-types@^15.5.4, prop-types@^15.5.8,
object-assign "^4.1.1"
react-is "^16.8.1"

prop-types@^15.7.2:
prop-types@^15.0.0, prop-types@^15.7.2:
version "15.8.1"
resolved "https://registry.yarnpkg.com/prop-types/-/prop-types-15.8.1.tgz#67d87bf1a694f48435cf332c24af10214a3140b5"
integrity sha512-oj87CgZICdulUohogVAR7AjlC0327U4el4L6eAvOqCeudMDVU0NThNaV+b9Df4dXgSP1gXMTnPdhfe/2qDH5cg==
Expand Down Expand Up @@ -17355,6 +17373,15 @@ [email protected]:
prop-types "^15.7.2"
warning "^4.0.3"

[email protected]:
version "5.1.1"
resolved "https://registry.yarnpkg.com/react-inspector/-/react-inspector-5.1.1.tgz#58476c78fde05d5055646ed8ec02030af42953c8"
integrity sha512-GURDaYzoLbW8pMGXwYPDBIv6nqei4kK7LPRZ9q9HCZF54wqXz/dnylBp/kfE9XmekBhHvLDdcYeyIwSrvtOiWg==
dependencies:
"@babel/runtime" "^7.0.0"
is-dom "^1.0.0"
prop-types "^15.0.0"

react-inspector@^6.0.0:
version "6.0.2"
resolved "https://registry.yarnpkg.com/react-inspector/-/react-inspector-6.0.2.tgz#aa3028803550cb6dbd7344816d5c80bf39d07e9d"
Expand Down

0 comments on commit fcf4b12

Please sign in to comment.