Filters Update
- 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. Thefilter
property can be aFilter
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()
- Added a
- Fixed issue badge and CircleCI status badge in README.md
- 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
- Updated to TypeScript Version 3.7.2
- Updated Dependencies
- Added documentation for classes
Besides the new features, this release includes various under-the-hood improvements that help in the development process.
- New methods on the
StackExchange
class:getSites()
similarSearch()
getPrivileges()
getAnswers()
getAnswersByIds()
getComments()
getCommentsByIds()
getCommentsOnAnswers()
getTags()
getModeratorOnlyTags()
getRequiredTags()
advancedSearch()
getBadges()
getBadgesByIds()
getNamedBadges()
getRecipientsBadges()
getRecipientsBadgesByIds()
getTagBasedBadges()
getInfo()
- Fixed README
Initial Release