Releases: sanity-io/groq-js
Releases · sanity-io/groq-js
v1.10.0
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
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
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:
v1.7.0
v1.6.1
v1.6.0
1.6.0 (2024-04-02)
Features
- type-evaluation: add support for Pos and Neg nodes (bef4ad5)
Bug Fixes
Exportsshould beexports(5cea533)- deps: bump
@sanity/pkg-utilstov5.1.5(d2e8f6c) - remove legacy
typingsfield, astypesis already used (7c05d5e) - test ecospark push override (1e4b895)
This release is also available on:
v1.5.0
1.5.0 (2024-03-19)
Features
- access optinal attributes should return null (8e3f7e4)
- add support for slice in type evaluator (7877990)
- add tsdoc to describe the type nodes (65cbc41)
- add type evaluator (637603b)
- evaluateQueryType: add more tests (#180) (5d2528e)
- export type evaluation with version 1 (62c6b7f)
- only export typeEvaluate function (e3e3875)
- replace esbuild with tsx. fixes linenumber (8a60c87)
- typeEvaluator: rename main function to
typeEvaluate(9c2f345)
Bug Fixes
- dont access attributes inside arrays (0e267bc)
- dont stringify objects, let debug/util handle it (bb7d646)
- forward type on map unexpected (8131a71)
- handle flatmap over unions correctly (70dc0c3)
- order unions (5a940e0)
- query node type eval tests (522bd9b)
- recursively lookup attributes in object rest (fecc1a1)
- refactor and reuse scope handling from evaluator (7bed827)
- remove un-evaluated Slice-case (349645b)
- typeEvaluate: resolve inline when mapping type (7a3742c)
- update snapshots (0860eaf)
- various type evaluation bugs (3da42d7)
This release is also available on:
v1.5.0-canary.3
1.5.0-canary.3 (2024-03-18)
Bug Fixes
- handle flatmap over unions correctly (70dc0c3)
- remove un-evaluated Slice-case (349645b)
- various type evaluation bugs (3da42d7)
This release is also available on:
v1.5.0-canary.2
1.5.0-canary.2 (2024-03-13)
Features
- access optinal attributes should return null (8e3f7e4)
- add support for slice in type evaluator (7877990)
- add tsdoc to describe the type nodes (65cbc41)
Bug Fixes
- typeEvaluate: resolve inline when mapping type (7a3742c)
This release is also available on:
v1.5.0-canary.1
1.5.0-canary.1 (2024-03-05)
Features
- add type evaluator (637603b)
- evaluateQueryType: add more tests (#180) (5d2528e)
- export type evaluation with version 1 (62c6b7f)
- only export typeEvaluate function (e3e3875)
- replace esbuild with tsx. fixes linenumber (8a60c87)
- typeEvaluator: rename main function to
typeEvaluate(9c2f345)
Bug Fixes
- dont access attributes inside arrays (0e267bc)
- dont stringify objects, let debug/util handle it (bb7d646)
- forward type on map unexpected (8131a71)
- order unions (5a940e0)
- query node type eval tests (522bd9b)
- refactor and reuse scope handling from evaluator (7bed827)
- update snapshots (0860eaf)
This release is also available on: