sanity-typed-queries

A typed, zero-dependency schema generator and query builder for Sanity.

MIT License

Downloads
3.3K
Stars
172
Committers
6

Bot releases are hidden (Show)

sanity-typed-queries - Release 0.6.1

Published by danielroe over 4 years ago

0.6.1 (2020-04-26)

Bug Fixes

  • add missing parts of schema type (7a48412)
sanity-typed-queries - Release 0.6.0

Published by danielroe over 4 years ago

0.6.0 (2020-04-26)

Features

  • correctly resolve references to documents (9c1a5c0)

Bug Fixes

  • correctly label select parameter as exclusive, not inclusive (176c82a)
sanity-typed-queries - Release 0.5.1

Published by danielroe over 4 years ago

0.5.1 (2020-04-05)

Features

  • support coalesce, count and array projections (da8718c)

Bug Fixes

  • move groq query selection after order (3f758a0)
sanity-typed-queries - Release 0.5.0

Published by danielroe over 4 years ago

0.5.0 (2020-04-05)

Features

  • allow custom object and document types (e9cfbd0)
sanity-typed-queries - Release 0.4.1

Published by danielroe over 4 years ago

0.4.1 (2020-04-04)

Features

  • add support for resolving image and file types (f0f79b7)

Bug Fixes

  • handle custom mappings without explicit projection (008bcb2)
sanity-typed-queries - Release 0.4.0

Published by danielroe over 4 years ago

0.4.0 (2020-04-03)

⚠ BREAKING CHANGES

  • No longer compatible with IE11
  • createSchema is now defineDocument with an additional helper (defineFields) for defining fields within a document

Features

  • add support for object types with subfields (f6e968e)
  • allow custom mappings ("prop": my.prop) (048ab1e)

Bug Fixes

  • don't modify query builder instance (5e71d4e)
  • more precisely define custom sanity types (6e6b423)
  • remove references to dummy custom fields (d925ff1)
  • type blocks as BlockType[] not BlockType[][] (51bfe9a)
sanity-typed-queries - Release 0.3.1

Published by danielroe over 4 years ago

0.3.1 (2020-04-01)

Bug Fixes

sanity-typed-queries - Release 0.3.0

Published by danielroe over 4 years ago

0.3.0 (2020-04-01)

Features

  • infer correct types of arrays (fd75b5c)
sanity-typed-queries - Release 0.2.0

Published by danielroe over 4 years ago

0.2.0 (2020-03-31)

⚠ BREAKING CHANGES

  • The return type of .use() has changed.

Bug Fixes

Code Refactoring

  • adjust return type of use() for flexibility (d78c742)