2.0.0
This version includes breaking changes, so it has been released as a major upgrade.
Full Changelog: 1.1.0...2.0.0
Features
Support for Promise
and await
Starting in version version 1.1.0, SDK methods like PAYPAY.QRCodeCreate
return a Promise
.
Methods continue to accept an optional callback parameter.
The JavaScript Promise
type enables simpler asynchronous code, particularly when using ECMAScript 2017's await
keyword.
Breaking Changes
- Parse JSON responses into object in SDK in #375
SDK methods like PAYPAY.QRCodeCreate
now return an object, rather than a raw JSON string, making the API easier to use.
This is a breaking change and is reflected in the new TypeScript type signature.
This means that it is no longer necessary to invoke JSON.parse
on the results of API calls.
In order to reduce friction, these API response objects have a custom toString()
.
This ensures that code that calls JSON.parse
on an API response will still continue to function. However, other uses of the respones as a string will not.
Dependency Upgrades
- Bump jest from 27.4.3 to 27.4.4 in #370
- Bump typescript from 4.5.3 to 4.5.4 in #373
- Bump jest from 27.4.4 to 27.4.7 in #398
- Bump ts-jest from 27.1.1 to 27.1.2 in #378
- Bump @typescript-eslint/parser from 5.6.0 to 5.9.1 in #401
- Bump @typescript-eslint/eslint-plugin from 5.6.0 to 5.9.1 in #400
- Bump @types/uuid from 8.3.3 to 8.3.4 in #399
- Bump @types/node from 16.11.12 to 17.0.8 in #396
- Bump @types/crypto-js from 4.0.2 to 4.1.0 in #389
- Bump eslint from 8.4.1 to 8.6.0 in #391
- Bump @types/jest from 27.0.3 to 27.4.0 in #390
- Bump @types/jsonwebtoken from 8.5.6 to 8.5.7 in #403
- Bump eslint from 8.6.0 to 8.7.0 in #405
- Bump ts-jest from 27.1.2 to 27.1.3 in #404
- Bump @types/node from 17.0.8 to 17.0.10 in #410
- Bump typescript from 4.5.4 to 4.5.5 in #411
- Bump @types/node from 17.0.10 to 17.0.14 in #420
- Bump @typescript-eslint/parser from 5.9.1 to 5.10.2 in #419
- Bump @types/jsonwebtoken from 8.5.7 to 8.5.8 in #408
- Bump @typescript-eslint/eslint-plugin from 5.9.1 to 5.10.2 in #418
- Bump jest from 27.4.7 to 27.5.1 in #426
- Bump @types/crypto-js from 4.1.0 to 4.1.1 in #431
- Bump eslint from 8.7.0 to 8.9.0 in #428
- Bump eslint-config-prettier from 8.3.0 to 8.4.0 in #433
- Bump @typescript-eslint/parser from 5.10.2 to 5.12.1 in #435
- Bump @typescript-eslint/eslint-plugin from 5.10.2 to 5.12.1 in #434
- Bump @types/jest from 27.4.0 to 27.4.1 in #437
- Bump eslint from 8.9.0 to 8.10.0 in #439
- Bump @types/node from 17.0.14 to 17.0.21 in #438
- Bump @typescript-eslint/eslint-plugin from 5.12.1 to 5.13.0 in #440
- Bump typescript from 4.5.5 to 4.6.2 in #441
- Bump @typescript-eslint/parser from 5.12.1 to 5.13.0 in #442
Continuous Integration & Testing
- Use single build-ci.yml in #402