Skip to content

Commit 11c772f

Browse files
Johnny Dunnclaude
authored andcommitted
chore: release v0.5.1 - Electron adapter + cross-platform sync
- Electron adapter with IPC bridge architecture - Cross-platform real-time sync with vector clocks - WebSocket and HTTP transports - Conflict resolution strategies - Device registry and presence 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c8e63c9 commit 11c772f

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [0.5.0] - 2025-12-26
1+
## [0.5.1] - 2025-12-26
22

33
### Added
44
- **Electron Adapter** - Full-featured Electron support with IPC bridge architecture
@@ -32,6 +32,11 @@
3232
- Transport layer abstracts WebSocket/HTTP with unified event system
3333
- Field mergers support custom merge logic for complex data types
3434

35+
## [0.5.0] - 2025-12-14
36+
37+
### Fixed
38+
- **IndexedDB options**: Exposed `indexedDb` options in `DatabaseOptions` for browser WASM configuration
39+
3540
## [0.4.2] - 2025-12-11
3641

3742
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
2020
The SQL Storage Adapter provides a single, ergonomic interface over SQLite (native and WASM), PostgreSQL, Capacitor, IndexedDB, and in-memory stores. It handles adapter discovery, capability detection, and advanced features like cloud backups so you can focus on your application logic.
2121

22-
**🆕 NEW in v0.5.0:** Electron adapter with IPC bridge + Cross-platform real-time sync!
22+
**🆕 NEW in v0.5.1:** Electron adapter with IPC bridge + Cross-platform real-time sync!
2323

2424
---
2525

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@framers/sql-storage-adapter",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Robust cross-platform SQL storage abstraction with automatic fallbacks and runtime detection",
55
"type": "module",
66
"main": "dist/index.js",
@@ -89,6 +89,7 @@
8989
"sideEffects": false,
9090
"devDependencies": {
9191
"@aws-sdk/client-s3": "^3.709.0",
92+
"electron": "^33.0.0",
9293
"@semantic-release/changelog": "^6.0.3",
9394
"@semantic-release/commit-analyzer": "^13.0.0",
9495
"@semantic-release/git": "^10.0.1",

src/adapters/electron/electronRendererAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ export function createElectronRendererAdapter(
434434
export function isElectronRenderer(): boolean {
435435
return typeof window !== 'undefined' &&
436436
typeof window.process === 'object' &&
437-
(window.process as NodeJS.Process)?.type === 'renderer';
437+
(window.process as NodeJS.Process & { type?: string })?.type === 'renderer';
438438
}
439439

440440
/**

src/core/resolver.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const isCapacitorRuntime = (): boolean => {
8686
const isElectronMain = (): boolean => {
8787
return typeof process !== 'undefined' &&
8888
Boolean(process.versions?.electron) &&
89-
process.type === 'browser';
89+
(process as NodeJS.Process & { type?: string }).type === 'browser';
9090
};
9191

9292
/**
@@ -96,7 +96,7 @@ const isElectronRenderer = (): boolean => {
9696
return typeof window !== 'undefined' &&
9797
typeof process !== 'undefined' &&
9898
Boolean(process.versions?.electron) &&
99-
process.type === 'renderer';
99+
(process as NodeJS.Process & { type?: string }).type === 'renderer';
100100
};
101101

102102
interface Candidate {

0 commit comments

Comments
 (0)