Skip to content

Releases: DestinyItemManager/bungie-api-ts

v5.0.0

29 Jul 18:29
a2aef6e
Compare
Choose a tag to compare

This version introduces new typings for HttpClient and HttpClientConfig that make them easier to use without leaning on any, and which offer easier compatibility with fetch. You may have to make changes to your code as a result, especially if you were directly using HttpClient as the params argument now requires its values to be string.

4.2.1

03 Jul 01:47
8e637db
Compare
Choose a tag to compare
  • Marked DestinyInventoryItemDefinition#itemCategoryHashes as nullable.

NodeJS-compatible modules

15 May 05:31
Compare
Choose a tag to compare

In the previous release I thought I was switching to ES modules in a compatible way, but I didn't know exactly how NodeJS wanted it. After much experimentation and help from @sundevour, this release should be compatible with newer Nodes (13.2+), through their native ES module support.

Furthermore, there are now some extra helpers in the destiny2 module for dealing with the manifest database - downloading it (whole or in parts) and accessing typed subsets.

ES Modules and enums

15 May 05:33
16e1082
Compare
Choose a tag to compare

Two major changes - one, this package is published as ES modules now, instead of CommonJS. Second, the enums are published in the generated JavaScript as plain objects, meaning this library still works if you're using Babel or other TS build types that don't play well with const enum.

Data properties are optional

15 Apr 03:54
Compare
Choose a tag to compare

This is a major (breaking) release that makes the data parameter from Component responses optional, since the API can omit the response either because of privacy settings or during maintenance. You should update your code to handle the fact that this can be undefined.

1.0.2

15 Jan 06:39
Compare
Choose a tag to compare

First working version