Skip to content

0.1.0#3

Merged
prisca-c merged 22 commits intomainfrom
develop
Nov 7, 2025
Merged

0.1.0#3
prisca-c merged 22 commits intomainfrom
develop

Conversation

@prisca-c
Copy link
Owner

@prisca-c prisca-c commented Nov 7, 2025

No description provided.

* ci: add file to handle github workflows

* feat(cache): rework expiry system and update get / all method according to changes

* feat(cache): create interface for KeyPairValue and fix issue with undefined values

* fix(test): fix issue with test after adding KeyPairValue interface

* revert(cache): go back to old set method

* update package.json
@prisca-c prisca-c marked this pull request as ready for review November 7, 2025 23:39
@prisca-c prisca-c requested a review from Copilot November 7, 2025 23:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the package dependencies, improves type safety with generics throughout the codebase, adds new functionality (merge mode for updates, data validation methods), and migrates from pnpm to npm with Node.js 24 requirement. The changes include:

  • Adding TypeScript generics for type-safe data handling across File, Cache, and interfaces
  • Introducing a new DataBuddy class that wraps File and Cache operations
  • Adding merge mode to the update() method for partial updates
  • Adding isValidJson() and isValidData() validation methods
  • Updating the delete() method to return false instead of throwing when file doesn't exist
  • Major dependency updates and Node.js version bump to 24

Reviewed Changes

Copilot reviewed 15 out of 17 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
package.json Bumps Node.js engine to >=24.0.0, updates all dependencies, switches from pnpm to npm
src/file.ts Adds generics, merge mode for updates, validation methods, changes delete error handling
src/cache.ts Adds generics for type-safe cache operations
src/data_buddy.ts New class providing unified interface for file and cache operations
src/types/*.ts Adds generic type parameters to all interfaces
tests/data_buddy.spec.ts Adds comprehensive tests for new features
.github/workflows/*.yml Refactors CI workflows and adds npm publishing workflow
readme.md Updates documentation with new features and examples

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@prisca-c prisca-c merged commit 0176b83 into main Nov 7, 2025
6 checks passed
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.

2 participants