Skip to content

[discuss] cli,doc: doc deprecate --preserve-symlinks flags #41540

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions doc/api/deprecations.md
Original file line number Diff line number Diff line change
Expand Up @@ -3047,6 +3047,22 @@ const w = new Writable({
});
```

### DEP0XXX: `node --preserve-symlinks` and `node --preserve-symlinks-main
<!-- YAML
added: REPLACEME
-->

Type: Documentation-only

Previously `node` supported an altered form of caching and resolution that did
not use realpathing via `--preserve-symlinks` and `--preserve-symlinks-main`.

This feature caused issues with various expectations around module resolution
and lacked maintainence sufficient to keep supporting it. Due to this, features
were developed that did not take it into account and led to these flags having
inconsistent behavior.


[Legacy URL API]: url.md#legacy-url-api
[NIST SP 800-38D]: https://nvlpubs.nist.gov/nistpubs/Legacy/SP/nistspecialpublication800-38d.pdf
[RFC 6066]: https://tools.ietf.org/html/rfc6066#section-3
Expand Down