good.db

good.db is a lightweight Node.js library for simple local database operations with JSON files. Organize, manage, and manipulate data easily.

OTHER License

Downloads
886
Stars
4

Bot releases are visible (Hide)

good.db - 2.4.4 ✨ Latest Release

Published by itsusif 4 months ago

Release v2.4.4

What's New

  • Enhanced error handling across various methods, providing more informative error messages.
  • Introduced a new AllTypes type to improve type safety.
  • Made the cache property in the MemoryDriver class public for easier access.
  • The client property in the MongoDBDriver class is now public.
  • Improved handling of the database connection state in the MongoDB driver.
  • Optimized the pull method for better performance with nested objects.
  • Refined the all method to handle different return types more accurately.
  • Various internal optimizations and code refactoring for improved maintainability.

How to Upgrade

We encourage everyone to update to this new version. If you encounter any issues, please report them in the issue tracker. Thank you for your continued support!

Full Changelog: https://github.com/good-db/good.db/compare/2.4.3...2.4.4

good.db - 2.4.3 ✨

Published by itsusif 5 months ago

Release v2.4.3

What's New

  • Fixed the find function type from boolean to any. This change provides more flexibility and prevents type errors in certain scenarios.

How to Upgrade

We encourage everyone to update to this new version. If you encounter any issues, please report them in the issue tracker. Thank you for your continued support!

good.db - 2.4.0 ✨

Published by itsusif 5 months ago


good.db v2.4.0 Release

New Features

  • Convert between Drivers: Introducing a new convertor functionality that enables seamless conversion between different database drivers.
    • Specify source and target drivers along with the table/collection name for conversion.
    • Example provided in the documentation.

