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 |
|
Douglas Christopher Wilson
|
20047bb6e4
|
examples: use strict mode
|
2022-02-02 01:30:51 -05:00 |
|
Aravind Nair
|
884e080a19
|
build: ejs@3.1.6
closes #4572
closes #4573
|
2021-07-31 21:54:15 -04:00 |
|
Lutger Kunst
|
30afebf8da
|
examples: fixed typo in ejs example css
closes #4554
|
2021-07-30 16:22:34 -04:00 |
|
Aditya Srivastava
|
3f1dcb96e0
|
examples: add viewport and charset where missing
closes #3860
|
2020-03-25 17:10:34 -04:00 |
|
Hung HOANG
|
daf66beda4
|
examples: fix path join in ejs example
fixes #3382
closes #3383
closes #3385
|
2017-08-03 21:20:55 -04:00 |
|
Jamie Barton
|
57d3dfd9f8
|
examples: merge the jade example into ejs
closes #3223
|
2017-03-05 23:13:53 -05:00 |
|
chainhelen
|
8eb95ae579
|
examples: use path.join instead of concatenation
closes #3236
|
2017-03-05 23:07:24 -05:00 |
|
Douglas Christopher Wilson
|
db4448dda8
|
Merge tag '3.9.0'
|
2014-05-30 22:17:51 -04:00 |
|
Douglas Christopher Wilson
|
c18c2a8e68
|
tests: exclude untestable lines in examples from coverage
|
2014-05-28 00:07:27 -04:00 |
|
agchou
|
06dcb22ae2
|
clean up code consistency
|
2014-03-27 09:15:27 -07:00 |
|
TJ Holowaychuk
|
464608025b
|
refactor ejs example some more
|
2012-10-09 19:26:55 -07:00 |
|
TJ Holowaychuk
|
d653d2308b
|
refactor ejs example
|
2012-10-09 19:26:17 -07:00 |
|
sakateka
|
be7ec8b40e
|
improved ejs Example
|
2012-10-09 19:16:54 -07:00 |
|
TJ Holowaychuk
|
05253272cb
|
clarify ejs example
|
2012-04-13 09:16:16 -07:00 |
|
Tj Holowaychuk
|
43c09b2eaa
|
ejs test
|
2011-12-09 16:07:15 -08:00 |
|
Tj Holowaychuk
|
3b6e96efa9
|
ejs tests
|
2011-12-09 15:29:09 -08:00 |
|
TJ Holowaychuk
|
543fe2f2a4
|
fixed ejs example
|
2011-11-20 11:59:10 -08:00 |
|
Tj Holowaychuk
|
8a7876f4d1
|
cleaning up examples
|
2011-05-20 09:16:35 -07:00 |
|
Tj Holowaychuk
|
2f7b78c03a
|
ejs example using app.register()
|
2011-03-02 18:27:12 -08:00 |
|
Tj Holowaychuk
|
6cae1f09f1
|
docs
|
2011-03-02 10:09:07 -08:00 |
|
Tj Holowaychuk
|
2662dae560
|
Removed "_" prefix from partials
|
2010-12-10 10:18:38 -08:00 |
|
Tj Holowaychuk
|
f9b741766b
|
Started view index support
|
2010-12-05 09:46:59 -08:00 |
|
Tj Holowaychuk
|
09359329a0
|
ejs example using new partial lookup
|
2010-12-05 09:37:50 -08:00 |
|
Tj Holowaychuk
|
396837517d
|
fixed ejs example for new locals
|
2010-11-22 16:43:47 -08:00 |
|
Tj Holowaychuk
|
9b7470d204
|
Exposing ./support libs to examples
|
2010-10-05 06:08:53 -07:00 |
|
Tj Holowaychuk
|
99bb14680a
|
Added ejs example
|
2010-07-15 15:38:08 -07:00 |
|
Tj Holowaychuk
|
83df3dda95
|
Started ejs example
|
2010-07-15 14:59:02 -07:00 |
|