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 |
|
Wes Todd
|
e9f9aaeebd
|
Merge tag '4.19.0' into 5.x
4.19.0
|
2024-03-20 21:14:00 -05:00 |
|
christof louw
|
2a89eb5c74
|
tests: fix handling multiple callbacks
closes #5233
|
2024-02-19 08:20:39 -05:00 |
|
Douglas Christopher Wilson
|
318fd4b543
|
Merge tag '4.17.3'
|
2022-02-17 00:27:11 -05:00 |
|
Douglas Christopher Wilson
|
a65913776d
|
tests: use strict mode
|
2022-02-09 01:07:08 -05:00 |
|
Douglas Christopher Wilson
|
141914e817
|
tests: fix tests that did not bubble errors
|
2022-02-02 14:16:20 -05:00 |
|
Douglas Christopher Wilson
|
bd4fdfe5f7
|
tests: remove global dependency on should
fixes #4797
|
2022-02-02 01:55:16 -05:00 |
|
Douglas Christopher Wilson
|
62e12fe710
|
Merge tag '4.16.2'
|
2017-10-13 22:27:30 -04:00 |
|
Hrvoje Šimić
|
2df1ad26a5
|
Improve error messages when non-function provided as middleware
closes #3426
|
2017-09-28 09:20:37 -04:00 |
|
Douglas Christopher Wilson
|
cec5780db4
|
Use router module for routing
closes #2411
|
2015-07-06 23:46:00 -04:00 |
|
Douglas Christopher Wilson
|
bf1980f1b4
|
Improve error message for bad app.use arguments
|
2014-09-17 19:18:10 -07:00 |
|
Douglas Christopher Wilson
|
3c1a964362
|
Fix regression for empty string path in app.use
fixes #2361
fixes #2362
|
2014-09-17 19:18:01 -07:00 |
|
Douglas Christopher Wilson
|
cf41a8f254
|
Fix app.use to accept array of middleware without path
fixes #2356
|
2014-09-12 17:46:49 -04:00 |
|
Fabien Franzen
|
17cea29013
|
Support mounted app as any argument to app.use()
fixes #2277
|
2014-08-06 02:49:06 -04:00 |
|
Douglas Christopher Wilson
|
997a558a73
|
Accept multiple callbacks to app.use()
fixes #2224
|
2014-07-11 17:13:06 -04:00 |
|
Douglas Christopher Wilson
|
1c3bd36be6
|
Support non-string path in app.use(path, fn)
fixes #2207
|
2014-07-11 16:35:37 -04:00 |
|
Douglas Christopher Wilson
|
b4b2efee0f
|
tests: add more app.use tests
|
2014-07-05 11:32:44 -04:00 |
|
Douglas Christopher Wilson
|
5019f38e29
|
tests: add more tests
|
2014-06-06 00:38:14 -04:00 |
|
Blake Embrey
|
efbe1779e3
|
Override params every layer.
|
2014-03-17 15:16:26 -03:00 |
|
Blake Embrey
|
51e80ffd48
|
Add tests for dynamic mounting.
|
2014-03-10 13:16:39 -04:00 |
|
Jonathan Ong
|
643397ed21
|
remove unnecessary test/support/http
|
2014-03-05 22:06:14 -08:00 |
|
Tj Holowaychuk
|
87b991c076
|
removed "root" setting
screw it, no one will understand anyway
|
2011-11-24 14:27:28 -08:00 |
|
Tj Holowaychuk
|
5d593f26af
|
.parent tests
|
2011-11-24 14:04:37 -08:00 |
|
Tj Holowaychuk
|
853c270fce
|
more mounting tests
|
2011-11-24 13:51:04 -08:00 |
|
Tj Holowaychuk
|
fcf34e0587
|
adding some mounting tests
|
2011-11-24 13:49:27 -08:00 |
|