Skip to content

Commit 58152d3

Browse files
committed
release new version 2.3.0
1 parent 2ca3051 commit 58152d3

File tree

2 files changed

+78
-13
lines changed

2 files changed

+78
-13
lines changed

CHANGELOG.md

+77-12
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,144 @@
1+
## 2.3.0
2+
3+
Changes:
4+
5+
- The Api class has been renamed to Vkontakte.
6+
- Interfaces of VK sections have been removed; now it is necessary to access methods through the `request` function.
7+
- The `fetcher` parameter to the `VkDart` class is required.
8+
9+
News:
10+
11+
- The `answer` function has been added to the `VkDartMessageEventUpdate` model, which will send an event with an action
12+
to the user,
13+
which
14+
clicked the callback button.
15+
- The following functions have been added to the `VkDartMessageUpdate` model:
16+
- `sendMessage`: sends a message to the user in the dialog from which the event came. If you specify
17+
the `peerIds` parameter will be sent to the necessary dialogs.
18+
- `replyMessage`: does the same thing as `sendMessage`, but replies to the message.
19+
- `setActivity`: changes the typing status in the dialog.
20+
- Added properties to the `MessageModel` model:
21+
- `actionType`: type of service action with chat.
22+
- `actionMemberId`: ID of the user who pinned/unpinned/joined, etc.
23+
- `actionText`: title of the conversation.
24+
- `actionOldText`: old name of the conversation.
25+
- `actionEmail`: user email.
26+
- `actionPhoto50`: used instead of `photo50`.
27+
- `actionPhoto100`: used instead of `photo100`.
28+
- `actionPhoto200`: used instead of `photo200`.
29+
30+
The following properties have been removed: `actionMid`, `photo50`, `photo100`, `photo200`.
31+
- New threads that produce messages with a service action
32+
chat `onChatUser`, `onChatPin`, `onChatCreate`, `onChatPhoto`, `onChatTitle`.
33+
134
## 2.2.0
35+
236
Change:
37+
338
- Remove class `ApiResponse`.
4-
- The `VkDartUpdate` class-mixin was removed, the `Update` class was renamed to `VkDartUpdate`. ([Commit](https://github.com/swedesjs/vkdart/commit/215637989b6b3e9758ab0340006641db4eaeb7b3#diff-d57374fc48bdddbb8ba6e673b90a428de20bce6e128f5435b36d5c662f3be063))
5-
- The `eventData` property has been renamed to `data`.
6-
- [Api.request](https://pub.dev/documentation/vkdart/latest/vkdart.vkontakte/Api/request.html): implementation of API invocation, function return type and input parameters type. ([Commit](https://github.com/swedesjs/vkdart/commit/4af4bd67a6767162e40beed3344d96fbf0978d1d))
39+
- The `VkDartUpdate` class-mixin was removed, the `Update` class was renamed
40+
to `VkDartUpdate`. ([Commit](https://github.com/swedesjs/vkdart/commit/215637989b6b3e9758ab0340006641db4eaeb7b3#diff-d57374fc48bdddbb8ba6e673b90a428de20bce6e128f5435b36d5c662f3be063))
41+
- The `eventData` property has been renamed to `data`.
42+
- [Api.request](https://pub.dev/documentation/vkdart/2.2.0/vkdart.vkontakte/Api/request.html): implementation of API
43+
invocation, function return type and input parameters
44+
type. ([Commit](https://github.com/swedesjs/vkdart/commit/4af4bd67a6767162e40beed3344d96fbf0978d1d))
745

846
New:
9-
- [VkDartLikeUpdate](https://pub.dev/documentation/vkdart/latest/vkdart.model/VkDartLikeUpdate-class.html), [VkDartMarketOrderUpdate](https://pub.dev/documentation/vkdart/latest/vkdart.model/VkDartMarketOrderUpdate-class.html), [VkDartWallUpdate](https://pub.dev/documentation/vkdart/latest/vkdart.model/VkDartWallUpdate-class.html): new [modifiers](https://github.com/swedesjs/vkdart/commit/599d169782a82190e4ebff20624baf40c52c1321).
47+
48+
- [VkDartLikeUpdate](https://pub.dev/documentation/vkdart/2.2.0/vkdart.model/VkDartLikeUpdate-class.html), [VkDartMarketOrderUpdate](https://pub.dev/documentation/vkdart/latest/vkdart.model/VkDartMarketOrderUpdate-class.html), [VkDartWallUpdate](https://pub.dev/documentation/vkdart/latest/vkdart.model/VkDartWallUpdate-class.html):
49+
new [modifiers](https://github.com/swedesjs/vkdart/commit/599d169782a82190e4ebff20624baf40c52c1321).
1050

1151
## 2.1.0
52+
1253
Change:
54+
1355
- The documentation has become more correct and clearer.
1456
- Got rid of the `dia`, `dia_body`, `dio` dependencies. `Dio` was replaced by the `http` package and `dia` by `dart:io`.
15-
- [VkDartUpdate](https://pub.dev/documentation/vkdart/2.1.0/vkdart.model/VkDartUpdate-class.html): payload property renamed to updateObject.
57+
- [VkDartUpdate](https://pub.dev/documentation/vkdart/2.1.0/vkdart.model/VkDartUpdate-class.html): payload property
58+
renamed to updateObject.
1659

1760
New:
18-
- [MessageModel](https://pub.dev/documentation/vkdart/2.1.0/vkdart.vkontakte/MessageModel-class.html): function [applyPayload](https://pub.dev/documentation/vkdart/2.1.0/vkdart.vkontakte/MessageModel/applyPayload.html) is implemented, which overloads the payload correctly.
19-
- [HttpClient](https://pub.dev/documentation/vkdart/2.1.0/vkdart.util/HttpClient-class.html): for convenient use of requests to the VK server.
20-
- [VkDartMessageUpdate](https://pub.dev/documentation/vkdart/2.1.0/vkdart.model/VkDartMessageUpdate-class.html): new [modifiers](https://github.com/swedesjs/vkdart/commit/a0b2c137d6202a48173c792aa125e53c42ff01d2).
21-
- [VkDartKeyboard](https://pub.dev/documentation/vkdart/2.1.0/vkdart.util/VkDartKeyboard-class.html): for convenient use of VK keyboards.
61+
62+
- [MessageModel](https://pub.dev/documentation/vkdart/2.1.0/vkdart.vkontakte/MessageModel-class.html):
63+
function [applyPayload](https://pub.dev/documentation/vkdart/2.1.0/vkdart.vkontakte/MessageModel/applyPayload.html) is
64+
implemented, which overloads the payload correctly.
65+
- [HttpClient](https://pub.dev/documentation/vkdart/2.1.0/vkdart.util/HttpClient-class.html): for convenient use of
66+
requests to the VK server.
67+
- [VkDartMessageUpdate](https://pub.dev/documentation/vkdart/2.1.0/vkdart.model/VkDartMessageUpdate-class.html):
68+
new [modifiers](https://github.com/swedesjs/vkdart/commit/a0b2c137d6202a48173c792aa125e53c42ff01d2).
69+
- [VkDartKeyboard](https://pub.dev/documentation/vkdart/2.1.0/vkdart.util/VkDartKeyboard-class.html): for convenient use
70+
of VK keyboards.
2271

2372
## 2.0.0
73+
2474
Change:
75+
2576
- A census of the API package documentation.
2677
- Refactoring code.
2778
- Got rid of the dependency json_annotation, json_serializable, build_runner
2879

29-
New:
80+
New:
81+
3082
- Of attachment models, messages, and events.
3183
- Of an unsupported event handler.
3284
- The util library, which contains useful functions for working correctly with the package.
3385

3486
## 1.3.6
87+
3588
Change: two `donut` handlers are combined into one (`onDonut()`)
3689

3790
## 1.3.5
91+
3892
fix: adjustment of `donut` handlers.
3993

4094
## 1.3.4
41-
Refactor: correction in the name of the event handler `group_officers_edit`, `group_change_settings`, `group_change_photo`.
95+
96+
Refactor: correction in the name of the event
97+
handler `group_officers_edit`, `group_change_settings`, `group_change_photo`.
4298
Rename `onGroupUpdate()` -> `onGroupChange()`
4399

44100
## 1.3.3
101+
45102
Refactor: correction in the name of the event handler `wall_post_new`, `wall_repost`.
46103
Rename `onWallPost()` -> `onWall()`
47104

48105
## 1.3.2
106+
49107
Add: Added a handler for the `message_reaction_event` event.
50108

51109
## 1.3.1
110+
52111
Fix: `Longpoll Fetcher`: only one event was read at startup.
53112

54113
## 1.3.0
114+
55115
Change:
116+
56117
- Documentation on using.
57118
- File structure package.
58119
- Structure of using the package.
59120
- Example file.
60121

61-
New:
122+
New:
123+
62124
- **Event class**. Interface containing event streams.
63125
- Functions to listen for specific events.
64126

65127
## 1.2.0
128+
66129
- Removed attachment interfaces to make the package lighter.
67130
- Removed support for Longpoll API, now only Callback API.
68131
- The structure of the Callback API interface has been changed.
69132
- Added lists of `update types`.
70133

71134
## 1.1.2
135+
72136
- Added `getAttachmentFromJson()` function.
73137
- Correction in the interface name `AudioAttachment`.
74138
- Added error handler to using `CallbackAPI`
75139

76140
## 1.1.1
141+
77142
- Fixed incorrect operation of the `api.request()` function.
78143
- Amendments have been made to the documentation.
79144

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: vkdart
22
description: Package helps simplify working with the VK API.
33
Completely wraps VK methods, has event support and much more.
4-
version: 2.2.0
4+
version: 2.3.0
55
repository: https://github.com/swedesjs/vkdart
66
issue_tracker: https://github.com/swedesjs/vkdart/issues
77

0 commit comments

Comments
 (0)