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

adding types to the included meta #34

Merged
merged 5 commits into from
Feb 25, 2024
Merged

Conversation

roodboi
Copy link
Contributor

@roodboi roodboi commented Feb 23, 2024

we include _activePath, _completedPaths and _isValid on the stream obj - im now nesting it to avoid polluting the final obj to much and adding a type so it can used without error and clear what it is when using it.

also added a little utility for checking paths - I think adding optional callbacks might be useful too - like:

onPathComplete etc..

I also am still trying to think through best way to include something specific for array items - maybe too much for here

Copy link

changeset-bot bot commented Feb 23, 2024

🦋 Changeset detected

Latest commit: 1f6b631

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
zod-stream Major
island-next-demos Patch
evalz Major
stream-hooks Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link

vercel bot commented Feb 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
island-ai-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 25, 2024 5:59pm

…alidity into a single _meta object on the response and adding explicit types so that consumers can reference it safely - the format has chnaged slightly from indicvidual keys on the resposne to all being wrapped up - additionalyl theres a new utility for checking completed paths
@roodboi roodboi merged commit 9f345fd into main Feb 25, 2024
3 checks passed
@roodboi roodboi deleted the type-and-handle-path-meta branch February 25, 2024 18:00
@github-actions github-actions bot mentioned this pull request Feb 25, 2024
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.

1 participant