Skip to content

Commit

Permalink
Release 6.0.0 (#140)
Browse files Browse the repository at this point in the history
* Upgrade to nyxx 6.0.0

* Fix analyzer warnings

* Release 6.0.0
  • Loading branch information
abitofevrything authored Oct 20, 2023
1 parent 7a03a40 commit acd573b
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 23 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 6.0.0
__Breaking changes__
- Update nyxx to version 6.0.0.

__Bug fixes__
- Fixes a type error that could occur when using FallbackConverter's toButton and toMultiselect.

## 6.0.0-dev.1
__Breaking changes__
- Update nyxx to version 6.0.0. See the changelog at https://pub.dev/packages/nyxx for more details.
Expand Down
3 changes: 1 addition & 2 deletions bin/compile/function_metadata/metadata_builder_visitor.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import 'package:analyzer/dart/analysis/analysis_context.dart';
import 'package:analyzer/dart/ast/ast.dart';

import '../element_tree_visitor.dart';
Expand All @@ -21,7 +20,7 @@ import '../element_tree_visitor.dart';
class FunctionBuilderVisitor extends EntireAstVisitor {
final List<InvocationExpression> ids = [];

FunctionBuilderVisitor(AnalysisContext context, bool slow) : super(context, slow);
FunctionBuilderVisitor(super.context, super.slow);

@override
void visitMethodInvocation(MethodInvocation node) {
Expand Down
2 changes: 1 addition & 1 deletion bin/compile/to_source.dart
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ List<String>? toCollectionElementSource(CollectionElement item) {

List<String> imports = [];

List<String>? conditionSource = toExpressionSource(item.condition);
List<String>? conditionSource = toExpressionSource(item.expression);

if (conditionSource == null) {
return null;
Expand Down
2 changes: 0 additions & 2 deletions lib/src/converters/built_in/guild_channel.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import 'dart:async';

import 'package:nyxx/nyxx.dart';

import 'package:runtime_type/runtime_type.dart';

import '../../context/autocomplete_context.dart';
import '../../context/base.dart';
import '../../converters/fallback.dart';
Expand Down
6 changes: 3 additions & 3 deletions lib/src/converters/built_in/number.dart
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ class NumConverter<T extends num> extends Converter<T> {

/// Create a new [NumConverter].
const NumConverter(
T? Function(StringView, ContextData) convert, {
required CommandOptionType type,
T? Function(StringView, ContextData) super.convert, {
required super.type,
this.min,
this.max,
}) : super(convert, type: type);
});

@override
void Function(CommandOptionBuilder)? get processOptionCallback => (builder) {
Expand Down
1 change: 0 additions & 1 deletion lib/src/converters/combine.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';

import 'package:nyxx/nyxx.dart';
import 'package:runtime_type/runtime_type.dart';

import '../context/autocomplete_context.dart';
import '../context/base.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/converters/converter.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';

import 'package:nyxx/nyxx.dart';
import 'package:runtime_type/runtime_type.dart';

import '../commands.dart';
import '../context/autocomplete_context.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/converters/fallback.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';

import 'package:nyxx/nyxx.dart';
import 'package:runtime_type/runtime_type.dart';

import '../context/autocomplete_context.dart';
import '../context/base.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/converters/simple.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import 'dart:async';

import 'package:fuzzywuzzy/fuzzywuzzy.dart' as fuzzy;
import 'package:nyxx/nyxx.dart';
import 'package:runtime_type/runtime_type.dart';

import '../context/autocomplete_context.dart';
import '../context/base.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/src/event_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import 'dart:async';

import 'package:nyxx/nyxx.dart';

import 'package:runtime_type/runtime_type.dart';

import 'commands.dart';
import 'commands/chat_command.dart';
import 'commands/message_command.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/src/mirror_utils/function_data.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:async';

import 'package:nyxx/nyxx.dart';
import 'package:runtime_type/runtime_type.dart';

import '../context/autocomplete_context.dart';
import '../converters/converter.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/src/util/mixins.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import 'dart:math';

import 'package:nyxx/nyxx.dart';

import 'package:runtime_type/runtime_type.dart';

import '../checks/checks.dart';
import '../commands.dart';
import '../commands/chat_command.dart';
Expand Down
10 changes: 4 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: nyxx_commands
version: 6.0.0-dev.1
version: 6.0.0
description: A framework for easily creating slash commands and text commands for Discord using the nyxx library.

homepage: https://github.com/nyxx-discord/nyxx_commands/blob/main/README.md
Expand All @@ -14,17 +14,15 @@ dependencies:
args: ^2.4.0
dart_style: ^2.2.5
logging: ^1.1.1
meta: ^1.9.0
nyxx: ^6.0.0-dev.3
random_string: ^2.3.1
nyxx: ^6.0.0
path: ^1.8.3
runtime_type: ^1.0.1
fuzzywuzzy: ^0.2.0
fuzzywuzzy: ^1.1.6

dev_dependencies:
build_runner: ^2.1.0
coverage: ^1.6.3
lints: ^2.0.1
lints: ^3.0.0
mockito: ^5.3.2
test: ^1.23.1

Expand Down

0 comments on commit acd573b

Please sign in to comment.