@evolu/nodejs 3.0.1 → 3.1.0

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": "@evolu/nodejs",
3
- "version": "3.0.1",
3
+ "version": "3.1.0",
4
4
  "description": "Evolu for Node.js",
5
5
  "author": "Daniel Steigerwald <daniel@steigerwald.cz>",
6
6
  "license": "MIT",
@@ -24,12 +24,20 @@
24
24
  "types": "./dist/src/TestBundle.d.ts",
25
25
  "import": "./dist/src/TestBundle.js",
26
26
  "default": "./dist/src/TestBundle.js"
27
+ },
28
+ "./TestJSDoc": {
29
+ "types": "./dist/src/TestJSDoc.d.ts",
30
+ "import": "./dist/src/TestJSDoc.js",
31
+ "default": "./dist/src/TestJSDoc.js"
27
32
  }
28
33
  },
29
34
  "typesVersions": {
30
35
  "*": {
31
36
  "TestBundle": [
32
37
  "./dist/src/TestBundle.d.ts"
38
+ ],
39
+ "TestJSDoc": [
40
+ "./dist/src/TestJSDoc.d.ts"
33
41
  ]
34
42
  }
35
43
  },
@@ -40,24 +48,47 @@
40
48
  ],
41
49
  "dependencies": {
42
50
  "better-sqlite3": "^12.11.1",
43
- "ws": "^8.19.0"
51
+ "ws": "^8.21.3"
44
52
  },
45
53
  "devDependencies": {
54
+ "@evolu/common": "8.6.0",
55
+ "@evolu/oxlint-config": "0.1.0",
56
+ "@evolu/typescript-config": "0.1.0",
46
57
  "@types/better-sqlite3": "^9.6.0",
47
58
  "@types/node": "^24.10.9",
48
59
  "@types/ws": "^8.18.1",
49
60
  "@typescript/native": "npm:typescript@^7.0.2",
50
- "vite": "^8.2.0",
51
- "webpack": "^5.109.2",
52
- "@evolu/common": "8.1.0",
53
- "@evolu/typescript-config": "0.0.2"
61
+ "oxlint": "^1.79.0",
62
+ "oxlint-tsgolint": "7.0.2001",
63
+ "vite": "^8.2.2",
64
+ "webpack": "^5.109.2"
54
65
  },
55
66
  "peerDependencies": {
56
67
  "@evolu/common": "^8.0.0",
68
+ "@evolu/oxlint-config": "^0.1.0",
69
+ "@evolu/typescript-config": "^0.1.0",
70
+ "oxlint": "^1.79.0",
71
+ "oxlint-tsgolint": "7.0.2001",
72
+ "typescript": ">=7.0.0",
57
73
  "vite": ">=8.0.0",
58
74
  "webpack": ">=5.108.4"
59
75
  },
60
76
  "peerDependenciesMeta": {
77
+ "@evolu/oxlint-config": {
78
+ "optional": true
79
+ },
80
+ "@evolu/typescript-config": {
81
+ "optional": true
82
+ },
83
+ "oxlint": {
84
+ "optional": true
85
+ },
86
+ "oxlint-tsgolint": {
87
+ "optional": true
88
+ },
89
+ "typescript": {
90
+ "optional": true
91
+ },
61
92
  "vite": {
62
93
  "optional": true
63
94
  },
package/src/TestBundle.ts CHANGED
@@ -408,11 +408,11 @@ const testViteBundler: TestBundler = {
408
408
  const output = await vite.build({
409
409
  root: dirname(entryPath),
410
410
  configFile: false,
411
- envFile: false,
411
+ envDir: false,
412
412
  logLevel: "silent",
413
413
  resolve: {
414
414
  alias: Object.entries(aliases).map(([name, replacement]) => ({
415
- find: new RegExp(`^${escapeRegExp(name)}$`),
415
+ find: new RegExp(`^${escapeRegExp(name)}$`, "u"),
416
416
  replacement,
417
417
  })),
418
418
  },
@@ -439,14 +439,15 @@ const testViteBundler: TestBundler = {
439
439
  assert(Array.isArray(output), "Vite did not return build outputs.");
440
440
  const outputs: ReadonlyArray<ViteOutput> = output;
441
441
  assert(outputs.length === 1, "Vite did not return one build output.");
442
- const viteOutput = outputs[0];
442
+ const viteOutput = outputs.at(0);
443
443
  assert(viteOutput, "Vite did not return a build output.");
444
444
  assert(
445
445
  viteOutput.output.length === 1,
446
446
  "Vite did not emit one JavaScript chunk.",
447
447
  );
448
- const chunk = viteOutput.output[0];
448
+ const chunk = viteOutput.output.at(0);
449
449
  assert(chunk, "Vite did not emit a JavaScript chunk.");
450
+ assert(chunk.type === "chunk", "Vite did not emit a JavaScript chunk.");
450
451
  assertType(StringType, chunk.code);
451
452
 
452
453
  return {