diff --git a/CHANGELOG.md b/CHANGELOG.md index 433a976f30..07d38f1bea 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,25 @@ ## master (unreleased) +### New features + +* [#384](https://github.com/rubocop/rubocop-performance/issues/384): Support optimized `String#dup` for `Performance/UnfreezeString` when Ruby 3.3+. ([@koic][]) + +### Bug fixes + +* [#374](https://github.com/rubocop/rubocop-performance/issues/374): Fix an error for `Performance/MapMethodChain` when using `map` method chain without receiver. ([@koic][]) +* [#386](https://github.com/rubocop/rubocop-performance/issues/386): Fix a false negative for `Performance/StringIdentifierArgument` when using string interpolation. ([@earlopain][]) +* [#419](https://github.com/rubocop/rubocop-performance/pull/419): Make `Performance/Count`, `Performance/FixedSize`, `Performance/FlatMap`, `Performance/InefficientHashSearch`, `Performance/RangeInclude`, `Performance/RedundantSortBlock`, `Performance/ReverseFirst`, `Performance/SelectMap`, `Performance/Size`, `Performance/SortReverse`, and `Performance/TimesMap` cops aware of safe navigation operator. ([@koic][]) +* [#390](https://github.com/rubocop/rubocop-performance/issues/390): Fix a false negative for `Performance/ReverseEach` when safe navigation is between `reverse` and `each`. ([@fatkodima][]) +* [#401](https://github.com/rubocop/rubocop-performance/issues/401): Make `Performance/Sum` aware of safe navigation operator. ([@koic][]) + +### Changes + +* [#389](https://github.com/rubocop/rubocop-performance/issues/389): Improve `Performance/MapCompact` to handle more safe navigation calls. ([@fatkodima][]) +* [#395](https://github.com/rubocop/rubocop-performance/issues/395): Enhance `Performance/StringInclude` to handle `===` method. ([@fatkodima][]) +* [#388](https://github.com/rubocop/rubocop-performance/pull/388): Require RuboCop 1.30+ as runtime dependency. ([@koic][]) +* [#380](https://github.com/rubocop/rubocop-performance/pull/380): Require RuboCop AST 1.30.0+. ([@koic][]) + ## 1.19.1 (2023-09-17) ### Bug fixes @@ -482,3 +501,4 @@ [@vlad-pisanov]: https://github.com/vlad-pisanov [@ymap]: https://github.com/ymap [@tagliala]: https://github.com/tagliala +[@earlopain]: https://github.com/earlopain diff --git a/changelog/change_improve_performance_map_compact_to.md b/changelog/change_improve_performance_map_compact_to.md deleted file mode 100644 index 543f98e6d0..0000000000 --- a/changelog/change_improve_performance_map_compact_to.md +++ /dev/null @@ -1 +0,0 @@ -* [#389](https://github.com/rubocop/rubocop-performance/issues/389): Improve `Performance/MapCompact` to handle more safe navigation calls. ([@fatkodima][]) diff --git a/changelog/change_require_rubocop_1_33_as_a_runtime_dependency.md b/changelog/change_require_rubocop_1_33_as_a_runtime_dependency.md deleted file mode 100644 index 48b258f7a9..0000000000 --- a/changelog/change_require_rubocop_1_33_as_a_runtime_dependency.md +++ /dev/null @@ -1 +0,0 @@ -* [#388](https://github.com/rubocop/rubocop-performance/pull/388): Require RuboCop 1.30+ as runtime dependency. ([@koic][]) diff --git a/changelog/change_require_rubocop_ast_1_30.md b/changelog/change_require_rubocop_ast_1_30.md deleted file mode 100644 index e464067c42..0000000000 --- a/changelog/change_require_rubocop_ast_1_30.md +++ /dev/null @@ -1 +0,0 @@ -* [#380](https://github.com/rubocop/rubocop-performance/pull/380): Require RuboCop AST 1.30.0+. ([@koic][]) diff --git a/changelog/change_string_include_to_handle_===.md b/changelog/change_string_include_to_handle_===.md deleted file mode 100644 index db61f34481..0000000000 --- a/changelog/change_string_include_to_handle_===.md +++ /dev/null @@ -1 +0,0 @@ -* [#395](https://github.com/rubocop/rubocop-performance/issues/395): Enhance `Performance/StringInclude` to handle `===` method. ([@fatkodima][]) diff --git a/changelog/fix_a_false_negative_for_string_identifier_argument.md b/changelog/fix_a_false_negative_for_string_identifier_argument.md deleted file mode 100644 index ba7d8738a1..0000000000 --- a/changelog/fix_a_false_negative_for_string_identifier_argument.md +++ /dev/null @@ -1 +0,0 @@ -* [#386](https://github.com/rubocop/rubocop-performance/issues/386): Fix a false negative for `Performance/StringIdentifierArgument` when using string interpolation. ([@earlopain][]) diff --git a/changelog/fix_an_error_for_performance_map_method_chain.md b/changelog/fix_an_error_for_performance_map_method_chain.md deleted file mode 100644 index e2a240203f..0000000000 --- a/changelog/fix_an_error_for_performance_map_method_chain.md +++ /dev/null @@ -1 +0,0 @@ -* [#374](https://github.com/rubocop/rubocop-performance/issues/374): Fix an error for `Performance/MapMethodChain` when using `map` method chain without receiver. ([@koic][]) diff --git a/changelog/fix_false_negative_for_reverse_each.md b/changelog/fix_false_negative_for_reverse_each.md deleted file mode 100644 index 5d943cea0e..0000000000 --- a/changelog/fix_false_negative_for_reverse_each.md +++ /dev/null @@ -1 +0,0 @@ -* [#390](https://github.com/rubocop/rubocop-performance/issues/390): Fix a false negative for `Performance/ReverseEach` when safe navigation is between `reverse` and `each`. ([@fatkodima][]) diff --git a/changelog/fix_make_performance_sum_aware_of_safe_navigation_operator.md b/changelog/fix_make_performance_sum_aware_of_safe_navigation_operator.md deleted file mode 100644 index fd6fe79f55..0000000000 --- a/changelog/fix_make_performance_sum_aware_of_safe_navigation_operator.md +++ /dev/null @@ -1 +0,0 @@ -* [#401](https://github.com/rubocop/rubocop-performance/issues/401): Make `Performance/Sum` aware of safe navigation operator. ([@koic][]) diff --git a/changelog/fix_make_some_cops_aware_of_safe_navigation_operator.md b/changelog/fix_make_some_cops_aware_of_safe_navigation_operator.md deleted file mode 100644 index ab31a7bbd1..0000000000 --- a/changelog/fix_make_some_cops_aware_of_safe_navigation_operator.md +++ /dev/null @@ -1 +0,0 @@ -* [#419](https://github.com/rubocop/rubocop-performance/pull/419): Make `Performance/Count`, `Performance/FixedSize`, `Performance/FlatMap`, `Performance/InefficientHashSearch`, `Performance/RangeInclude`, `Performance/RedundantSortBlock`, `Performance/ReverseFirst`, `Performance/SelectMap`, `Performance/Size`, `Performance/SortReverse`, and `Performance/TimesMap` cops aware of safe navigation operator. ([@koic][]) diff --git a/changelog/new_optimized_string_dup_for_performance_unfreeze_string.md b/changelog/new_optimized_string_dup_for_performance_unfreeze_string.md deleted file mode 100644 index 120cb7695a..0000000000 --- a/changelog/new_optimized_string_dup_for_performance_unfreeze_string.md +++ /dev/null @@ -1 +0,0 @@ -* [#384](https://github.com/rubocop/rubocop-performance/issues/384): Support optimized `String#dup` for `Performance/UnfreezeString` when Ruby 3.3+. ([@koic][])