@signaldb/mobx 2.0.0-beta.21 → 2.0.0-beta.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n observable,\n runInAction,\n onBecomeUnobserved,\n} from 'mobx'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst mobxReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable({ count: 0 })\n return {\n depend: () => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n dep.count\n },\n notify: () => {\n runInAction(() => {\n dep.count += 1\n })\n },\n raw: dep,\n }\n },\n isInScope: undefined,\n onDispose(callback, { raw: dep }) {\n onBecomeUnobserved(dep, 'count', callback)\n },\n})\n\nexport default mobxReactivityAdapter\n"],"mappings":"gTAOM,
|
|
1
|
+
{"version":3,"file":"index.umd.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import {\n observable,\n runInAction,\n onBecomeUnobserved,\n} from 'mobx'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst mobxReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable({ count: 0 })\n return {\n depend: () => {\n // eslint-disable-next-line @typescript-eslint/no-unused-expressions\n dep.count\n },\n notify: () => {\n runInAction(() => {\n dep.count += 1\n })\n },\n raw: dep,\n }\n },\n isInScope: undefined,\n onDispose(callback, { raw: dep }) {\n onBecomeUnobserved(dep, 'count', callback)\n },\n})\n\nexport default mobxReactivityAdapter\n"],"mappings":"gTAOM,EAAwB,EAAA,wBAAA,CAAwB,CACpD,WAAc,CACZ,IAAM,GAAA,EAAM,EAAA,WAAA,CAAW,CAAE,MAAO,CAAE,CAAC,EACnC,MAAO,CACL,WAAc,CAEZ,EAAI,KACN,EACA,WAAc,EACZ,EAAA,EAAA,YAAA,KAAkB,CAChB,EAAI,OAAS,CACf,CAAC,CACH,EACA,IAAK,CACP,CACF,EACA,UAAW,IAAA,GACX,UAAU,EAAU,CAAE,IAAK,GAAO,EAChC,EAAA,EAAA,mBAAA,CAAmB,EAAK,QAAS,CAAQ,CAC3C,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaldb/mobx",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.22",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf dist && vite build",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@signaldb/core": "1.x || ^2.0.0-0",
|
|
56
|
-
"mobx": "6.x.x"
|
|
56
|
+
"mobx": "6.x.x || 7.x"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"mobx": "^7.0.0"
|