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
esm: remove specifier resolution flag #44859
esm: remove specifier resolution flag #44859
Conversation
|
Review requested: |
|
@GeoffreyBooth I imagine this is either |
@Trott since this is experimental, I think no semver label should be added (although I might be wrong on that?), but since we don't want to break that relies on the flag (they shouldn't), I've added |
2f0a90a
to
7b0f9d0
Compare
I think @aduh95 has it right, but I defer to others on what the proper procedure is per our policy. I thought experimental features could disappear at any time and it wouldn’t be semver-major or minor. We might want to backport this when we backport making the Loaders API stable, but we can revisit that then. |
This comment was marked as outdated.
This comment was marked as outdated.
|
I think this should be a major change. We know that many users are using this flag and it will certainly surprise them and cause them to pin the minor if it is removed in a minor version. |
|
I dunno about policy, but because of its usage I would advocate for major. But we want to land it in 19.0.0 anyway, so no problem regardless? |
|
In practice, experimental status hasn’t seemed relevant for anything that’s gained adoption. |
7b0f9d0
to
53e5e45
Compare
53e5e45
to
b295148
Compare
This comment was marked as outdated.
This comment was marked as outdated.
|
|
Don't all jobs need that? I thought the commit queue script always checked that, regardless of labels. |
Commit Queue failed- Loading data for nodejs/node/pull/44859 ✔ Done loading data for nodejs/node/pull/44859 ----------------------------------- PR info ------------------------------------ Title esm: remove specifier resolution flag (#44859) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch GeoffreyBooth:remove-experimental-specifier-resolution -> nodejs:main Labels module, lib / src, notable-change, experimental, esm, author ready, needs-ci, dont-land-on-v14.x, loaders, dont-land-on-v16.x, dont-land-on-v18.x Commits 1 - esm: remove specifier resolution flag Committers 1 - Geoffrey Booth PR-URL: https://github.com/nodejs/node/pull/44859 Reviewed-By: Jacob Smith Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Jan Krems Reviewed-By: Guy Bedford ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/44859 Reviewed-By: Jacob Smith Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Jan Krems Reviewed-By: Guy Bedford -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - esm: remove specifier resolution flag ℹ This PR was created on Sun, 02 Oct 2022 03:28:38 GMT ✔ Approvals: 5 ✔ - Jacob Smith (@JakobJingleheimer): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127586167 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127587639 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127626048 ✔ - Jan Krems (@jkrems): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127667121 ✔ - Guy Bedford (@guybedford): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127667416 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2022-10-03T22:08:27Z: https://ci.nodejs.org/job/node-test-pull-request/47050/ - Querying data for job/node-test-pull-request/47050/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/3179310446 |
Commit Queue failed- Loading data for nodejs/node/pull/44859 ✔ Done loading data for nodejs/node/pull/44859 ----------------------------------- PR info ------------------------------------ Title esm: remove specifier resolution flag (#44859) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch GeoffreyBooth:remove-experimental-specifier-resolution -> nodejs:main Labels module, lib / src, notable-change, experimental, esm, author ready, needs-ci, dont-land-on-v14.x, loaders, dont-land-on-v16.x, dont-land-on-v18.x Commits 1 - esm: remove specifier resolution flag Committers 1 - Geoffrey Booth PR-URL: https://github.com/nodejs/node/pull/44859 Reviewed-By: Jacob Smith Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Jan Krems Reviewed-By: Guy Bedford ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/44859 Reviewed-By: Jacob Smith Reviewed-By: Antoine du Hamel Reviewed-By: James M Snell Reviewed-By: Jan Krems Reviewed-By: Guy Bedford -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last review: ⚠ - esm: remove specifier resolution flag ℹ This PR was created on Sun, 02 Oct 2022 03:28:38 GMT ✔ Approvals: 5 ✔ - Jacob Smith (@JakobJingleheimer): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127586167 ✔ - Antoine du Hamel (@aduh95) (TSC): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127587639 ✔ - James M Snell (@jasnell) (TSC): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127626048 ✔ - Jan Krems (@jkrems): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127667121 ✔ - Guy Bedford (@guybedford): https://github.com/nodejs/node/pull/44859#pullrequestreview-1127667416 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2022-10-04T04:00:33Z: https://ci.nodejs.org/job/node-test-pull-request/47050/ - Querying data for job/node-test-pull-request/47050/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/3179429791 |
|
Landed in f594cc8 |
Notable Changes: cli: * (SEMVER-MINOR) add `--watch` (Moshe Atlow) #44366 esm: * remove specifier resolution flag (Geoffrey Booth) #44859 * convert `resolve` hook to synchronous (Jacob Smith) #43363 http: * (SEMVER-MINOR) add writeEarlyHints function to ServerResponse (Wing) #44180 * (SEMVER-MAJOR) use Keep-Alive by default in global agents (Paolo Insogna) #43522 build: * (SEMVER-MAJOR) remove dtrace & etw support (Ben Noordhuis) #43652 * (SEMVER-MAJOR) remove systemtap support (Ben Noordhuis) #43651 Deprecation and Removals: * (SEMVER-MAJOR) runtime deprecate exports double slash maps (Guy Bedford) #44495 Semver-Major Commits: * [aa3a572] - (SEMVER-MAJOR) build: remove dtrace & etw support (Ben Noordhuis) #43652 * [38f1e27] - (SEMVER-MAJOR) build: remove systemtap support (Ben Noordhuis) #43651 * [2849283] - (SEMVER-MAJOR) crypto: remove non-standard `webcrypto.Crypto.prototype.CryptoKey` (Antoine du Hamel) #42083 * [a1653ac] - (SEMVER-MAJOR) crypto: do not allow to call setFips from the worker thread (Sergey Petushkov) #43624 * [a4fa526] - (SEMVER-MAJOR) fs: add directory autodetection to fsPromises.symlink() (Livia Medeiros) #42894 * [bb4891d] - (SEMVER-MAJOR) fs: add validateBuffer to improve error (Hirotaka Tagawa / wafuwafu13) #44769 * [950a441] - (SEMVER-MAJOR) fs: remove coercion to string in writing methods (Livia Medeiros) #42796 * [41a6d82] - (SEMVER-MAJOR) fs: harden fs.readSync(buffer, options) typecheck (LiviaMedeiros) #42772 * [2275faa] - (SEMVER-MAJOR) fs: harden fs.read(params, callback) typecheck (LiviaMedeiros) #42772 * [29953a0] - (SEMVER-MAJOR) fs: harden filehandle.read(params) typecheck (LiviaMedeiros) #42772 * [4267b92] - (SEMVER-MAJOR) http: use Keep-Alive by default in global agents (Paolo Insogna) #43522 * [f529f73] - (SEMVER-MAJOR) lib: brand check event handler property receivers (Chengzhong Wu) #44483 * [6de2673] - (SEMVER-MAJOR) lib: enable global WebCrypto by default (Antoine du Hamel) #42083 * [73ba883] - (SEMVER-MAJOR) lib: use private field in AbortController (Joyee Cheung) #43820 * [7dd2f41] - (SEMVER-MAJOR) module: runtime deprecate exports double slash maps (Guy Bedford) #44495 * [587367d] - (SEMVER-MAJOR) perf_hooks: expose webperf global scope interfaces (Chengzhong Wu) #44483 * [364c0e1] - (SEMVER-MAJOR) perf_hooks: fix webperf idlharness (Chengzhong Wu) #44483 * [e0ab8dd] - (SEMVER-MAJOR) process: make process.config read only (Sergey Petushkov) #43627 * [481a959] - (SEMVER-MAJOR) readline: remove `question` method from `InterfaceConstructor` (Antoine du Hamel) #44606 * [77e5856] - (SEMVER-MAJOR) src: turn embedder api overload into default argument (Alena Khineika) #43629 * [dabda03] - (SEMVER-MAJOR) src: per-environment time origin value (Chengzhong Wu) #43781 * [2b32985] - (SEMVER-MAJOR) stream: use null for the error argument (Luigi Pinca) #44312 * [57ff476] - (SEMVER-MAJOR) test: remove duplicate test (Luigi Pinca) #44051 * [77def91] - (SEMVER-MAJOR) tls,http2: send fatal alert on ALPN mismatch (Tobias Nießen) #44031 PR-URL: #44626 Co-authored-by: Ruy Adorno <ruyadorno@google.com>
PR-URL: nodejs#44859 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Jan Krems <jan.krems@gmail.com> Reviewed-By: Guy Bedford <guybedford@gmail.com>
No. Doc-only changes and similar things only require GitHub CI. The |
(This stuff is not widely-understood, and it would be great if the bot had a way that wasn't labels because labels get confusing, but labels are where we are now.) |


This removes the
--experimental-specifier-resolutionflag. The loaders team has been planning on removing this as soon as it became possible to replicate the behavior via a custom loader, and today it is: https://github.com/nodejs/loaders-test/tree/main/commonjs-extension-resolution-loader. That loader passes the same tests as the flag’s tests from the Node codebase. This PR both removes the flag and adds a reference to that loader to the docs.