@livestore/adapter-node 0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2 → 0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2
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/.tsbuildinfo +1 -1
- package/dist/shutdown-channel.d.ts +1 -3
- package/dist/shutdown-channel.d.ts.map +1 -1
- package/dist/shutdown-channel.js +6 -6
- package/dist/shutdown-channel.js.map +1 -1
- package/package.json +12 -7
- package/src/shutdown-channel.ts +5 -8
- package/rollup.config.mjs +0 -24
- package/tmp/pack.tgz +0 -0
- package/tsconfig.json +0 -17
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import type { Effect } from '@livestore/utils/effect';
|
|
3
|
-
export declare const makeShutdownChannel: (storeId: string) => Effect.Effect<ShutdownChannel.ShutdownChannel>;
|
|
1
|
+
export declare const makeShutdownChannel: (storeId: string) => import("effect/Effect").Effect<import("@livestore/utils/dist/effect/WebChannel/common.js").WebChannel<import("@livestore/common/dist/adapter-types.js").IntentionalShutdownCause | import("@livestore/common/dist/adapter-types.js").UnexpectedError, import("@livestore/common/dist/adapter-types.js").IntentionalShutdownCause | import("@livestore/common/dist/adapter-types.js").UnexpectedError, never>, never, import("effect/Scope").Scope>;
|
|
4
2
|
//# sourceMappingURL=shutdown-channel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shutdown-channel.d.ts","sourceRoot":"","sources":["../src/shutdown-channel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shutdown-channel.d.ts","sourceRoot":"","sources":["../src/shutdown-channel.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,ubAI/C,CAAA"}
|
package/dist/shutdown-channel.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { ShutdownChannel } from '@livestore/common/leader-thread';
|
|
2
|
+
import { makeBroadcastChannel } from './webchannel.js';
|
|
3
|
+
export const makeShutdownChannel = (storeId) => makeBroadcastChannel({
|
|
4
|
+
channelName: `livestore.shutdown.${storeId}`,
|
|
5
|
+
schema: ShutdownChannel.All,
|
|
6
|
+
});
|
|
7
7
|
//# sourceMappingURL=shutdown-channel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shutdown-channel.js","sourceRoot":"","sources":["../src/shutdown-channel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"shutdown-channel.js","sourceRoot":"","sources":["../src/shutdown-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AAEjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAA;AAEtD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,EAAE,CACrD,oBAAoB,CAAC;IACnB,WAAW,EAAE,sBAAsB,OAAO,EAAE;IAC5C,MAAM,EAAE,eAAe,CAAC,GAAG;CAC5B,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/adapter-node",
|
|
3
|
-
"version": "0.0.0-snapshot-
|
|
3
|
+
"version": "0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"exports": {
|
|
@@ -31,12 +31,12 @@
|
|
|
31
31
|
"@opentelemetry/otlp-exporter-base": "0.200.0",
|
|
32
32
|
"vite": "6.2.1",
|
|
33
33
|
"ws": "8.18.0",
|
|
34
|
-
"@livestore/adapter-web": "0.0.0-snapshot-
|
|
35
|
-
"@livestore/
|
|
36
|
-
"@livestore/devtools-node-common": "0.0.0-snapshot-
|
|
37
|
-
"@livestore/
|
|
38
|
-
"@livestore/utils": "0.0.0-snapshot-
|
|
39
|
-
"@livestore/webmesh": "0.0.0-snapshot-
|
|
34
|
+
"@livestore/adapter-web": "0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2",
|
|
35
|
+
"@livestore/common": "0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2",
|
|
36
|
+
"@livestore/devtools-node-common": "0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2",
|
|
37
|
+
"@livestore/sqlite-wasm": "0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2",
|
|
38
|
+
"@livestore/utils": "0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2",
|
|
39
|
+
"@livestore/webmesh": "0.0.0-snapshot-54e706b7e73bd685653cd43e1e34a02c1d8054a2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
@@ -45,6 +45,11 @@
|
|
|
45
45
|
"@types/ws": "^8.18.0",
|
|
46
46
|
"rollup": "^4.35.0"
|
|
47
47
|
},
|
|
48
|
+
"files": [
|
|
49
|
+
"package.json",
|
|
50
|
+
"src",
|
|
51
|
+
"dist"
|
|
52
|
+
],
|
|
48
53
|
"publishConfig": {
|
|
49
54
|
"access": "public"
|
|
50
55
|
},
|
package/src/shutdown-channel.ts
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type { Effect } from '@livestore/utils/effect'
|
|
3
|
-
import { WebChannel } from '@livestore/utils/effect'
|
|
1
|
+
import { ShutdownChannel } from '@livestore/common/leader-thread'
|
|
4
2
|
|
|
5
3
|
import { makeBroadcastChannel } from './webchannel.js'
|
|
6
4
|
|
|
7
5
|
export const makeShutdownChannel = (storeId: string) =>
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// })
|
|
6
|
+
makeBroadcastChannel({
|
|
7
|
+
channelName: `livestore.shutdown.${storeId}`,
|
|
8
|
+
schema: ShutdownChannel.All,
|
|
9
|
+
})
|
package/rollup.config.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import commonjs from '@rollup/plugin-commonjs'
|
|
2
|
-
import { nodeResolve } from '@rollup/plugin-node-resolve'
|
|
3
|
-
import terser from '@rollup/plugin-terser'
|
|
4
|
-
|
|
5
|
-
export default {
|
|
6
|
-
input: 'dist/leader-thread.js',
|
|
7
|
-
output: {
|
|
8
|
-
file: 'dist/leader-thread.bundle.js',
|
|
9
|
-
// dir: 'dist/leader-thread-bundle',
|
|
10
|
-
format: 'esm',
|
|
11
|
-
// inlineDynamicImports: true,
|
|
12
|
-
},
|
|
13
|
-
external: ['@livestore/sqlite-wasm', '@opentelemetry/otlp-exporter-base'],
|
|
14
|
-
plugins: [
|
|
15
|
-
nodeResolve({
|
|
16
|
-
// esnext is needed for @opentelemetry/* packages
|
|
17
|
-
mainFields: ['esnext', 'module', 'main'],
|
|
18
|
-
}),
|
|
19
|
-
commonjs(),
|
|
20
|
-
terser(),
|
|
21
|
-
],
|
|
22
|
-
// Needed for @opentelemetry/* packages
|
|
23
|
-
// inlineDynamicImports: true,
|
|
24
|
-
}
|
package/tmp/pack.tgz
DELETED
|
Binary file
|
package/tsconfig.json
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "./dist",
|
|
5
|
-
"rootDir": "./src",
|
|
6
|
-
"resolveJsonModule": true,
|
|
7
|
-
"tsBuildInfoFile": "./dist/.tsbuildinfo"
|
|
8
|
-
},
|
|
9
|
-
"include": ["./src"],
|
|
10
|
-
"references": [
|
|
11
|
-
{ "path": "../common" },
|
|
12
|
-
{ "path": "../utils" },
|
|
13
|
-
{ "path": "../devtools-node-common" },
|
|
14
|
-
{ "path": "../webmesh" },
|
|
15
|
-
{ "path": "../sqlite-wasm" }
|
|
16
|
-
]
|
|
17
|
-
}
|