Skip to content

Commit a2429f6

Browse files
committed
chore: Bump to v0.4.8 with debug logging for concurrent mode
- Add console.log to show when concurrent mode functions load - Will help debug npm package vs local build differences
1 parent c3b17df commit a2429f6

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sochdb/sochdb",
3-
"version": "0.4.7",
3+
"version": "0.4.8",
44
"description": "SochDB Node.js SDK - AI-native embedded database with concurrent multi-process support",
55
"main": "dist/cjs/index.js",
66
"module": "dist/esm/index.js",

src/embedded/ffi/bindings.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ export class NativeBindings {
116116
this.sochdb_open_concurrent = this.lib.func('sochdb_open_concurrent', DatabaseHandle, ['string']);
117117
this.sochdb_is_concurrent = this.lib.func('sochdb_is_concurrent', 'int', [DatabaseHandle]);
118118
this._concurrentModeAvailable = true;
119-
} catch (error) {
119+
console.log('[SochDB FFI] Concurrent mode functions loaded successfully');
120+
} catch (error: any) {
120121
// Older library versions don't have concurrent mode
122+
console.log('[SochDB FFI] Concurrent mode functions not available:', error?.message || error);
121123
this.sochdb_open_concurrent = null;
122124
this.sochdb_is_concurrent = null;
123125
this._concurrentModeAvailable = false;

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* SochDB Node.js SDK v0.4.7
2+
* SochDB Node.js SDK v0.4.8
33
*
44
* Dual-mode architecture: Embedded (FFI) + Server (gRPC/IPC)
55
*
@@ -51,7 +51,7 @@
5151
*/
5252

5353
// Version
54-
export const VERSION = '0.4.7';
54+
export const VERSION = '0.4.8';
5555

5656
// Embedded mode (FFI) - NEW
5757
export { EmbeddedDatabase, EmbeddedDatabaseConfig } from './embedded';

test/namespace-queue.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@ describe('Queue API (v0.4.1)', () => {
6464
});
6565

6666
describe('SDK Version', () => {
67-
test('should be version 0.4.7', async () => {
67+
test('should be version 0.4.8', async () => {
6868
const { VERSION } = await import('../src/index');
69-
expect(VERSION).toBe('0.4.7');
69+
expect(VERSION).toBe('0.4.8');
7070
});
7171
});

0 commit comments

Comments
 (0)