@signaldb/reactively 2.0.0-beta.2 → 2.0.0-beta.20
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.d.ts +1 -1
- package/dist/index.mjs +23 -22
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -1
package/dist/index.d.ts
CHANGED
package/dist/index.mjs
CHANGED
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { onCleanup as
|
|
2
|
-
import { createReactivityAdapter as
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { onCleanup as e, reactive as t } from "@reactively/core";
|
|
2
|
+
import { createReactivityAdapter as n } from "@signaldb/core";
|
|
3
|
+
//#region src/index.ts
|
|
4
|
+
var r = n({
|
|
5
|
+
create: () => {
|
|
6
|
+
let e = t(0);
|
|
7
|
+
return {
|
|
8
|
+
depend: () => {
|
|
9
|
+
e.get();
|
|
10
|
+
},
|
|
11
|
+
notify: () => {
|
|
12
|
+
e.set(e.value + 1);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
},
|
|
16
|
+
isInScope: void 0,
|
|
17
|
+
onDispose: (t) => {
|
|
18
|
+
e(t);
|
|
19
|
+
}
|
|
19
20
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=index.mjs.map
|
|
21
|
+
//#endregion
|
|
22
|
+
export { r as default };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=index.mjs.map
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { reactive, onCleanup } from '@reactively/core'
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { reactive, onCleanup } from '@reactively/core'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst maverickjsReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = reactive(0)\n return {\n depend: () => {\n dep.get()\n },\n notify: () => {\n dep.set(dep.value + 1)\n },\n }\n },\n isInScope: undefined,\n onDispose: (callback) => {\n onCleanup(callback)\n },\n})\n\nexport default maverickjsReactivityAdapter\n"],"mappings":";;;AAGA,IAAM,IAA8B,EAAwB;CAC1D,cAAc;EACZ,IAAM,IAAM,EAAS,CAAC;EACtB,OAAO;GACL,cAAc;IACZ,EAAI,IAAI;GACV;GACA,cAAc;IACZ,EAAI,IAAI,EAAI,QAAQ,CAAC;GACvB;EACF;CACF;CACA,WAAW,KAAA;CACX,YAAY,MAAa;EACvB,EAAU,CAAQ;CACpB;AACF,CAAC"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,
|
|
2
|
-
//# sourceMappingURL=index.umd.js.map
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?module.exports=t(require("@reactively/core"),require("@signaldb/core")):typeof define==`function`&&define.amd?define([`@reactively/core`,`@signaldb/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,e.SignalDB=t(e._reactively_core,e._signaldb_core))})(this,function(e,t){return(0,t.createReactivityAdapter)({create:()=>{let t=(0,e.reactive)(0);return{depend:()=>{t.get()},notify:()=>{t.set(t.value+1)}}},isInScope:void 0,onDispose:t=>{(0,e.onCleanup)(t)}})});
|
|
2
|
+
//# sourceMappingURL=index.umd.js.map
|
package/dist/index.umd.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { reactive, onCleanup } from '@reactively/core'
|
|
1
|
+
{"version":3,"file":"index.umd.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["import { reactive, onCleanup } from '@reactively/core'\nimport { createReactivityAdapter } from '@signaldb/core'\n\nconst maverickjsReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = reactive(0)\n return {\n depend: () => {\n dep.get()\n },\n notify: () => {\n dep.set(dep.value + 1)\n },\n }\n },\n isInScope: undefined,\n onDispose: (callback) => {\n onCleanup(callback)\n },\n})\n\nexport default maverickjsReactivityAdapter\n"],"mappings":"oVAGM,EAAA,EAAA,yBAAsD,CAC1D,WAAc,CACZ,IAAM,GAAA,EAAA,EAAA,UAAe,CAAC,EACtB,MAAO,CACL,WAAc,CACZ,EAAI,IAAI,CACV,EACA,WAAc,CACZ,EAAI,IAAI,EAAI,MAAQ,CAAC,CACvB,CACF,CACF,EACA,UAAW,IAAA,GACX,UAAY,GAAa,EACvB,EAAA,EAAA,WAAU,CAAQ,CACpB,CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaldb/reactively",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.20",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "rimraf dist && vite build",
|
|
@@ -53,6 +53,10 @@
|
|
|
53
53
|
],
|
|
54
54
|
"peerDependencies": {
|
|
55
55
|
"@reactively/core": "0.x.x",
|
|
56
|
+
"@signaldb/core": "2.x"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@reactively/core": "^0.0.8",
|
|
56
60
|
"@signaldb/core": "1.x || ^2.0.0-0"
|
|
57
61
|
}
|
|
58
62
|
}
|