@powersync/node 0.0.0-dev-20250925184532 → 0.0.0-dev-20251003085035

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.
Binary file
Binary file
@@ -0,0 +1,2 @@
1
+ export declare const isBundledToCommonJs: boolean;
2
+ export declare function dynamicImport(path: string): Promise<any>;
@@ -0,0 +1,5 @@
1
+ // Note: When updating this file, always update module_commonjs.ts as well.
2
+ export const isBundledToCommonJs = false;
3
+ export async function dynamicImport(path) {
4
+ return await import(path);
5
+ }
@@ -0,0 +1,2 @@
1
+ export declare const isBundledToCommonJs: boolean;
2
+ export declare function dynamicImport(path: string): Promise<any>;
@@ -0,0 +1,6 @@
1
+ // NOTE! Do not import this file directly! We have a rollup plugin that rewrites imports to modules.js to this file when
2
+ // bundling to CommonJS.
3
+ export const isBundledToCommonJs = true;
4
+ export async function dynamicImport(path) {
5
+ return require(path);
6
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powersync/node",
3
- "version": "0.0.0-dev-20250925184532",
3
+ "version": "0.0.0-dev-20251003085035",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -47,18 +47,25 @@
47
47
  },
48
48
  "homepage": "https://docs.powersync.com/",
49
49
  "peerDependencies": {
50
- "@powersync/common": "0.0.0-dev-20250925184532"
50
+ "@powersync/common": "0.0.0-dev-20251003085035",
51
+ "better-sqlite3": "12.x"
52
+ },
53
+ "peerDependenciesMeta": {
54
+ "better-sqlite3": {
55
+ "optional": true
56
+ }
51
57
  },
52
58
  "dependencies": {
53
- "@powersync/better-sqlite3": "^0.2.0",
54
59
  "async-lock": "^1.4.0",
55
60
  "bson": "^6.6.0",
56
61
  "comlink": "^4.4.2",
57
62
  "undici": "^7.11.0",
58
- "@powersync/common": "0.0.0-dev-20250925184532"
63
+ "@powersync/common": "0.0.0-dev-20251003085035"
59
64
  },
60
65
  "devDependencies": {
61
66
  "@types/async-lock": "^1.4.0",
67
+ "@types/node": "^24.2.0",
68
+ "better-sqlite3": "^12.2.0",
62
69
  "drizzle-orm": "^0.35.2",
63
70
  "rollup": "4.14.3",
64
71
  "typescript": "^5.5.3",
@@ -73,12 +80,12 @@
73
80
  "live data"
74
81
  ],
75
82
  "scripts": {
76
- "install": "node download_core.js",
77
- "build": "tsc -b && rollup --config",
78
- "build:prod": "tsc -b --sourceMap false && rollup --config",
83
+ "prepare:core": "node download_core.js",
84
+ "build": " pnpm prepare:core && tsc -b && rollup --config",
85
+ "build:prod": "pnpm prepare:core && tsc -b --sourceMap false && rollup --config",
79
86
  "clean": "rm -rf lib dist tsconfig.tsbuildinfo",
80
87
  "watch": "tsc -b -w",
81
- "test": "vitest",
88
+ "test": " pnpm prepare:core && vitest",
82
89
  "test:exports": "attw --pack . --ignore-rules no-resolution"
83
90
  }
84
91
  }