Skip to content

Release Version 1.2.0

Latest
Compare
Choose a tag to compare
@paul-soporan paul-soporan released this 11 Dec 16:14

Filters Update

Features

  • Filters:
    • Filters are a new complex feature, that corresponds to Custom Filters
    • They can be used inside any request method, by providing a filter property as an option. The filter property can be a Filter object or a string (Filter.filter / 'default' / 'withbody' / 'none' / 'total')
    • More documentation and examples can be found on the wiki: Filters
    • New methods on the StackExchange class:
      • createFilter()
      • decodeFilters()
    • Made all methods on the StackExchange class filterable
  • Post:
    • Added a Post class, corresponding to Type post
    • New methods on the StackExchange class:
      • getPosts()
      • getPostsByIds()

Bug Fixes

  • Fixed issue badge and CircleCI status badge in README.md

Refactoring

  • All class properties are now required, because they are set to null if missing
  • All interface properties are now optional, because they can be filtered out from requests
  • Made all properties of result-types interfaces readonly
  • Enabled strict and other stricter compiler options in tsconfig.json

Dependencies

  • Updated to TypeScript Version 3.7.2
  • Updated Dependencies

Documentation

  • Added documentation for classes