Szymon Łągiewka
|
41113599af
|
fix(refactor): prefix built-in node module imports
Since v5 relies on node >= 18, this is now possible (since v16, v14.18.0
[^1][^2]).
It's functionally irrelevant:
1. It's not required for CJS nor ESM (with a few exceptions [^3])
2. It has no performance promises
However, there are upsides to this approach:
1. It brings clear boundaries to what's a built-in and what's an
external dependency
2. It reduces the risk of importing unwanted deps where a built-in is
expected
3. It's slightly more interoperable with other JS runtimes that provide
node compatibility[^4], albeit only during development. Once imported
from npm, built-ins are assumed.
[^1]:https://nodejs.org/docs/latest-v22.x/api/modules.html#built-in-modules
[^2]:https://github.com/nodejs/node/pull/37246
[^3]:https://nodejs.org/api/modules.html#built-in-modules-with-mandatory-node-prefix
[^4]:https://docs.deno.com/runtime/fundamentals/node/#using-node's-built-in-modules
|
2025-01-10 11:53:44 -06:00 |
|
Evan Hahn
|
c17fe05861
|
Ignore Object.prototype values in settings through app.set/app.get
closes #4802
closes #4803
|
2022-03-23 20:05:05 -04:00 |
|
Douglas Christopher Wilson
|
a65913776d
|
tests: use strict mode
|
2022-02-09 01:07:08 -05:00 |
|
Douglas Christopher Wilson
|
56e90e3c72
|
lint: add eslint rules that cover editorconfig
|
2017-08-05 23:37:39 -04:00 |
|
Douglas Christopher Wilson
|
b40e74d6b6
|
Fix "trust proxy" setting to inherit when app is mounted
fixes #2550
fixes #2551
|
2015-02-18 00:59:56 -05:00 |
|
Douglas Christopher Wilson
|
8751d7ecf8
|
tests: add more tests
|
2014-05-30 21:28:48 -04:00 |
|
Douglas Christopher Wilson
|
c21226aa7c
|
improve etag control for res.send
closes #1435
closes #2129
|
2014-05-30 21:02:21 -04:00 |
|
Tj Holowaychuk
|
7d24c2ba40
|
Fixed app.set() with undefined
|
2011-12-15 09:00:39 -08:00 |
|
Tj Holowaychuk
|
15e7218bc4
|
tests for app.get() inheritance. Closes #904
|
2011-11-24 15:27:09 -08:00 |
|
Tj Holowaychuk
|
d17dd3e3d8
|
more config tests
|
2011-11-08 15:42:22 -08:00 |
|
Tj Holowaychuk
|
51a5c829bb
|
config test
|
2011-11-08 15:40:34 -08:00 |
|