File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
5
5
6
6
## Unreleased
7
7
8
+ ### Added
9
+ - ` hash ` : add support for hashing functions ([ #3072 ] , thanks [ @michaelfaith ] )
10
+
8
11
## v2.11.1 - 2024-09-23
9
12
10
13
### Fixed
@@ -172,6 +175,7 @@ Yanked due to critical issue with cache key resulting from #839.
172
175
### Fixed
173
176
- ` unambiguous.test() ` regex is now properly in multiline mode
174
177
178
+ [ #3072 ] : https://github.com/import-js/eslint-plugin-import/pull/3072
175
179
[ #3061 ] : https://github.com/import-js/eslint-plugin-import/pull/3061
176
180
[ #3057 ] : https://github.com/import-js/eslint-plugin-import/pull/3057
177
181
[ #3049 ] : https://github.com/import-js/eslint-plugin-import/pull/3049
Original file line number Diff line number Diff line change @@ -17,6 +17,8 @@ function hashify(value, hash) {
17
17
18
18
if ( Array . isArray ( value ) ) {
19
19
hashArray ( value , hash ) ;
20
+ } else if ( typeof value === 'function' ) {
21
+ hash . update ( String ( value ) ) ;
20
22
} else if ( value instanceof Object ) {
21
23
hashObject ( value , hash ) ;
22
24
} else {
You can’t perform that action at this time.
0 commit comments