Skip to content

Releases: sirbrillig/gitnews

v3.1.3

20 Dec 17:06
Compare
Choose a tag to compare

Changelog

  • Disable HTTP caching.

v3.1.2

18 Dec 02:05
Compare
Choose a tag to compare

Changelog

  • #14 Add guards for invalid subject URLs

v3.1.1

16 Oct 16:42
Compare
Choose a tag to compare

Changelog

Upgrade node-fetch and with-query dependencies.

v3.1.0

19 Jan 22:15
Compare
Choose a tag to compare

Changelog

  • Add markNotificationRead #11

v3.0.0

22 Dec 00:23
Compare
Choose a tag to compare

Changelog

  • Replace (undocumented) setLogger and setFetchFunction with a factory function createNoteGetter. #4
  • Allow 404 responses from comments. #10

v2.0.1

27 Jul 16:49
Compare
Choose a tag to compare

Changelog

  • Added unit tests.
  • Properly reject the getNotifications() promise when the network request is not 200.

v2.0.0

27 May 18:18
Compare
Choose a tag to compare

A big update that changes the notification object to a custom object.

Changelog:

  • A custom object (detailed below) is now returned by the getNotifications promise instead of the annotated API response.
  • The notification object now has a unique ID based on a hash of the notification ID and the last updated timestamp.
  • The notification object now includes data on the most recent comment (URL and avatar).
  • Removes the getReadNotifications function; getNotifications returns read and unread notifications by default now. Sorting them can be done using the unread property.
  • The raw API responses are now recorded in the api property if they are needed.
  • A missing token will now return an Error object with the code property set to GitHubTokenNotFound instead of a string.

The new notification object has these properties:

  • updatedAt: The time (in ISO 8601 format) of the notification.
  • unread: True if the notification has not been seen.
  • repositoryName: The Repository name (eg: gitnews).
  • repositoryFullName: The full Repository name (eg: sirbrillig/gitnews).
  • title: The title of the notification.
  • type: The type of the notification.
  • id: A unique ID for this notification (at its most recently updated timestamp).
  • private: True if the notification repo is private.
  • commentUrl: The URL of the notification's most recent comment.
  • subjectUrl: The URL of the notification's issue or PR.
  • commentAvatar: The URL of the image for the notification's most recent commenter.
  • repositoryOwnerAvatar: The URL of the image for the Repository's owner.
  • api: The raw GitHub API responses.

v1.1.0

12 May 17:50
Compare
Choose a tag to compare
Add explanation about private repositories