@effectstream/node-sdk 0.104.0 → 0.200.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@effectstream/node-sdk",
3
- "version": "0.104.0",
3
+ "version": "0.200.1",
4
4
  "license": "(MIT OR Apache-2.0)",
5
5
  "homepage": "https://effectstream.github.io/docs/",
6
6
  "repository": {
@@ -83,18 +83,18 @@
83
83
  }
84
84
  },
85
85
  "dependencies": {
86
- "@effectstream/runtime": "0.104.0",
87
- "@effectstream/sm": "0.104.0",
88
- "@effectstream/sync": "0.104.0",
89
- "@effectstream/db": "0.104.0",
90
- "@effectstream/db-emulator": "0.104.0",
91
- "@effectstream/coroutine": "0.104.0",
92
- "@effectstream/event-server": "0.104.0",
93
- "@effectstream/config": "0.104.0",
94
- "@effectstream/chain-types": "0.104.0",
95
- "@effectstream/precompile": "0.104.0",
96
- "@effectstream/utils": "0.104.0",
97
- "@effectstream/concise": "0.104.0",
86
+ "@effectstream/runtime": "0.200.1",
87
+ "@effectstream/sm": "0.200.1",
88
+ "@effectstream/sync": "0.200.1",
89
+ "@effectstream/db": "0.200.1",
90
+ "@effectstream/db-emulator": "0.200.1",
91
+ "@effectstream/coroutine": "0.200.1",
92
+ "@effectstream/event-server": "0.200.1",
93
+ "@effectstream/config": "0.200.1",
94
+ "@effectstream/chain-types": "0.200.1",
95
+ "@effectstream/precompile": "0.200.1",
96
+ "@effectstream/utils": "0.200.1",
97
+ "@effectstream/concise": "0.200.1",
98
98
  "effection": "^3.5.0"
99
99
  },
100
100
  "description": "Main application node SDK for EffectStream"
@@ -56,16 +56,21 @@ test("single-file facade rejects malformed declarations early", async () => {
56
56
  })).toThrow(/64 hexadecimal/);
57
57
  });
58
58
 
59
- test("single-file template contains one source file and one exact import", async () => {
59
+ test("single-file template is one source file plus a manifest, importing only the SDK", async () => {
60
60
  const templateDir = new URL("../../../../templates/single-file/", import.meta.url);
61
61
  const files = [...new Bun.Glob("**/*").scanSync({
62
62
  cwd: templateDir.pathname,
63
63
  onlyFiles: true,
64
- })];
65
- expect(files).toEqual(["minimal.ts"]);
64
+ })].sort();
65
+ expect(files).toEqual(["minimal.ts", "package.json"]);
66
66
 
67
67
  const source = await Bun.file(new URL("minimal.ts", templateDir)).text();
68
68
  const imports = [...source.matchAll(/from\s+["']([^"']+)["']/g)].map((match) => match[1]);
69
- expect(imports).toEqual(["@effectstream/node-sdk@0.103.4"]);
69
+ expect(imports).toEqual(["@effectstream/node-sdk"]);
70
70
  expect(source).not.toMatch(/contract-counter|wallet|proofServer|generated|child_process/);
71
+
72
+ // The version is pinned in the manifest, never in the import specifier, so
73
+ // `update-packages.ts` can bump it without a release turning this test red.
74
+ const manifest = await Bun.file(new URL("package.json", templateDir)).json();
75
+ expect(manifest.dependencies["@effectstream/node-sdk"]).toMatch(/^\d+\.\d+\.\d+$/);
71
76
  });