Skip to content

chore(deps): update dependency groqd to v1 (main) #2079

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 6, 2025

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
groqd (source) ^0.15.12 -> ^1.0.0 age adoption passing confidence

Release Notes

FormidableLabs/groqd (groqd)

v1.6.0

Compare Source

Minor Changes
  • Feature: (#​381)
    • Added support for "not equal" expressions (!=).
    • This applies to the .filterBy and .conditional methods

v1.5.0

Compare Source

Minor Changes
  • Feature: support "query syntax" in conditionals (#​378)
    Feature: support .value(...) and .star at the subquery level

v1.4.0

Compare Source

Minor Changes
  • Feature: in filters, support != null syntax, and added support for comparisons between nullish values (#​376)

    Feature: in projections, support ^ parent selector, and @ self selector. For example:

    q.star.filterByType("product").project((sub) => ({
      _type: "_type",
      styles: sub
        .field("styles[]")
        .deref()
        .project((style) => ({
          // Shorthand syntax:
          styleName: "name",
          productName: "^.name", // 👈 here we're selecting the parent name
          styleObject: "@​", // 👈 self-selector refers to the entire current object
    
          // 👇 These selectors are also available via `q.field()` syntax:
          productName: q.field("^.name"),
          styleObject: q.field("@​"),
        })),
    }));

v1.3.1

Compare Source

Patch Changes
  • Fix: ensure we can get fields from block and reference objects (#​373)

v1.3.0

Compare Source

Minor Changes
  • Feature: added .asCombined() utility, which allows projections from multiple types at once (#​366)
Patch Changes
  • Feature: added "passthrough" parameter for raw (#​362)

  • Improvement: updated all examples to prefer using zod directly, like z.string() (#​366)
    Improvement: export zod as z

  • Improvement: improved fragment types seen in IDEs (#​365)

    Chore: ensure we explicitly export types, rather than export *, to limit "noise"

v1.2.0

Compare Source

Minor Changes
  • Feature: added count method (#​354)

    Feature: added coalesce method

Patch Changes
  • Fix: always require [] when projecting arrays. (#​358)

    • Prevents issues with chaining .deref() and .field()
    • Makes code clearer
    • Reduces noise in auto-complete suggestions

v1.1.0

Compare Source

Minor Changes
  • Feature: Simplified APIs (#​351)

    We removed irrelevant methods from the root q object, and from query chains.
    This improves auto-complete and API discoverability, and reduces confusion.

    • The root q object no longer exposes irrelevant chaining methods.
      • E.g. we removed: q.filter(...), q.deref(), q.field(...), etc.
    • Query chains no longer expose irrelevant top-level utilities.
      • E.g. we removed (chain).star, (chain).conditional(...), (chain).select(...), (chain).value(...), etc.
    • The subquery in a projection no longer exposes irrelevant chaining methods.
      • E.g. with .project(sub => ({ ... })) we removed: sub.filter(...), sub.order(...), etc.

    Backwards compatibility: we only removed methods that created invalid GROQ queries,
    so this change should be backwards compatible.

v1.0.9

Compare Source

Patch Changes
  • Improves several pipe-able methods, like .order, .score, and .filter (#​347)

    • These methods can now come after a projection with validation (eg. .project(...).score(...).order(...).filter(...)
    • The .order now supports deep selectors. E.g. .order("slug.current asc")

v1.0.8

Compare Source

Patch Changes
  • Improved Projection Paths (#​344)
    • This is used by .filterBy(...), .field(...), and .project(...)
    • Projection paths now supports deeper selectors, like "images[].hotspot.x"
    • Projection paths now supports optional fields, like "image.asset"
    • Projection paths has proper return types for these types, eg. "images[].hotspot.x": null | Array<null | number>

v1.0.7

Compare Source

Patch Changes
  • Added: score and scoreRaw functions (#​340)
    Added: filterRaw function
    Deprecated: filter function; renamed to filterRaw to indicate that it's not type-checked

v1.0.6

Compare Source

Patch Changes
  • Improves types for deref for certain queries (#​335)

v1.0.5

Compare Source

Patch Changes
  • Fixed: .slice(number) returns a nullable result (#​331)
    Added: .notNull() utility
    Updated: .nullable() utility to not be chainable
    Updated: require a redundant: true parameter for nullable and notNull
    Added: InvalidQueryError is thrown for all invalid queries detected

    Fixes #​268

v1.0.4

Compare Source

Patch Changes
  • Fix: ensure filter can be chained after a deref (#​329)
    Fixes #​323

v1.0.3

Compare Source

Patch Changes
  • Chore: improved error messages for project to make them more helpful (#​326)

v1.0.2

Compare Source

Patch Changes
  • Fixed: improve support for ellipsis operator (...) when using overrides (#​324)
    Fixes #​317

v1.0.1

Compare Source

Patch Changes
  • Added: export createGroqBuilder as shortcut for createGroqBuilderWithZod (#​314)
    Docs: updated sample code

v1.0.0

Compare Source

Major Changes
  • It's official! GroqD 1.0 is here! (#​310)

    This brand-new version of GroqD adds schema-awareness, which brings massive improvements to the developer experience!

    This includes:

    • Auto-completion - write queries quickly and confidently
    • Runtime validation - ensure data integrity, catch errors early
    • Transformation - map values at runtime, like parsing dates
    • Fragments - create reusable query fragments, and compose queries from other fragments

    This release does include breaking API changes. Please see the migration docs for more information.


Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

@renovate renovate bot requested a review from a team as a code owner January 6, 2025 11:46
@renovate renovate bot added the 🤖 bot label Jan 6, 2025
Copy link

vercel bot commented Jan 6, 2025

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

Name Status Preview Comments Updated (UTC)
next-sanity ❌ Failed (Inspect) Apr 30, 2025 9:00pm
next-sanity-static ❌ Failed (Inspect) Apr 30, 2025 9:00pm

Copy link

socket-security bot commented Jan 6, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedgroqd@​0.15.13 ⏵ 1.6.092 +110097 +1399 +2100

View full report

Copy link

socket-security bot commented Jan 6, 2025

All alerts resolved. Learn more about Socket for GitHub.

This PR previously contained dependency changes with security issues that have been resolved, removed, or ignored.

View full report

@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from b1f7561 to 9b18cd4 Compare January 6, 2025 12:01
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 9b18cd4 to c3728dd Compare January 6, 2025 13:11
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from c3728dd to b44fac8 Compare January 7, 2025 22:20
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from b44fac8 to 87a556a Compare January 8, 2025 08:49
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 87a556a to 2be4f79 Compare January 8, 2025 23:17
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 2be4f79 to bcca584 Compare January 8, 2025 23:35
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch 2 times, most recently from 3eb37b2 to 194436b Compare January 9, 2025 07:49
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 194436b to 25d02c1 Compare January 9, 2025 13:00
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 163b9d2 to 041e108 Compare April 10, 2025 16:59
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 041e108 to f25a147 Compare April 10, 2025 21:19
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from f25a147 to 5602376 Compare April 11, 2025 14:16
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 5602376 to e5b34be Compare April 11, 2025 14:21
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from e5b34be to 0f9ca0a Compare April 11, 2025 14:43
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 0f9ca0a to 91519c2 Compare April 11, 2025 14:54
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 91519c2 to 3e4fdec Compare April 30, 2025 14:23
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 3e4fdec to 9d5d7c3 Compare April 30, 2025 15:20
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 9d5d7c3 to 69bb43e Compare April 30, 2025 16:11
@renovate renovate bot force-pushed the renovate/main-major-1-app-dependencies branch from 69bb43e to f595b9e Compare April 30, 2025 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants