Skip to content

Releases: sanity-io/groq-js

v1.14.2

09 Dec 11:56
Compare
Choose a tag to compare

1.14.2 (2024-12-09)

Bug Fixes

  • ensure coalesce handles optional/unknown/null properly (610e21e)

This release is also available on:

v1.14.1

28 Nov 13:23
Compare
Choose a tag to compare

1.14.1 (2024-11-28)

Bug Fixes

  • pipe functions in projections (40e6c25)

This release is also available on:

v1.14.0

04 Nov 10:50
Compare
Choose a tag to compare

1.14.0 (2024-11-04)

Features

  • add array intersects function (ced9e90)
  • can extract attribute key from Group (46ba490)
  • typeEvaluator: implement proper support for defined in filters (d319f1c)
  • upgrade groq-test-suite version to v0.1.46 (a71e3ec)

Bug Fixes

  • functions: fix typo mapConcrete to mapNode (7f57a91)

This release is also available on:

v1.13.0

26 Aug 13:27
Compare
Choose a tag to compare

1.13.0 (2024-08-26)

Features

  • add new GROQ function sanity::documentsOf (c086187)
  • typeEvaluator: do not let unknown always resolve to unknown (41679a3)
  • typeEvaluator: remove resolve condition, use walk to determine conditions (38ca510)

This release is also available on:

v1.12.0

26 Jul 09:42
Compare
Choose a tag to compare

1.12.0 (2024-07-26)

Features

  • typeEvaluator: add support for global::dateTime (8ed40ea)
  • typeEvaluator: add support for global::length (a244bdc)

This release is also available on:

v1.11.1

25 Jul 13:11
Compare
Choose a tag to compare

1.11.1 (2024-07-25)

Bug Fixes

  • typeEvaluator: fix bug when splatting over optional attributes (92d2449)

This release is also available on:

v1.11.0

23 Jul 10:55
Compare
Choose a tag to compare

1.11.0 (2024-07-23)

Features

  • add support for sanity::versionOf() (fb2f5d0)
  • add type evaluator for sanity::versionOf() (db54be4)
  • typeEvaluator: validate if arg to sanity::versionOf is string (0f4d047)

This release is also available on:

v1.10.0

02 Jul 13:02
Compare
Choose a tag to compare

1.10.0 (2024-07-02)

Features

  • typeEvaluate: preserve value when casting string upper/lower case (fc189a0)
  • typeEvaluator: add support for array functions (86b1053)
  • typeEvaluator: add support for dateTime::now() (9ad8200)
  • typeEvaluator: add support for global::now() (d8cf2d9)
  • typeEvaluator: add support for round() (641ecc6)
  • typeEvaluator: add support for upper() and lower() (0934a3c)
  • typeEvaluator: expand all unions inside a object (1a5106d)

Bug Fixes

  • typeEvaluator: bail early if splatting over a non-union/object (117ec01)
  • typeEvaluator: handle access{attribute,element) when resolving conditions (313369c)
  • typeEvaluator: handle not nodes when resolving conditions (c940472)
  • typeEvaluator: handle rest on object splat operations (2ce28eb)
  • typeEvaluator: make sure we are not inside a hidden scope when resolving parent nodes (f109098)
  • typeEvaluator: map over concrete values and return them as alternatives (f3adc53)
  • typeEvaluator: move object splat into separate methods to ensure conrete mapping (8f1a8d9)
  • typeEvaluator: properly handle object splats with non-concrete types (97aee3e)
  • typeEvaluator: return undefined by default when resolving condition (bfb3d5e)

This release is also available on:

v1.9.0

14 May 12:30
Compare
Choose a tag to compare

1.9.0 (2024-05-14)

Features

  • typeEvaluator: add support for global::references (af958db)
  • typeEvaluator: add support for string::split (dd823dd)
  • typeEvaluator: add support for string::startsWith (6b51180)

Bug Fixes

  • typeEvaluator: update hash group to capture start/end (531fe81)

This release is also available on:

v1.8.0

24 Apr 09:19
Compare
Choose a tag to compare

1.8.0 (2024-04-24)

Features

  • typeEvaluation: add support for global::string (133d8af)
  • typeEvaluator: add support for count (49e05c7)

Bug Fixes

  • loosen strictness for equality with unions (04b4b36)
  • typeEvaluation: map over unions to support filtering null-unions (6ad2398)
  • types: use the strictest tsconfig preset (#222) (8a83812)

This release is also available on: