Skip to content

Releases: Modern-Treasury/modern-treasury-node

v2.8.0

24 Oct 18:09
Compare
Choose a tag to compare

2.8.0 (2023-10-24)

Full Changelog: v2.7.2...v2.8.0

Features

  • api: updates (#266) (53bd88a)
  • client: adjust retry behavior to be exponential backoff (#267) (926baf6)
  • handle 204 No Content gracefully (#264) (2fd00e6)
  • make webhook headers case insensitive (#256) (c838d5c)
  • types: consolidate direction enums into a shared TransactionDirection type (#259) (b63fb03)

Bug Fixes

  • api: use date-time for effective_at (#265) (d9a8150)
  • client: eliminate circular imports, which cause runtime errors in webpack dev bundles (#249) (cad5c73)
  • fix namespace exports regression (#251) (f7f367c)
  • import web-streams-polyfill without overriding globals (#262) (d83ec78)
  • improve status code in error messages (#260) (b2e8b90)

Chores

Documentation

  • organisation -> organization (UK to US English) (#261) (c9fb49b)

Refactors

v2.7.2

10 Oct 17:31
Compare
Choose a tag to compare

2.7.2 (2023-10-06)

Full Changelog: v2.7.1...v2.7.2

Bug Fixes

  • prevent ReferenceError, update compatibility to ES2020 and Node 18+ (#248) (03620a3)

v2.7.1

02 Oct 16:14
Compare
Choose a tag to compare

2.7.1 (2023-10-02)

Full Changelog: v2.7.0...v2.7.1

Chores

v2.7.0

26 Sep 17:19
Compare
Choose a tag to compare

2.7.0 (2023-09-25)

Full Changelog: v2.6.0...v2.7.0

Features

  • client: handle retry-after with a date (#242) (ca21e25)
  • client: support importing node or web shims manually (#238) (ce14a0e)
  • package: export a root error type (#241) (c8b64f9)

Documentation

  • api.md: add shared models (#240) (1a30c77)
  • README: fix variable names in some examples (#239) (4a4178f)
  • readme: remove incorrect wording in opening (#236) (8098776)

v2.6.0

19 Sep 03:06
Compare
Choose a tag to compare

2.6.0 (2023-09-19)

Full Changelog: v2.5.0...v2.6.0

Features

Documentation

  • declare Bun 1.0 officially supported (#233) (ecaf5b8)

v2.5.0

12 Sep 17:33
Compare
Choose a tag to compare

2.5.0 (2023-09-08)

Full Changelog: v2.4.0...v2.5.0

Features

  • fixes tests where an array has to have unique enum values (#221) (0aa1909)

Bug Fixes

  • fix module not found errors in Vercel edge (#227) (554b457)
  • readme: update link to api.md to use the correct branch (#224) (902b8aa)

Chores

Documentation

v2.4.0

05 Sep 16:49
201acee
Compare
Choose a tag to compare

2.4.0 (2023-09-05)

Full Changelog: v2.3.0...v2.4.0

Features

  • client: improve compatibility with Bun (#204) (1248e3a)
  • docs: add documentation to the client constructor (#203) (e558d7b)
  • package: add Bun export map (#215) (e796a08)
  • types: export RequestOptions type (#209) (0b46351)
  • types: remove incorrectly included Idempotency-Key param (#218) (905b43e)

Bug Fixes

  • client: fix TS errors that appear when users Go to Source in VSCode (#219) (de2b2a1)
  • client: fix TypeError when a request gets retried (#201) (ad59570)
  • client: handle case where the client is instantiated with a undefined baseURL (#220) (894890e)
  • client: use explicit file extensions in _shims imports (#217) (15df031)
  • core: fix navigator check for strange environments (#207) (2b6e569)
  • types: improve getNextPage() return type (#214) (eb7e51f)

Chores

  • ci: setup workflows to create releases and release PRs (#212) (fb97629)
  • internal: add helper method (#211) (a9d85e6)
  • internal: add missing eslint-plugin-prettier (#206) (baa9264)
  • internal: export HeadersInit type shim (#210) (a5e0cfe)
  • internal: minor reformatting of code (#205) (709c87f)

v2.3.0

15 Aug 18:18
Compare
Choose a tag to compare

2.3.0 (2023-08-15)

⚠ BREAKING CHANGES

  • client: support accessing raw response + remove deprecated features (#191)

Features

  • allow a default timeout to be set for clients (#196) (5403497)
  • api: add metadata in several places it was missing; add description (#179) (639f25b)
  • api: support multiple ids in ledger retrieve/list endpoints (#194) (a8a1a87)
  • api: updates (#180) (24c193d)
  • client: detect browser usage (#182) (f571e78)
  • client: support accessing raw response + remove deprecated features (#191) (ca27da3)
  • streaming: add .toReadableStream() method (#185) (7765c7b)

Bug Fixes

  • client: fix array query param serialization (#195) (c091449)
  • remove redundant Content-Type header param (#190) (0dedec0)

Documentation

  • api: improve custom method arguments (#184) (ea440fd)
  • readme: minor updates (#192) (94a83be)
  • readme: remove beta status + document versioning policy (#181) (5a7f4a4)

Chores

  • assign default reviewers to release PRs (#197) (ef8f6b0)
  • internal: change jest exclude patterns (#189) (2f59bf2)
  • internal: conditionally include bin during build output (#193) (7dfe154)
  • internal: fix deno build (#177) (f04bfc3)
  • internal: fix error happening in CloudFlare pages (#198) (5fa6d25)
  • internal: improve error message when option is missing (#199) (db2e836)
  • internal: remove deno build (#183) (3db3231)
  • internal: update eslint (#187) (0d185b0)
  • internal: update tsconfig-paths dep (#188) (9370fe5)
  • internal: update typescript (#186) (7186ad6)

v2.2.0

01 Aug 18:25
Compare
Choose a tag to compare

2.2.0 (2023-08-01)

⚠ BREAKING CHANGES

  • types: rename account connection flow to account collection flow (#164)
  • api: update parameters for virtual account create request (#157)

Features

  • api: update parameters for virtual account create request (#157) (1e5aebe)
  • api: updates (#166) (40a3e9e)
  • api: updates (#171) (c47cae2)
  • client: export ClientOptions interface (#161) (cfc1517)
  • streaming: make requests immediately throw an error if an aborted signal is passed in (#163) (3282c5d)
  • test: unskip file uploads tests (#175) (8117843)

Bug Fixes

  • api: add response body to virtualAccounts.retrieve() and update resources (#155) (b5464dd)
  • client: fix errors with file uploads in the browser (#162) (a2dda93)
  • client: handle undefined process in more places (#170) (5d0a45b)
  • client: set client options argument as optional (#168) (9f2ac54)
  • fix error in environments without TextEncoder (#158) (1dba8bc)
  • fix errors with "named" client export in CJS (#156) (31b4844)
  • fix export map order (#160) (b47d673)
  • fix undefined message in errors (#169) (4c914f4)

Refactors

  • create build for deno.land (#174) (bb9f890)
  • types: rename account connection flow to account collection flow (#164) (12ae4aa)
  • use destructuring arguments in client constructor and respect false values (#172) (2efa6bd)

Chores

  • internal: allow the build script to be run without yarn installed (#173) (c57d134)
  • internal: fix deno build (#176) (660c841)
  • internal: let toFile helper accept promises to objects with name/type properties (#153) (0965670)
  • internal: restructure code to stringify query (#159) (82dae5b)

v2.1.0

13 Jul 18:12
Compare
Choose a tag to compare

2.1.0 (2023-07-13)

Features

  • client: add support for passing a signal request option (#148) (33236e6)
  • client: improve timeout handling to reuse agent (#140) (afa8b25)
  • client: support passing a custom fetch function (#144) (d32ecbc)
  • improvements to ecosystem compatibility (#151) (9a0343e)

Bug Fixes

  • client: properly handle multi-byte characters in Content-Length (#145) (6adf4d8)
  • fix errors in package source files when users go to definition in VSCode (#139) (148fefe)
  • include README.md, LICENSE and CHANGELOG.md in published package (#136) (e372a1b)
  • streaming: do not abort successfully completed streams (#147) (5f7f44e)
  • streaming: fix response body streaming in non-Chrome environments (#142) (cb86104)
  • streaming: polyfill ReadableStream async iterator and text decoding (#135) (1da7d67)
  • support PromiseLike input to toFile (#138) (f157769)

Refactors

  • improve streaming implementation (#137) (6716dd2)
  • streaming: make response body streaming polyfill more spec-compliant (#143) (9f62d25)

Documentation

  • readme: improvements to formatting code snippets (#149) (699a630)
  • readme: minor improvements (#146) (09c7bb5)

Chores

  • internal: fix release please version config (#134) (1cc2a12)
  • internal: remove unused streaming implementation (#150) (3665f89)