Skip to content

lib: add --no-experimental-global-navigator CLI flag - #50562

Merged
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
aduh95:flag-no-navigator
Nov 8, 2023
Merged

lib: add --no-experimental-global-navigator CLI flag#50562
nodejs-github-bot merged 2 commits into
nodejs:mainfrom
aduh95:flag-no-navigator

Conversation

@aduh95

Copy link
Copy Markdown
Contributor

Alternative to #50554 and #50412, in the hope we can get consensus on something.

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/startup
  • @nodejs/web-standards

@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. lib / src Issues and PRs related to general changes in the lib or src directory. needs-ci PRs that need a full CI run. process Issues and PRs related to the process subsystem. labels Nov 5, 2023
Comment threaddoc/api/cli.md

@mcollinamcollina left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@aduh95aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. request-ci Add this label to start a Jenkins CI on a PR. labels Nov 7, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 7, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Comment threadsrc/node_options.cc
kAllowedInEnvvar,
true);
AddOption("--experimental-global-navigator",
"expose experimental Navigator API on the global scope",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's the reason for adding this noop? It doesn't seem to be used, or mentioned in anywhere.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not a no-op, it's the flag being added; see the above one for an another example of such flag:

node/src/node_options.cc

Lines 389 to 393 in 3860002

AddOption("--experimental-global-customevent",
"expose experimental CustomEvent on the global scope",
&EnvironmentOptions::experimental_global_customevent,
kAllowedInEnvvar,
true);

That being said, it looks like I forgot to switch the default value to true

@aduh95aduh95 added the request-ci Add this label to start a Jenkins CI on a PR. label Nov 7, 2023
@github-actionsgithub-actionsBot removed the request-ci Add this label to start a Jenkins CI on a PR. label Nov 7, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

@GeoffreyBoothGeoffreyBooth added commit-queue Add this label to land a pull request using GitHub Actions. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. labels Nov 8, 2023
@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Nov 8, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 309c71a into nodejs:mainNov 8, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 309c71a

@aduh95
aduh95 deleted the flag-no-navigator branch November 8, 2023 18:57
targos pushed a commit that referenced this pull request Nov 11, 2023
PR-URL: #50562
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
@targostargos mentioned this pull request Nov 12, 2023
@targostargos added the semver-minor PRs that contain new features and should be released in the next minor version. label Nov 13, 2023
@targos

Copy link
Copy Markdown
Member

This is semver-minor. Collaborators, please think about adding the label in future pull requests. It will make the work of releasers easier.

targos added a commit that referenced this pull request Nov 13, 2023
Notable changes:
doc:
* add MrJithil to collaborators (Jithil P Ponnan) #50666
* add Ethan-Arrowood as a collaborator (Ethan Arrowood) #50393
esm:
* (SEMVER-MINOR) add import.meta.dirname and import.meta.filename (James Sumners) #48740
fs:
* add stacktrace to fs/promises (翠 / green) #49849
lib:
* (SEMVER-MINOR) add `--no-experimental-global-navigator` CLI flag (Antoine du Hamel) #50562
* (SEMVER-MINOR) add navigator.language & navigator.languages (Aras Abbasi) #50303
* (SEMVER-MINOR) add navigator.platform (Aras Abbasi) #50385
stream:
* (SEMVER-MINOR) add support for `deflate-raw` format to webstreams compression (Damian Krzeminski) #50097
* use Array for Readable buffer (Robert Nagy) #50341
* optimize creation (Robert Nagy) #50337
test_runner:
* (SEMVER-MINOR) adds built in lcov reporter (Phil Nash) #50018
* (SEMVER-MINOR) add Date to the supported mock APIs (Lucas Santos) #48638
test_runner, cli:
* (SEMVER-MINOR) add --test-timeout flag (Shubham Pandey) #50443
PR-URL: #50681
targos pushed a commit that referenced this pull request Nov 14, 2023
PR-URL: #50562
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
targos added a commit that referenced this pull request Nov 14, 2023
Notable changes:
doc:
* add MrJithil to collaborators (Jithil P Ponnan) #50666
* add Ethan-Arrowood as a collaborator (Ethan Arrowood) #50393
esm:
* (SEMVER-MINOR) add import.meta.dirname and import.meta.filename (James Sumners) #48740
fs:
* add stacktrace to fs/promises (翠 / green) #49849
lib:
* (SEMVER-MINOR) add `--no-experimental-global-navigator` CLI flag (Antoine du Hamel) #50562
* (SEMVER-MINOR) add navigator.language & navigator.languages (Aras Abbasi) #50303
* (SEMVER-MINOR) add navigator.platform (Aras Abbasi) #50385
stream:
* (SEMVER-MINOR) add support for `deflate-raw` format to webstreams compression (Damian Krzeminski) #50097
* use Array for Readable buffer (Robert Nagy) #50341
* optimize creation (Robert Nagy) #50337
test_runner:
* (SEMVER-MINOR) adds built in lcov reporter (Phil Nash) #50018
* (SEMVER-MINOR) add Date to the supported mock APIs (Lucas Santos) #48638
test_runner, cli:
* (SEMVER-MINOR) add --test-timeout flag (Shubham Pandey) #50443
PR-URL: #50681
targos added a commit that referenced this pull request Nov 14, 2023
Notable changes:
doc:
* add MrJithil to collaborators (Jithil P Ponnan) #50666
* add Ethan-Arrowood as a collaborator (Ethan Arrowood) #50393
esm:
* (SEMVER-MINOR) add import.meta.dirname and import.meta.filename (James Sumners) #48740
fs:
* add stacktrace to fs/promises (翠 / green) #49849
lib:
* (SEMVER-MINOR) add `--no-experimental-global-navigator` CLI flag (Antoine du Hamel) #50562
* (SEMVER-MINOR) add navigator.language & navigator.languages (Aras Abbasi) #50303
* (SEMVER-MINOR) add navigator.platform (Aras Abbasi) #50385
stream:
* (SEMVER-MINOR) add support for `deflate-raw` format to webstreams compression (Damian Krzeminski) #50097
* use Array for Readable buffer (Robert Nagy) #50341
* optimize creation (Robert Nagy) #50337
test_runner:
* (SEMVER-MINOR) adds built in lcov reporter (Phil Nash) #50018
* (SEMVER-MINOR) add Date to the supported mock APIs (Lucas Santos) #48638
test_runner, cli:
* (SEMVER-MINOR) add --test-timeout flag (Shubham Pandey) #50443
PR-URL: #50681
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.commit-queue-squashAdd this label to instruct the Commit Queue to squash all the PR commits into the first one.lib / srcIssues and PRs related to general changes in the lib or src directory.needs-ciPRs that need a full CI run.processIssues and PRs related to the process subsystem.semver-minorPRs that contain new features and should be released in the next minor version.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants

@aduh95@nodejs-github-bot@targos@mcollina@GeoffreyBooth@anonrig@richardlau@legendecas@Ethan-Arrowood