diff --git a/CHANGELOG.md b/CHANGELOG.md index 225db55..5af7d65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 4.4.1 +__Bug fixes__: +- Fix `part` directives breaking compilation. + ## 4.4.0 __Miscellaneous__: - Bump `analyzer` to 5.7.1, `args` to 2.4.0, `dart_style` to 2.2.5, `logging` to 1.1.1, `meta` to 1.9.0, `nyxx` to 4.5.0, `nyxx_interactions` to 4.5.0, `path` to 1.8.3 `build_runner` to 2.1.0, `coverage` to 1.6.3, `lints` to 2.0.1, `mockito` to 5.3.2, and `test` to 1.23.1. diff --git a/bin/compile/element_tree_visitor.dart b/bin/compile/element_tree_visitor.dart index d768613..d4cdd0e 100644 --- a/bin/compile/element_tree_visitor.dart +++ b/bin/compile/element_tree_visitor.dart @@ -129,6 +129,6 @@ class EntireAstVisitor extends RecursiveAstVisitor { super.visitPartDirective(directive); // Visit "part-ed" files of interesting sources - _interestingSources.add(directive.uri.stringValue!); + _interestingSources.add((directive.element!.uri as DirectiveUriWithSource).source.fullName); } } diff --git a/pubspec.yaml b/pubspec.yaml index f101db3..5a00ae0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,5 +1,5 @@ name: nyxx_commands -version: 4.4.0 +version: 4.4.1 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