Skip to content

v2.0.0

Compare
Choose a tag to compare
@yen-tt yen-tt released this 08 Sep 20:26
· 54 commits to master since this release
c0e7f82

Version 2.0.0

Changes

  • additionalQueryParameter is now a public field in SearchConfig models (#217)

Breaking Changes

  • Updated default and sandbox URL endpoints from ../answers/.. to ../search/.. as part of rebranding process (#196 )
  • Restructured StaticFilters models for better developer experience and enforce proper restriction in the kind of combinations of filters supported by the backend
    • Now, static filters can be either a field value filter or a nested object that is composed by combining field value filters. (#201 )
    • ConjunctionStaticFilter and DisjunctionStaticFilter models were created to reflect such limitation. For example, ANDs of ORs combination is allowed, ORs of ANDs combination is not allowed. (#204 )
  • Updated FieldValueDirectAnswer model to properly handle different value types. Previously, FieldValueDirectAnswer interface enforces that the value field will always be of type string. Now, FieldValueDirectAnswer is a union type of predefined interfaces with known value type and UnknownFieldValueDirectAnswer with a generic value type for other fieldType outside of BuiltInFieldType. (#200 #202 )
  • Narrow down FeaturedSnippetDirectAnswer TypeScript model to be a union type of MultiLineTextSnippetDirectAnswer and RichTextSnippetDirectAnswer as a featured snippet direct answer can only be of fieldType multi_line_text or rich_text. (#207 #212 )
  • All exports marked as @deprecated in previous version(s) as part of the rebranding process is now removed in V2 (#216 )