Improvements

  • Enhanced Stability and DRYness: Significantly improved stability and dryness (Don't Repeat Yourself) across the package.
  • Bug Fixes: Various issues and bugs across all methods have been resolved, making the package more reliable.
  • Updated Methods: The table method has been updated for better performance and functionality.
  • New Interfaces: Added IAsyncType and ISyncType interfaces to enhance flexibility.

Changes

  • Return Format Update: Modified the return format of the all('array') method for better clarity and consistency. Now returns // [ key: ..., value: ... ].

Upgrade now to enjoy these fantastic new features and improvements!

For full details, check out the changelog.

Thank you for your continued support and feedback!


good.db - 2.3.0 ✨

Published by itsusif 6 months ago

Version 2.3.0 Release Notes

LRUCaching System

  • Introducing a new caching system to enhance performance. The package now utilizes LRUCache, significantly improving speed by efficiently managing data retrieval.

Bug Fixes

  • Resolved an issue in the MongoDB driver where values were incorrectly parsed as strings instead of objects. The system now accurately identifies object types, ensuring data integrity.
  • Addressed nested problem and revamped the nested retrieval process. Previously, all data was fetched before nesting, causing inefficiencies. Now, nested structures are created directly from the initial key, optimizing performance.

Performance Enhancements

  • Implemented substantial optimizations to elevate package performance. These enhancements bolster speed and responsiveness, providing users with a smoother experience.

Stability Improvements

  • Various enhancements have been made to increase the stability of the package, reducing the likelihood of unexpected errors or crashes.
  • Stability tests have been conducted to ensure the reliability of the package under various conditions.

Important Announcement

  • CacheDriver Transition: Please note that starting from version 2.5.0, CacheDriver will be deprecated in favor of MemoryDriver. Users are encouraged to migrate their configurations accordingly to ensure seamless compatibility.
good.db - 2.1.0 ✨

Published by itsusif 7 months ago

Version 2.1.0 Release Notes

New Methods Added

  • includes(key, options): Retrieve all values that include a specified key.
  • unshift(value): Insert a new value at the beginning of the database.
  • shift(): Remove and return the first value from the database.
  • pop(): Remove and return the last value from the database.
  • multiply(value): Multiply all numeric values in the database by a specified value.
  • connect(): Connect to the database.
  • disconnect(): Disconnect from the database.
  • table(name): Create a new table in the database.
  • double(value): Double all numeric values in the database.
  • And more...

Drivers System Rebuilt

  • The drivers system has been rebuilt to enhance performance, stability, and maintainability. This update ensures better compatibility with future enhancements and improvements.

Bug Fixes

  • Several issues and edge cases have been addressed, resulting in a more robust and reliable package.
  • Improved error handling and error messages for better debugging and troubleshooting.

Performance Enhancements

  • Significant optimizations have been made to improve the overall performance of the package, making it faster and more responsive.

Stability Improvements

  • Various enhancements have been made to increase the stability of the package, reducing the likelihood of unexpected errors or crashes.
  • Stability tests have been conducted to ensure the reliability of the package under various conditions.

This release represents a significant step forward in the development of GoodDB, providing new features, improved performance, and enhanced stability. We encourage all users to upgrade to version 2.1.0 to take advantage of these improvements.

good.db - 2.0.0 ✨

Published by itsusif 7 months ago

🚀 New Release: v2.0.0

We're thrilled to announce the release of version 2.0.0 of our GoodDB library! This major update brings several enhancements and new features to further improve your database experience.

Key Features:

  • Enhanced Performance: Version 2.0.0 includes optimizations and improvements to enhance database read and write performance, ensuring faster and more efficient operations.
  • Additional Storage Drivers: We've added support for new storage drivers, including MongoDB, SQLite, YAML, and more, giving you even greater flexibility in choosing the right backend for your application.
  • Improved Error Handling: We've expanded error handling capabilities to provide more informative and actionable error messages, making it easier to troubleshoot and resolve issues.
  • Extended API: This release introduces new methods and functionalities to the API, providing more powerful and versatile database operations to meet your application's needs.
  • Better Documentation: We've updated and expanded the documentation to provide comprehensive guidance on using GoodDB, including detailed examples and usage instructions.

How to Use:

import GoodDB, { MongoDBDriver } from 'good-db';

// Initialize GoodDB with MongoDB driver
const db = new GoodDB(new MongoDBDriver({
    uri: 'mongodb://localhost:27017',
    database: 'mydatabase'
}));

// Set data
await db.set('key', 'value');

// Get data
const data = await db.get('key');
console.log(data); // Output: 'value'

Upgrade Notes:

  • If you're upgrading from a previous version, please review the updated documentation and ensure compatibility with any changes or improvements introduced in this release.

Feedback and Contributions:

We value your feedback and contributions! If you encounter any issues, have suggestions for improvements, or would like to contribute to the project, please don't hesitate to open an issue or submit a pull request on GitHub.

Thank You!

A big thank you to all our contributors and users who have supported us in bringing this release to fruition. Your feedback and support are essential, and we're committed to continuing to improve and evolve GoodDB in future releases.

Happy coding!

good.db - 1.7.0 ✨

Published by itsusif about 1 year ago

[1.7.0] - 2023-09-22

Added

  • No significant changes in this release.

Changed

  • Fixed an issue in SQLite, JSON, YAML driver where the nestedEnabled parameter was not functioning correctly in 'set', 'get' methods.

Fixed

  • No other significant issues addressed in this release.
good.db - 1.6.15 ✨

Published by itsusif about 1 year ago

[1.6.15] - 2023-09-21

Added

  • No significant changes in this release.

Changed

  • Fixed an issue in SQLite driver where the nestedEnabled parameter was not functioning correctly in 'delete', 'delete' and 'pull' methods.

Fixed

  • No other significant issues addressed in this release.
good.db - 1.6.9 ✨

Published by itsusif about 1 year ago

[1.6.9] - 2023-09-21

Added

  • No significant changes in this release.

Changed

  • Fixed an issue in SQLite driver where the nestedEnabled parameter was not functioning correctly in 'get' and 'set' methods.

Fixed

  • No other significant issues addressed in this release.
good.db - 1.6.7 ✨

Published by itsusif about 1 year ago

[1.6.7] - 2023-09-06

Added

  • No significant changes in this release.

Changed

  • No significant changes in this release.

Fixed

  • Resolved issues in JSON ("all method") and SQLite ("all method").
  • Addressed 'has' problem in YAML.
  • This release is the stable version.
good.db - 1.6.5 ✨

Published by itsusif about 1 year ago

[1.6.5] - 2023-09-06

Added

  • No significant changes in this release.

Changed

  • No notable changes in this release.

Fixed

  • Fixed a critical bug in SQLite related to data deletion. Now, when you delete data, it correctly returns an empty object when the data is deleted, ensuring consistency with expectations.

Note: This marks the final release of version 1.6. Version 2 is coming soon!

good.db - 1.6.4 ✨

Published by itsusif about 1 year ago

[1.6.4] - 2023-09-05

Added

  • Added the ability to retrieve all data in the database using the db.all() method. You can now fetch an array of key-value pairs or an array of all keys based on the specified type.

Changed

  • No significant changes in this release.

Fixed

  • Fixed a critical bug in SQLite related to data deletion. Now, when you delete data, it correctly returns an empty object when the data is deleted, ensuring consistency with expectations.
good.db - 1.6.2

Published by itsusif about 1 year ago

Fixed

  • Fixed a bug in the pull method that caused issues when used without nested properties.
  • Addressed several other bug fixes and improvements to enhance package stability and performance.

We appreciate your continued support and contributions to this project!

good.db - 1.6.0

Published by itsusif about 1 year ago

[1.6.0] - 2023-08-26

Added

  • Added support for YAML format storage.
  • Added SQLite database storage option.
  • Introduced db.table method to create instances with different tables.
  • Added snapshot creation and rollback functionality.

Changed

  • Refactored the way data is stored and retrieved for improved performance.
  • Improved error handling and error messages.

Fixed

  • Fixed a bug that caused incorrect handling of nested keys.
  • Fixed issue with incorrect value retrieval from the database.
good.db - 1.5.0

Published by itsusif about 1 year ago

Add table system & Creating and Using Snapshots.

Package Rankings
Top 26.79% on Npmjs.org
Related Projects