|
| 1 | +# Changelog |
| 2 | + |
| 3 | +## [2.0.2](https://github.com/smsapi/smsapi-javascript-client/compare/v2.0.1...v2.0.2) - 2021-04-20 |
| 4 | + |
| 5 | +### Added |
| 6 | + |
| 7 | +- `test:watch` npm script and `make test--watch`. |
| 8 | + |
| 9 | +### Fixed |
| 10 | + |
| 11 | +- Error handling. |
| 12 | + |
| 13 | +## [2.0.1](https://github.com/smsapi/smsapi-javascript-client/compare/v2.0.0...v2.0.1) - 2021-01-15 |
| 14 | + |
| 15 | +### Changed |
| 16 | + |
| 17 | +- Updated `tsconfig.json`. |
| 18 | + |
| 19 | +## [2.0.0](https://github.com/smsapi/smsapi-javascript-client/compare/v1.7.1...v2.0.0) - 2021-01-14 |
| 20 | + |
| 21 | +In version 2.0 we've rewritten library and introduced long awaited TypeScript support. We also introduced support of smsapi.io - a proxy which simplifies logging into both smsapi.pl and smsapi.com services. For all changes details check the list below. |
| 22 | + |
| 23 | +### Added |
| 24 | + |
| 25 | +- TypeScript support. |
| 26 | +- Support for `https://smsapi.io`. One service for `https://api.smsapi.pl` and `https://api.smsapi.com`. |
| 27 | +- `smsapi.sms.sendFlashSms()` |
| 28 | +- `smsapi.sms.sendFlashSmsToGroup()` |
| 29 | +- `smsapi.sendernames.getBySender()` |
| 30 | + |
| 31 | +### Changed |
| 32 | + |
| 33 | +- `new SMSAPI()` now accepts OAuth token as argument instead of options object. |
| 34 | +- `smsapi.hlr.check()` now can handle array of phone numbers and array of idx as second argument. |
| 35 | +- Replaced `smsapi.contacts.list()` with `smsapi.contacts.get()`. |
| 36 | +- Replaced `smsapi.contacts.add()` with `smsapi.contacts.create()`. |
| 37 | +- Updated `smsapi.contacts.update()` to accepts object of fields to update as second argument. |
| 38 | +- Replaced `smsapi.contacts.delete()` with `smsapi.contacts.remove()`. |
| 39 | +- Replaced `smsapi.contacts.groups.assignments.list()` with `smsapi.contacts.getGroups()`. |
| 40 | +- Replaced `smsapi.contacts.groups.assignments.get()` with `smsapi.contacts.getGroupById()`. |
| 41 | +- Replaced `smsapi.contacts.groups.assignments.add()` with `smsapi.contacts.assignContactToGroup()`. |
| 42 | +- Replaced `smsapi.contacts.groups.assignments.delete()` with `smsapi.contacts.unpinContactFromGroup()`. |
| 43 | +- Replaced `smsapi.contacts.fields.list()` with `smsapi.contacts.fields.get()`. |
| 44 | +- Replaced `smsapi.contacts.fields.add()` with `smsapi.contacts.fields.create()`. |
| 45 | +- Updated `smsapi.contacts.fields.update()` to accepts field's name as second argument. |
| 46 | +- Replaced `smsapi.contacts.fields.delete()` with `smsapi.contacts.fields.remove()`. |
| 47 | +- Replaced `smsapi.contacts.groups.list()` with `smsapi.contacts.groups.get()`. |
| 48 | +- Replaced `smsapi.contacts.groups.add()` with `smsapi.contacts.groups.create()`. |
| 49 | +- Replaced `smsapi.contacts.groups.get()` with `smsapi.contacts.groups.getById()`. |
| 50 | +- Updated `smsapi.contacts.groups.update()` to accepts group's name and description in options object as second argument. |
| 51 | +- Replaced `smsapi.contacts.groups.delete()` with `smsapi.contacts.groups.remove()`. |
| 52 | +- Replaced `smsapi.contacts.groups.members.add()` with `smsapi.contacts.assignContactToGroup()`. |
| 53 | +- Replaced `smsapi.contacts.groups.members.delete()` with `smsapi.contacts.unpinContactFromGroup()`. |
| 54 | +- Replaced `smsapi.message.sms().to()` with `smsapi.sms.sendSms()`. |
| 55 | +- Replaced `smsapi.message.sms().group()` with `smsapi.sms.sendSmsToGroup()`. |
| 56 | +- Replaced `smsapi.message.delete()` with `smsapi.sms.removeScheduledSms()`. |
| 57 | +- Replaced `smsapi.message.mms().to()` with `smsapi.sms.sendMms()`. |
| 58 | +- Replaced `smsapi.message.mms().group()` with `smsapi.mms.sendMmsToGroup()`. |
| 59 | +- Replaced `smsapi.message.vms().to().tts()` with `smsapi.sms.sendVms()`. |
| 60 | +- Replaced `smsapi.message.vms().group().tts()` with `smsapi.mms.sendVmsToGroup()`. |
| 61 | +- Replaced `smsapi.message.vms().to().localFile()` with `smsapi.sms.sendVmsWithLocalFile()`. |
| 62 | +- Replaced `smsapi.message.vms().group().localFile()` with `smsapi.mms.sendVmsWithLocalFileToGroup()`. |
| 63 | +- Replaced `smsapi.message.vms().to().remoteFile()` with `smsapi.sms.sendVmsWithRemoteFile()`. |
| 64 | +- Replaced `smsapi.message.vms().group().remoteFile()` with `smsapi.mms.sendVmsWithRemoteFileToGroup()`. |
| 65 | +- Replaced `smsapi.sender.list()` with `smsapi.sendernames.get()`. |
| 66 | +- Replaced `smsapi.sender.add()` with `smsapi.sendernames.create()`. |
| 67 | +- Replaced `smsapi.sender.default()` with `smsapi.sendernames.makeDefault()`. |
| 68 | +- Replaced `smsapi.sender.delete()` with `smsapi.sendernames.remove()`. |
| 69 | +- Replaced `smsapi.template.list()` with `smsapi.templates.get()`. |
| 70 | +- Replaced `smsapi.template.get()` with `smsapi.templates.getById()`. |
| 71 | +- Replaced `smsapi.template.add()` with `smsapi.templates.create()`. |
| 72 | +- Replaced `smsapi.template.update()` with `smsapi.templates.update()`. |
| 73 | +- Replaced `smsapi.template.delete()` with `smsapi.templates.remove()`. |
| 74 | +- Replaced `smsapi.user.list()` with `smsapi.subusers.get()`. |
| 75 | +- Replaced `smsapi.user.get()` with `smsapi.subusers.getById()`. |
| 76 | +- Replaced `smsapi.user.add()` with `smsapi.subusers.create()`. |
| 77 | +- Replaced `smsapi.user.update()` with `smsapi.subusers.update()`. |
| 78 | +- Replaced `smsapi.user.delete()` with `smsapi.subusers.remove()`. |
| 79 | + |
| 80 | +### Removed |
| 81 | + |
| 82 | +- Support for username/password authorization. |
| 83 | +- `smsapi.points.get()` - instead use response of `smsapi.profile.get()`. |
| 84 | +- `smsapi.contacts.groups.list().name()` |
| 85 | +- `smsapi.contacts.groups.list().id()` - instead use `smsapi.contacts.groups.getById()`. |
| 86 | +- `smsapi.contacts.groups.permissions` |
| 87 | +- `smsapi.contacts.groups.members.get()` |
| 88 | +- `smsapi.sender.status()` - instead use `smsapi.sendernames.getBySender()` and check `status` in returned object. |
0 commit comments