@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.
@@ -1,4 +1,2 @@
1
- import type { ShutdownChannel } from '@livestore/common/leader-thread';
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":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAKrD,eAAO,MAAM,mBAAmB,GAAI,SAAS,MAAM,KACrB,MAAM,CAAC,MAAM,CAAC,eAAe,CAAC,eAAe,CAAC,CAAA"}
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"}
@@ -1,7 +1,7 @@
1
- import { WebChannel } from '@livestore/utils/effect';
2
- export const makeShutdownChannel = (storeId) => WebChannel.noopChannel();
3
- // makeBroadcastChannel({
4
- // channelName: `livestore.shutdown.${storeId}`,
5
- // schema: ShutdownChannel.All,
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":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,OAAe,EAAE,EAAE,CACrD,UAAU,CAAC,WAAW,EAAoD,CAAA;AAC5E,yBAAyB;AACzB,kDAAkD;AAClD,iCAAiC;AACjC,KAAK"}
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-5a6440f111a5a7c2441a649866587d5d51e22820.2",
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-5a6440f111a5a7c2441a649866587d5d51e22820.2",
35
- "@livestore/sqlite-wasm": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2",
36
- "@livestore/devtools-node-common": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2",
37
- "@livestore/common": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2",
38
- "@livestore/utils": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2",
39
- "@livestore/webmesh": "0.0.0-snapshot-5a6440f111a5a7c2441a649866587d5d51e22820.2"
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
  },
@@ -1,12 +1,9 @@
1
- import type { ShutdownChannel } from '@livestore/common/leader-thread'
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
- WebChannel.noopChannel() as Effect.Effect<ShutdownChannel.ShutdownChannel>
9
- // makeBroadcastChannel({
10
- // channelName: `livestore.shutdown.${storeId}`,
11
- // schema: ShutdownChannel.All,
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
- }