Skip to content

Conversation

@scottrippey
Copy link
Contributor

@scottrippey scottrippey commented Apr 15, 2025

Adds support for selectors like "^._id" or "@".

See tests for examples.

Copilot Details:

This pull request introduces several new features and improvements to the groqd library, including support for new syntax in filters and projections, updates to the legacy workflow documentation, and various code enhancements. Below is a summary of the most important changes:

New Features and Syntax Support:

  • Added support for != null syntax in filters and comparisons between nullish values.
  • Introduced ^ parent selector and @ self-selector in projections, allowing more flexible data querying.

Legacy Workflow Documentation:

  • Updated the groqd v0.x workflow documentation to guide the release process for legacy versions.

@changeset-bot
Copy link

changeset-bot bot commented Apr 15, 2025

🦋 Changeset detected

Latest commit: 2c4726f

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

This PR includes changesets to release 2 packages
Name Type
groqd Patch
website Patch

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

@vercel
Copy link

vercel bot commented Apr 15, 2025

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

Name Status Preview Comments Updated (UTC)
groqd ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 15, 2025 8:57pm

@scottrippey scottrippey marked this pull request as ready for review April 15, 2025 20:57
@scottrippey scottrippey requested a review from Copilot April 15, 2025 20:57
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.

Copilot reviewed 25 out of 26 changed files in this pull request and generated no comments.

Files not reviewed (1)
  • packages/groqd/.eslintrc: Language not supported
Comments suppressed due to low confidence (1)

packages/groqd/src/types/groq-expressions.ts:103

  • [nitpick] The type parameter is named '_TQueryConfig' whereas other parts of the module use 'TQueryConfig'. Consider renaming it for consistency.
export type Inequality< TResultItem, _TQueryConfig extends QueryConfig > = `${ProjectionPathsByType<TResultItem, null>} != null`;

@scottrippey scottrippey reopened this Apr 15, 2025
@scottrippey
Copy link
Contributor Author

(had to close + open to trigger CI)

@scottrippey scottrippey merged commit 9018997 into main Apr 15, 2025
4 checks passed
@scottrippey scottrippey deleted the self branch April 15, 2025 21:02
@github-actions github-actions bot mentioned this pull request Apr 15, 2025
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.

3 participants