@signaldb/sinuous 1.0.0 → 2.0.0-beta.1
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.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +5 -3
package/dist/index.mjs
CHANGED
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous';\nimport { createReactivityAdapter } from '@signaldb/core';\nconst sinuousReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable(0);\n return {\n depend: () => {\n dep();\n },\n notify: () => {\n dep(api.sample(() => dep()) + 1);\n },\n };\n },\n isInScope: undefined,\n onDispose: (callback) => {\n api.cleanup(callback);\n },\n});\nexport default sinuousReactivityAdapter;\n"],"names":["sinuousReactivityAdapter","createReactivityAdapter","dep","observable","api","callback"],"mappings":";;AAEA,MAAMA,IAA2BC,EAAwB;AAAA,EACrD,QAAQ,MAAM;
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous';\nimport { createReactivityAdapter } from '@signaldb/core';\nconst sinuousReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable(0);\n return {\n depend: () => {\n dep();\n },\n notify: () => {\n dep(api.sample(() => dep()) + 1);\n },\n };\n },\n isInScope: undefined,\n onDispose: (callback) => {\n api.cleanup(callback);\n },\n});\nexport default sinuousReactivityAdapter;\n"],"names":["sinuousReactivityAdapter","createReactivityAdapter","dep","observable","api","callback"],"mappings":";;AAEA,MAAMA,IAA2BC,EAAwB;AAAA,EACrD,QAAQ,MAAM;AACV,UAAMC,IAAMC,EAAW,CAAC;AACxB,WAAO;AAAA,MACH,QAAQ,MAAM;AACV,QAAAD,EAAA;AAAA,MACJ;AAAA,MACA,QAAQ,MAAM;AACV,QAAAA,EAAIE,EAAI,OAAO,MAAMF,EAAA,CAAK,IAAI,CAAC;AAAA,MACnC;AAAA,IAAA;AAAA,EAER;AAAA,EACA,WAAW;AAAA,EACX,WAAW,CAACG,MAAa;AACrB,IAAAD,EAAI,QAAQC,CAAQ;AAAA,EACxB;AACJ,CAAC;"}
|
package/dist/index.umd.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("sinuous"),require("@signaldb/core")):typeof define=="function"&&define.amd?define(["sinuous","@signaldb/core"],i):(e=typeof globalThis<"u"?globalThis:e||self,e.SignalDB=i(e.sinuous,e.core))})(this,function(e,i){"use strict";return i.createReactivityAdapter({create:()=>{const n=e.observable(0);return{depend:()=>{n()},notify:()=>{n(e.api.sample(()=>n())+1)}}},isInScope:void 0,onDispose:n=>{e.api.cleanup(n)}})});
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?module.exports=i(require("sinuous"),require("@signaldb/core")):typeof define=="function"&&define.amd?define(["sinuous","@signaldb/core"],i):(e=typeof globalThis<"u"?globalThis:e||self,e.SignalDB=i(e.sinuous,e.core))})(this,(function(e,i){"use strict";return i.createReactivityAdapter({create:()=>{const n=e.observable(0);return{depend:()=>{n()},notify:()=>{n(e.api.sample(()=>n())+1)}}},isInScope:void 0,onDispose:n=>{e.api.cleanup(n)}})}));
|
|
2
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 { observable, api } from 'sinuous';\nimport { createReactivityAdapter } from '@signaldb/core';\nconst sinuousReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable(0);\n return {\n depend: () => {\n dep();\n },\n notify: () => {\n dep(api.sample(() => dep()) + 1);\n },\n };\n },\n isInScope: undefined,\n onDispose: (callback) => {\n api.cleanup(callback);\n },\n});\nexport default sinuousReactivityAdapter;\n"],"names":["createReactivityAdapter","dep","observable","api","callback"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../src/index.ts"],"sourcesContent":["import { observable, api } from 'sinuous';\nimport { createReactivityAdapter } from '@signaldb/core';\nconst sinuousReactivityAdapter = createReactivityAdapter({\n create: () => {\n const dep = observable(0);\n return {\n depend: () => {\n dep();\n },\n notify: () => {\n dep(api.sample(() => dep()) + 1);\n },\n };\n },\n isInScope: undefined,\n onDispose: (callback) => {\n api.cleanup(callback);\n },\n});\nexport default sinuousReactivityAdapter;\n"],"names":["createReactivityAdapter","dep","observable","api","callback"],"mappings":"6TAEiCA,EAAAA,wBAAwB,CACrD,OAAQ,IAAM,CACV,MAAMC,EAAMC,EAAAA,WAAW,CAAC,EACxB,MAAO,CACH,OAAQ,IAAM,CACVD,EAAA,CACJ,EACA,OAAQ,IAAM,CACVA,EAAIE,EAAAA,IAAI,OAAO,IAAMF,EAAA,CAAK,EAAI,CAAC,CACnC,CAAA,CAER,EACA,UAAW,OACX,UAAYG,GAAa,CACrBD,EAAAA,IAAI,QAAQC,CAAQ,CACxB,CACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@signaldb/sinuous",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
|
-
"build": "rimraf dist && vite build"
|
|
6
|
+
"build": "rimraf dist && vite build",
|
|
7
|
+
"analyze-bundle": "bundle-analyzer ./dist --upload-token=$BUNDLE_ANALYZER_UPLOAD_TOKEN --bundle-name=@signaldb/sinuous",
|
|
8
|
+
"test": "vitest"
|
|
7
9
|
},
|
|
8
10
|
"repository": {
|
|
9
11
|
"type": "git",
|
|
@@ -50,7 +52,7 @@
|
|
|
50
52
|
"dist"
|
|
51
53
|
],
|
|
52
54
|
"peerDependencies": {
|
|
53
|
-
"@signaldb/core": "1.x",
|
|
55
|
+
"@signaldb/core": "1.x || ^2.0.0-0",
|
|
54
56
|
"sinuous": "0.x.x"
|
|
55
57
|
}
|
|
56
58
|
}
|