Skip to content

Commit 6b1cb4e

Browse files
committed
Release: 3.0.0-dev.0
1 parent 2f70522 commit 6b1cb4e

File tree

4 files changed

+22
-12
lines changed

4 files changed

+22
-12
lines changed

.github/PULL_REQUEST_TEMPLATE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Use smart commits here to manipulate issues (eg. Fixes #issue)
66

77
## Connected issues & potential other potential problems
88

9-
If changes are connected to other issues or are affecting code in other parts of framework
10-
(e.g. in main package or any subpackage) make sure to link and describe where and why problem could be present
9+
If changes in PR are connected to other issues or are affecting code in other parts of framework
10+
(e.g. in main package or any other subpackage) make sure to link issue/PR and describe said problem
1111

1212
## Type of change
1313

CHANGELOG.md

+11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 3.0.0-dev.0
2+
__24.11.2021__
3+
4+
- Implemented new interface-based entity model.
5+
> All concrete implementations of entities are now hidden behind interfaces which exports only behavior which is
6+
> intended for end developer usage. For example: User is now not exported and its interface `IUser` is available for developers.
7+
> This change shouldn't have impact of end developers.
8+
9+
Other changes are initial implementation of unit and integration tests to assure correct behavior of internal framework
10+
processes. Also added `Makefile` with common commands that are run during development.
11+
112
## 2.0.0
213
_03.10.2021_
314

example/example.dart

+6-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ import "package:nyxx_lavalink/nyxx_lavalink.dart";
44
import "package:nyxx/nyxx.dart";
55

66
void main() async {
7-
final client = NyxxFactory.createNyxxWebsocket(Platform.environment["DISCORD_TOKEN"]!, GatewayIntents.allUnprivileged);
7+
final client = NyxxFactory.createNyxxWebsocket("<TOKEN>", GatewayIntents.allUnprivileged)
8+
..registerPlugin(Logging()) // Default logging plugin
9+
..registerPlugin(CliIntegration()) // Cli integration for nyxx allows stopping application via SIGTERM and SIGKILl
10+
..registerPlugin(IgnoreExceptions()) // Plugin that handles uncaught exceptions that may occur
11+
..connect();
12+
813
final cluster = ICluster.createCluster(client, Snowflake("YOUR_BOT_ID"));
914

1015
// This is a really simple example, so we'll define the guild and

pubspec.yaml

+3-9
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,13 @@ environment:
1010
sdk: '>=2.13.0 <3.0.0'
1111

1212
dependencies:
13-
http: "^0.13.3"
14-
logging: "^1.0.1"
15-
nyxx: "^2.0.0"
13+
http: ^0.13.3
14+
logging: ^1.0.1
15+
nyxx: ^3.0.0-dev.0
1616

1717
dev_dependencies:
1818
build_runner: ^2.1.4
1919
coverage: ^1.0.3
2020
lints: ^1.0.1
2121
mockito: ^5.0.16
2222
test: ^1.19.0
23-
24-
dependency_overrides:
25-
nyxx:
26-
git:
27-
url: 'https://github.com/nyxx-discord/nyxx.git'
28-
ref: next

0 commit comments

Comments
 (0)