Skip to content

Releases: workshoptech/discourse-js

TS Migration

22 Oct 11:33

Choose a tag to compare

Breaking Changes

This is a major update which adds Typescript support.

  • The Tag resource methods have been moved to the Topic resource and renamed

Features

  • add getUserSummary to the User resource

Migrate to User API

22 Jun 19:57

Choose a tag to compare

By default this package now uses the User API of Discourse: https://meta.discourse.org/t/user-api-keys-specification/48536

Previously this package relied on the Admin API which could not be used to make requests via a browser due to strict CORS policies within Discourse - only User API keys can be whitelisted as an allowed header: https://github.com/discourse/discourse/blob/master/config/initializers/008-rack-cors.rb#L42

With this update you'll need a method for programmatically generated User API keys - if you'd like advice on how to do this then get in touch.

v1.3.1

28 May 10:44

Choose a tag to compare

v1.3.0

11 Mar 18:01

Choose a tag to compare

  • Add ability to delete a topic 84c97c3

v1.2.0

03 Jan 17:36

Choose a tag to compare

  • Adds query param building functionality and latest flag to Category resources (@djw27 in #7)

v1.1.0

18 Dec 17:12

Choose a tag to compare

• Adds ability to add query paramters to getTopic function. ca96237

v1.0.2

18 Dec 10:28

Choose a tag to compare

• Fixes discourse.post.reply function to use discourse.DiscourseResource({}) to add required api credentials instead of normal fetch.

v0.6.0

14 Dec 12:00

Choose a tag to compare

  • adds getUser functionality
  • updates to README.md

v0.5.0

14 Dec 11:48

Choose a tag to compare

  • add getTopicsByUsername

v0.4.0

05 Dec 13:03

Choose a tag to compare

• Add support for arrays in parameters 9f8a392
• Add ability to get notifications, and mark individual notifications as read 785635f