The largest changes here are:
- enforcing single quotes for strings
- enforcing trailing commas where possible
In addition to those we have enabled several eslint plugins:
- plugin:requirejs/recommended, to enforce some conventions in require statements
- plugin:node/recommended, to enforce correct usage of various node.js APIs
- plugin:unicorn/recommended, which contains a pretty mixed bag of useful rules
This PR attempts to not change code behavior when possible. In cases where fixing
existing code would change semantics, a linting exclusion has been placed in the
code base to silence the error. You can find these by searching for `eslint-disable-next-line`.
Co-authored-by: Austin Morton <austinpmorton@gmail.com>
When setting a key, the file is written to disk first and then
the cache entry is set. When the key already exists, the dispose
callback will end up deleting the *updated* file from disk.
This results in a cache entry with no corresponding file on disk.
There appears to be a race condition between key eviction
and access. It is possible for the file to be deleted from disk,
but the key to still be in the cache momentarily.
If someone tries to access the key during this period a
file not found error will be thrown, and odd behavior may
occur in the caller.
Instead, we catch/log errors and return a cache miss.
This commit adds support for hosting on windows, as well as better
support for the Visual C++ compiler. Specific interesting changes are:
- switch from /FAsc to /FA
- order functions in file order
- support demangling win32-style identifiers with undname
- clang++ and vc++ on win32 host are both supported
Due to concerns over status of upstream
Cookie consent value is now tied to hash of cookie privacy text,
so we get automatic revoking of consent on privacy update