-
-
Notifications
You must be signed in to change notification settings - Fork 935
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79507c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this maybe be released as breaking changes? I know the API is still the same,
but there could be users who are dependant on CacheableLookup in their stack.
79507c2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cobraz Unfortunately this had a negative effect for most people. Memory leaks, inconsistencies with the Node.js behavior, problems with parsing the
hosts
file, OS-specific DNS rules don't apply, the problem is really big, and the fix is not quite easy to do. Releasing Got 12 would be too much, users can easily add it back byconst instance = got.extend({dnsCache: new CacheableLookup()})
. The CacheableLookup package is not battle-tested. But that doesn't mean that the DNS cache won't be enabled by default in the future. I'm working on the fix. See szmarczak/cacheable-lookup#31