Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

groq-js

Package Overview
Dependencies
Maintainers
0
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

groq-js - npm Package Versions

1
8

1.0.1

Diff

mattcraig
published 1.0.0 •

Changelog

Source

v1.0.0-rc - 2022-07-28

New features:

  • Implement array::unique()
  • Implement aggregation functions on the math namespace:
    • min()
    • max()
    • sum()
    • avg()
  • Implement functions on the string namespace:
    • startsWith()
    • split()
  • Implement functions on the array namespace:
    • join()
    • compact()
  • Introduce support for using specific GROQ versions
  • Introduce validation for selector syntax

Tooling changes:

  • Support local test via $GROQTEST_SUITE
mattcraig
published 1.0.0-1 •

mattcraig
published 1.0.0-0 •

judofyr
published 0.4.0-beta.2 •

Changelog

Source

v0.4.0-beta.2 - 2022-03-21

Bug fixes

  • Correctly accept function calls with trailing commas: select(123,).
  • Correctly parse object expressions which start with literal strings (e.g. {"mail" == … => …}).
  • Correctly accept comments with no text (// on a single line).
judofyr
published 0.4.0-beta.1 •

Changelog

Source

v0.4.0-beta.1

Bug fixes:

  • Fix error ReferenceError: marks is not defined which happened while parsing strings in strict mode.
judofyr
published 0.4.0-beta.0 •

Changelog

Source

v0.4.0-beta.0 - 2021-12-14

New features:

  • Support specifying now() and identity() during evaluation.
  • Support for validating Delta GROQ.

Backwards compatible API changes:

  • Introduce params and mode option on parse.
  • Introduce before and after option on evaluate.
  • The main file is now an UMD file usable in the browser, exported under groqJS.

Private changes:

  • Rewrite parser, optimizing for performance.

Tooling changes:

  • Use Vite and esbuild instead of TSDX.
  • Switch completely over from Jest to Tap for running test.
judofyr
published 0.3.0-beta.2 •

judofyr
published 0.3.0-beta.1 •

judofyr
published 0.3.0 •

Changelog

Source

v0.3.0 - 2021-06-25

API changes:

  • Introduce params parameter on parse which is required to properly parse an expression (@judofyr)

GROQ compatibility fixes:

  • Preserve nulls in objects (@judofyr, #36)
  • Add support for arrays in length (@judofyr)
  • Use stable sorting in order (@judofyr)
  • Implement string function (@judofyr, @israelroldan)
  • Add support for arrays in references (@judofyr)
  • Implement dateTime (@judofyr)
  • Implement proper array traversal (@judofyr)
  • Implement score function (@judofyr)
  • Implement namespaced functions (@judofyr)
  • Implement lower and upper (@judofyr)
  • Implement pt::text (@judofyr)
  • Improve match behavior (@judofyr)

Private changes:

  • Simplify and restructure AST (@judofyr)
  • Split up SyntaxNode into a special ExprNode represent what's returned from parse (@judofyr)

Tooling changes:

  • Use tap for running tests since Jest is too slow (@judofyr)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc