Skip to content

docs: Add v5 to v6 migration guide#1833

Merged
jaredwray merged 9 commits intomainfrom
claude/keyv-v6-migration-guide-DUQCP
Feb 5, 2026
Merged

docs: Add v5 to v6 migration guide#1833
jaredwray merged 9 commits intomainfrom
claude/keyv-v6-migration-guide-DUQCP

Conversation

@jaredwray
Copy link
Owner

What kind of change does this PR introduce?
Documentation update

Description
This PR adds a comprehensive migration guide for upgrading from Keyv v5 to v6. The guide covers:

  • Breaking Changes (11 major changes):

    • Namespace overhaul with removal of useKeyPrefix and keyPrefix
    • Removal of opts property in favor of direct property access
    • Serialization adapter replacing stringify/parse options
    • Migration to Hookified library for events and hooks
    • Return type changes for deleteMany and setMany
    • Separation of raw data access into dedicated getRaw/getManyRaw methods
    • Iterator API simplification
    • Removal of ttlSupport from storage adapters
    • Normalization to return undefined instead of null
    • Compression adapter interface changes
  • New Features:

    • Command timeout at Keyv level
    • Default in-memory store using @keyv/bigmap
    • Browser compatibility
    • Serialization adapters with multiple options
    • Encryption adapters for data protection
    • New identification functions (isKeyv, getStoreCapabilities, isKeyvAdapter)
    • Generic storage adapter (KeyvGenericStore) for legacy adapters
  • Quick Migration Checklist for developers to track their upgrade progress

The guide includes code examples for both v5 and v6 patterns, making it easy for users to understand what changed and how to update their code.

Files Changed

  • .gitignore: Added exception for v5-to-v6.md documentation file
  • packages/website/site/docs/v5-to-v6.md: New comprehensive migration guide (677 lines)

Note
This is a documentation-only change. No code changes or tests are required as this is a guide for users migrating between versions.

https://claude.ai/code/session_01PAjhDXJvNCf8NzsqhyCeRp

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @jaredwray, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a comprehensive migration guide to assist users in upgrading from Keyv v5 to v6. The guide meticulously outlines the breaking changes, new features, and necessary adjustments to ensure a smooth transition. It covers significant architectural shifts, API changes, and the introduction of new capabilities, all aimed at improving the library's robustness and flexibility. The documentation provides clear instructions and code examples to help developers adapt their existing implementations to the new version.

Highlights

  • Namespace Overhaul: The useKeyPrefix and keyPrefix properties have been removed, with namespace handling now fully managed by the storage adapters themselves.
  • Removed opts Property: The opts property has been eliminated; all Keyv configuration properties are now directly accessible on the Keyv instance.
  • Serialization Adapter: The stringify and parse options are replaced by a new serialization property that accepts a dedicated serialization adapter.
  • Hookified Integration: Keyv now uses the standard Hookified library for events and hooks, introducing new hook function calls and naming conventions.
  • Updated Return Types: deleteMany now returns boolean[] (indicating success for each deletion), and setMany uses KeyvEntry[] for input while also returning boolean[].
  • Dedicated Raw Data Access: Raw data access has been removed from get and getMany; dedicated getRaw and getManyRaw methods are now used for this purpose.
  • Iterator Simplification: The iterator no longer requires an argument, and an isIterable() function has been added to check for iteration support.
  • TTL Support Handling: The ttlSupport property has been removed from storage adapters, with Keyv automatically detecting and handling TTL via KeyvGenericStore for non-native TTL stores.
  • Consistent undefined Returns: Keyv now consistently returns undefined instead of null for missing values, normalizing behavior across adapters.
  • New Features Introduced: New features include command timeout at the Keyv level, @keyv/bigmap as the default in-memory store, browser compatibility, new serialization and encryption adapters, and identification functions (isKeyv, getStoreCapabilities, isKeyvAdapter).
Changelog
  • .gitignore
    • Added an exception for the new v5-to-v6.md documentation file to ensure it's not ignored.
  • packages/website/site/docs/v5-to-v6.md
    • Added a new, comprehensive migration guide for upgrading from Keyv v5 to v6.
    • The guide details 11 major breaking changes with before/after code examples.
    • It introduces several new features, including command timeout, @keyv/bigmap default in-memory store, browser compatibility, new serialization/encryption adapters, and identification functions.
    • Includes a 'Quick Migration Checklist' to help users track their upgrade progress.
Activity
  • The pull request author, jaredwray, created a new documentation file (v5-to-v6.md) to guide users through the migration process from Keyv v5 to v6.
  • A .gitignore entry was updated to include the new documentation file.
  • The changes are documentation-only, with no functional code changes or tests required.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a comprehensive migration guide for upgrading from Keyv v5 to v6. The documentation is well-structured and covers breaking changes and new features in detail. My review focuses on improving the clarity and accuracy of the code examples and interface definitions within the new guide. I've suggested a few minor corrections to ensure the documentation perfectly aligns with the intended interfaces and to make the examples easier to understand.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2065b33839

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0e971c3) to head (201eb27).

Additional details and impacted files
@@            Coverage Diff            @@
##              main     #1833   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           32        32           
  Lines         2434      2434           
  Branches       446       446           
=========================================
  Hits          2434      2434           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jaredwray jaredwray merged commit e41ad98 into main Feb 5, 2026
1 check passed
@jaredwray jaredwray deleted the claude/keyv-v6-migration-guide-DUQCP branch February 5, 2026 04:47
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