node: warn for Object.prototype.__* accessors common in security warnings
These accessors cause too much noise in npm security audits for the ecosystem, we should start a path to removal. Figuring out/warning on usage seems a good first step prior to actual removal. This would also be a way to verify that a security audit warning actually is affecting something rather than being false positives. These are optional/legacy in the JS language specification https://tc39.es/ecma262/#sec-object.prototype-legacy-accessor-methods
Here is a relevant discussion: https://github.com/nodejs/node/issues/31951
CITGM results: https://ci.nodejs.org/job/citgm-smoker/nodes=ubuntu1804-64/2751/#showFailuresLink
Unfortunately, all modules that depend on node-gyp fail at install time because of another deprecation.
- Affects
ava,csv-parser,ember-clithrough an old version ofgraceful-fs - Affects
bluebirdthrough thecli-tablemodule: https://github.com/Automattic/cli-table/blob/89392b27224b6a0c4a71f3085d1bdb5e9b83df9d/lib/index.js#L62, https://github.com/Automattic/cli-table/blob/89392b27224b6a0c4a71f3085d1bdb5e9b83df9d/lib/index.js#L71 - Affects
body-parserthrough an old version ofchalk - Affects
clinicthroughtap-mocha-reporter: https://github.com/tapjs/tap-mocha-reporter/blob/5c8846fe3655aceb7ab104e5989b469b57601c00/lib/reporters/dot.js#L62 - Seems to affect Prettier's TypeScript parser, but I can't find where it is in Prettier's repository: https://ci.nodejs.org/job/citgm-smoker/nodes=ubuntu1804-64/2751/testReport/junit/(root)/citgm/cheerio_v1_0_0_rc_10/
- Affects
crc32-streamthrough some version ofyargs-parser - Affects
commanderthroughyargs: https://github.com/yargs/yargs/blob/395bb67749787d269cabe80ffc3133c2f6958aeb/index.cjs#L25-L43 - Affects
duplexer2,esprimathrough some version ofcommander - Affects
expressthroughcookie-session. The module is fixed but only in an alpha release.
I'm stopping here but there are many more.
@targos added a guard
@targos after some digging, a variety of those are all from the test reporter used: https://github.com/tapjs/tap-mocha-reporter/pull/68
we have patched some stuff in the wild, we should run CITGM again
https://github.com/tapjs/tap-mocha-reporter has landed a fix, we should be good to try a new CITGM to see what the status is in the ecosystem.
CITGM smoker running https://ci.nodejs.org/job/citgm-smoker/2863/
The last CITGM run reports 81 failures, which seems to be more or less the same as master. Maybe we could land this in v18.0.0?
@bmeck can you rebase please?
Have a newborn, won't be doing PR work for a few weeks
On Wed, Apr 6, 2022, 9:43 AM Antoine du Hamel @.***> wrote:
The last CITGM run reports 81 failures, which seems to be more or less the same as master. Maybe we could land this in v18.0.0?
@bmeck https://github.com/bmeck can you rebase please?
— Reply to this email directly, view it on GitHub https://github.com/nodejs/node/pull/39824#issuecomment-1090353490, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABZJI6MSA43X277Y32G53DVDWPHDANCNFSM5CQ7UVQQ . You are receiving this because you were mentioned.Message ID: @.***>
Congrats!
Was passing by here too. Nice one. Babies are so cute, and they don't have proto !