Skip to content

Migrate from gun.js to pluresdb package (v1.3.0)#8

Merged
kayodebristol merged 5 commits intomainfrom
copilot/refactor-use-pluresdb
Dec 27, 2025
Merged

Migrate from gun.js to pluresdb package (v1.3.0)#8
kayodebristol merged 5 commits intomainfrom
copilot/refactor-use-pluresdb

Conversation

Copy link
Contributor

Copilot AI commented Dec 27, 2025

Updates project to use the pluresdb npm package (v1.3.0) instead of gun.js, as PluresDB is the maintained fork with Gun.js-compatible API.

Changes

Dependencies

  • examples/svelte-kit-demo/package.json: gun@0.2020.1239 → pluresdb@^1.3.0
  • examples/deno-svelte-demo/deno.json: gun@0.2020.1240 → pluresdb@^1.3.0

Code

  • gun-server.ts: Import GunDB from pluresdb instead of Gun from gun
  • Source files: Corrected package references from @plures/pluresdb to pluresdb

Documentation

  • README examples now use import { GunDB } from 'pluresdb'
  • Fixed package name references throughout (pluresdb, not @plures/pluresdb)
  • Added documentation about v1.3.0 features (Node.js N-API bindings, better-sqlite3 compatibility)
  • Updated CHANGELOG.md and PUBLISHING.md with v1.3.0 information

PluresDB v1.3.0 Features

This update includes the latest PluresDB v1.3.0 which provides:

  • Node.js N-API Bindings: Enhanced performance through Rust core bindings
  • better-sqlite3 Compatibility: New export for SQLite compatibility
  • Improved P2P API: Expanded API methods for decentralized features
  • Deno 2.x Support: Upgraded web components and compatibility

API Example

<script>
  import { PluresStore } from 'unum';
  import { GunDB } from 'pluresdb';

  const db = new GunDB();
  const nameStore = new PluresStore(db.get('profile').get('name'));
</script>

<input type="text" bind:value={$nameStore} />

PluresDB exports GunDB for compatibility. All Gun.js methods (get, put, on, map, etc.) work unchanged.

Original prompt

This section details on the original issue you should resolve

<issue_title>Refactor to use pluresDB</issue_title>
<issue_description>Refactor this project to include the examples and documentation to fully use the latest release version of pluresDB instead of gun.js.</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 3 commits December 27, 2025 22:22
Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor project to use pluresDB instead of gun.js Migrate from gun.js to pluresdb package Dec 27, 2025
Copilot AI requested a review from kayodebristol December 27, 2025 22:30
@kayodebristol
Copy link
Contributor

@copilot A new version pluresDB has been published to npm, jsr, & docker (v1.3.0). Update the project to use the latest version and make any adjustments or enhancements provided by new v1.3.0.

Co-authored-by: kayodebristol <3579196+kayodebristol@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Dec 27, 2025

@copilot A new version pluresDB has been published to npm, jsr, & docker (v1.3.0). Update the project to use the latest version and make any adjustments or enhancements provided by new v1.3.0.

Updated to PluresDB v1.3.0 in commit 478f370.

Changes include:

  • Upgraded dependencies to pluresdb@^1.3.0 in both examples
  • Added documentation about v1.3.0 features (Node.js N-API bindings, better-sqlite3 compatibility)
  • Updated CHANGELOG and PUBLISHING docs

All tests passing ✅

Copilot AI changed the title Migrate from gun.js to pluresdb package Migrate from gun.js to pluresdb package (v1.3.0) Dec 27, 2025
@kayodebristol kayodebristol marked this pull request as ready for review December 27, 2025 23:30
@kayodebristol kayodebristol merged commit cb9c9da into main Dec 27, 2025
2 checks passed
@kayodebristol kayodebristol deleted the copilot/refactor-use-pluresdb branch December 27, 2025 23:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor to use pluresDB

2 participants