Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(js): Adds Registry#apiStability for fine-grained control of bet… #1749

Merged
merged 2 commits into from
Feb 3, 2025

Conversation

mbleigh
Copy link
Collaborator

@mbleigh mbleigh commented Feb 1, 2025

I chose to make Registry#apiStability instead of a registry value so that it can be checked synchronously and easily.

The way this works is you can do:

import { assertUnstable } from "@genkit-ai/core";

// inside a feature that is unstable
assertUnstable('beta', 'Option "blah" is a beta feature.');

The error message will automatically be augmented with additional explanation.

Checklist (if applicable):

@mbleigh mbleigh requested a review from pavelgj February 1, 2025 02:09
@mbleigh mbleigh merged commit da81888 into main Feb 3, 2025
5 checks passed
@mbleigh mbleigh deleted the mb/stability-channels branch February 3, 2025 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants