Skip to content

Commit 910a695

Browse files
christianalfoniCompuIves
authored andcommitted
update overmind and fix reaction (codesandbox#2736)
* update overmind and fix reaction * Apply suggestions from code review
1 parent 8450445 commit 910a695

File tree

4 files changed

+22
-61
lines changed

4 files changed

+22
-61
lines changed

packages/app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,9 @@
152152
"normalizr": "^3.2.3",
153153
"onigasm": "^2.2.1",
154154
"ot": "^0.0.15",
155-
"overmind": "^19.3.0-1569928101550",
155+
"overmind": "^20.0.0",
156156
"overmind-devtools": "^19.0.0",
157-
"overmind-react": "^20.3.0-1569928101550",
157+
"overmind-react": "^21.0.0",
158158
"phoenix": "^1.3.0",
159159
"postcss": "^6.0.9",
160160
"postcss-selector-parser": "^2.2.3",

packages/app/src/app/overmind/effects/jwt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import store from 'store/dist/store.modern';
21
import { identify, resetUserId } from '@codesandbox/common/lib/utils/analytics';
2+
import store from 'store/dist/store.modern';
33

44
export default {
55
get() {

packages/app/src/app/overmind/onInitialize.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const onInitialize: OnInitialize = (
1010
onModulesByPathChange(cb: (modulesByPath: any) => void) {
1111
overmindInstance.reaction(
1212
({ editor }) => editor.modulePaths,
13-
({ editor }) => cb(editor.modulesByPath)
13+
modulesByPath => cb(modulesByPath)
1414
);
1515
},
1616
getModulesByPath() {

yarn.lock

Lines changed: 18 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -5028,7 +5028,7 @@ ansi-escapes@^3.0.0, ansi-escapes@^3.2.0:
50285028
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-3.2.0.tgz#8780b98ff9dbf5638152d1f1fe5c1d7b4442976b"
50295029
integrity sha512-cBhpre4ma+U0T1oM5fXg7Dy1Jw7zzwv7lt/GoCpr+hDQJoYnKVPLL4dCvSEFMmQurOQvSrwT7SL/DAlhBI97RQ==
50305030

5031-
ansi-escapes@^4.1.0, ansi-escapes@^4.2.1:
5031+
ansi-escapes@^4.1.0:
50325032
version "4.2.1"
50335033
resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.2.1.tgz#4dccdb846c3eee10f6d64dea66273eab90c37228"
50345034
integrity sha512-Cg3ymMAdN10wOk/VYfLV7KCQyv7EDirJ64500sU7n9UlmioEtDuU5Gd+hj73hXSU/ex7tHJSssmyftDdkMLO8Q==
@@ -6582,11 +6582,6 @@ [email protected]:
65826582
"@types/node" "^10.5.1"
65836583
tslib "^1.9.3"
65846584

6585-
6586-
version "1.0.2-1569928101550"
6587-
resolved "https://registry.yarnpkg.com/betsy/-/betsy-1.0.2-1569928101550.tgz#82adfd95aed2595329e8603039dbb4875f9dd395"
6588-
integrity sha512-LAq7wnHbE1ALYnJcrzEKqVR3fU/ACJ3LiOy7Q/Cx0AH/eQzY84EuN0r12yFxJ1PjdOVEHW1xYrQ5NvOT0l9nuA==
6589-
65906585
better-assert@~1.0.0:
65916586
version "1.0.2"
65926587
resolved "https://registry.yarnpkg.com/better-assert/-/better-assert-1.0.2.tgz#40866b9e1b9e0b55b481894311e68faffaebc522"
@@ -7551,13 +7546,6 @@ cli-cursor@^2.0.0, cli-cursor@^2.1.0:
75517546
dependencies:
75527547
restore-cursor "^2.0.0"
75537548

7554-
cli-cursor@^3.1.0:
7555-
version "3.1.0"
7556-
resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307"
7557-
integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==
7558-
dependencies:
7559-
restore-cursor "^3.1.0"
7560-
75617549
cli-spinners@^1.0.0, cli-spinners@^1.3.1:
75627550
version "1.3.1"
75637551
resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-1.3.1.tgz#002c1990912d0d59580c93bd36c056de99e4259a"
@@ -9853,11 +9841,6 @@ emoji-regex@^7.0.1, emoji-regex@^7.0.2:
98539841
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156"
98549842
integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==
98559843

9856-
emoji-regex@^8.0.0:
9857-
version "8.0.0"
9858-
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37"
9859-
integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==
9860-
98619844
emojis-list@^2.0.0:
98629845
version "2.1.0"
98639846
resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-2.1.0.tgz#4daa4d9db00f9819880c79fa457ae5b09a1fd389"
@@ -14530,11 +14513,6 @@ is-fullwidth-code-point@^2.0.0:
1453014513
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f"
1453114514
integrity sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=
1453214515

14533-
is-fullwidth-code-point@^3.0.0:
14534-
version "3.0.0"
14535-
resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d"
14536-
integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==
14537-
1453814516
is-function@^1.0.1:
1453914517
version "1.0.1"
1454014518
resolved "https://registry.yarnpkg.com/is-function/-/is-function-1.0.1.tgz#12cfb98b65b57dd3d193a3121f5f6e2f437602b5"
@@ -16603,7 +16581,7 @@ [email protected]:
1660316581
version "4.17.5"
1660416582
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.5.tgz#99a92d65c0272debe8c96b6057bc8fbfa3bed511"
1660516583

16606-
"lodash@>=3.5 <5", lodash@^4.0.0, lodash@^4.0.1, lodash@^4.11.1, lodash@^4.11.2, lodash@^4.13.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
16584+
"lodash@>=3.5 <5", lodash@^4.0.0, lodash@^4.0.1, lodash@^4.11.1, lodash@^4.11.2, lodash@^4.13.1, lodash@^4.15.0, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.12, lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.2, lodash@^4.17.4, lodash@^4.17.5, lodash@^4.2.0, lodash@^4.2.1, lodash@^4.3.0:
1660716585
version "4.17.15"
1660816586
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.15.tgz#b447f6670a0455bbfeedd11392eff330ea097548"
1660916587
integrity sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==
@@ -17615,7 +17593,7 @@ [email protected]:
1761517593
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.7.tgz#3075ce93bc21b8fab43e1bc4da7e8115ed1e7bab"
1761617594
integrity sha1-MHXOk7whuPq0PhvE2n6BFe0ee6s=
1761717595

17618-
mute-stream@0.0.8, mute-stream@~0.0.4:
17596+
mute-stream@~0.0.4:
1761917597
version "0.0.8"
1762017598
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
1762117599
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==
@@ -18726,12 +18704,12 @@ [email protected]:
1872618704
overmind "18.0.1"
1872718705
tslib "^1.9.3"
1872818706

18729-
overmind-react@^20.3.0-1569928101550:
18730-
version "20.3.0-1569928101550"
18731-
resolved "https://registry.yarnpkg.com/overmind-react/-/overmind-react-20.3.0-1569928101550.tgz#9ceeda57e927e573eaf8b1843b100ee6a8183179"
18732-
integrity sha512-Kht1qsfg0ArcJaeYoIxRQ5Lxyc5I6ORDUiT3IO8D57sNpb3zPpayW7fZ4e4kAyrF16q5xRqBABmijutsy/PjfQ==
18707+
overmind-react@^21.0.0:
18708+
version "21.0.0"
18709+
resolved "https://registry.yarnpkg.com/overmind-react/-/overmind-react-21.0.0.tgz#34a1e656b206687e0d915155b0384862c37ca4f2"
18710+
integrity sha512-MTCPa6G+Y4RtMr2xPrWkXI32eBLCHzrpvRbC6F57arauh6OIAWpoSkaOsonqAL/mUpRuJD2Oswvh9qEAZ8q/AA==
1873318711
dependencies:
18734-
overmind "19.3.0-1569928101550"
18712+
overmind "20.0.0"
1873518713

1873618714
overmind-themes@next:
1873718715
version "1.0.2-1562145138120"
@@ -18751,14 +18729,14 @@ [email protected]:
1875118729
proxy-state-tree "4.4.0"
1875218730
tslib "^1.9.3"
1875318731

18754-
overmind@19.3.0-1569928101550, overmind@^19.3.0-1569928101550:
18755-
version "19.3.0-1569928101550"
18756-
resolved "https://registry.yarnpkg.com/overmind/-/overmind-19.3.0-1569928101550.tgz#047db3541097c4a630455eede48b933a518b2b17"
18757-
integrity sha512-F5NGgZa4+RuVpeDJYkyKc+GiRfk9ny+dxBU8cNjaGfvqvVBrkGl2HKJZmFs07WJmhZCYao2nNNr9/dEYzeXuPA==
18732+
overmind@20.0.0, overmind@^20.0.0:
18733+
version "20.0.0"
18734+
resolved "https://registry.yarnpkg.com/overmind/-/overmind-20.0.0.tgz#7f2d59c3cde031a77747f5f5137391dcc4d0e0d4"
18735+
integrity sha512-+wxeoqtfPtG8JK+zBSwlyYZAddL0xFPmq47BHNsFosXN1D53NLANNR+MiiJ6fXzkWRPf1pURxq6DkJNqB8EB7w==
1875818736
dependencies:
18759-
betsy "1.0.2-1569928101550"
18737+
betsy "1.0.2"
1876018738
is-plain-obj "^1.1.0"
18761-
proxy-state-tree "4.4.4-1569928101550"
18739+
proxy-state-tree "4.5.0"
1876218740

1876318741
p-cancelable@^0.3.0:
1876418742
version "0.3.0"
@@ -20695,10 +20673,10 @@ [email protected]:
2069520673
dependencies:
2069620674
is-plain-obj "^1.1.0"
2069720675

20698-
proxy-state-tree@4.4.4-1569928101550:
20699-
version "4.4.4-1569928101550"
20700-
resolved "https://registry.yarnpkg.com/proxy-state-tree/-/proxy-state-tree-4.4.4-1569928101550.tgz#d77f22d000685dd77ac4bf5d97036663b66efb6f"
20701-
integrity sha512-i4G6eTwlC244ENT/75nFSYpnRSQs5Acx03awzxefyIRfXVCUOYXB0SeeOlrQvHWbTxb04GOQLtSjoZdVLLwQ5Q==
20676+
proxy-state-tree@4.5.0:
20677+
version "4.5.0"
20678+
resolved "https://registry.yarnpkg.com/proxy-state-tree/-/proxy-state-tree-4.5.0.tgz#f96cc7907f35cfe81209661ba56f4846f877a654"
20679+
integrity sha512-UaLQKwuQv0j9vhtwd4qj27PdF3VPLca89FfJGwTObtU3dYf1stCatIBwew7Y7geH1IbaoFN+V4DO2EQeJ476AQ==
2070220680
dependencies:
2070320681
is-plain-obj "^1.1.0"
2070420682

@@ -22588,14 +22566,6 @@ restore-cursor@^2.0.0:
2258822566
onetime "^2.0.0"
2258922567
signal-exit "^3.0.2"
2259022568

22591-
restore-cursor@^3.1.0:
22592-
version "3.1.0"
22593-
resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e"
22594-
integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==
22595-
dependencies:
22596-
onetime "^5.1.0"
22597-
signal-exit "^3.0.2"
22598-
2259922569
ret@~0.1.10:
2260022570
version "0.1.15"
2260122571
resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc"
@@ -24217,15 +24187,6 @@ string-width@^3.0.0, string-width@^3.1.0:
2421724187
is-fullwidth-code-point "^2.0.0"
2421824188
strip-ansi "^5.1.0"
2421924189

24220-
string-width@^4.1.0:
24221-
version "4.1.0"
24222-
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.1.0.tgz#ba846d1daa97c3c596155308063e075ed1c99aff"
24223-
integrity sha512-NrX+1dVVh+6Y9dnQ19pR0pP4FiEIlUvdTGn8pw6CKTNq5sgib2nIhmUNT5TAmhWmvKr3WcxBcP3E8nWezuipuQ==
24224-
dependencies:
24225-
emoji-regex "^8.0.0"
24226-
is-fullwidth-code-point "^3.0.0"
24227-
strip-ansi "^5.2.0"
24228-
2422924190
string.prototype.matchall@^3.0.1:
2423024191
version "3.0.1"
2423124192
resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-3.0.1.tgz#5a9e0b64bcbeb336aa4814820237c2006985646d"

0 commit comments

Comments
 (0)