From de2fe9a3819265948ba886e99651be03e00479f2 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 21 Apr 2026 09:13:13 -0700 Subject: [PATCH] feat!: Remove Twitter and Freenode profile fields BREAKING CHANGE: The Twitter and Freenode profile fields have been removed from the npm registry. This means that users will no longer be able to set or view these fields in their npm profiles. --- docs/lib/content/commands/npm-profile.md | 4 +--- lib/commands/profile.js | 4 ---- tap-snapshots/test/lib/commands/profile.js.test.cjs | 10 ---------- test/lib/commands/profile.js | 2 -- 4 files changed, 1 insertion(+), 19 deletions(-) diff --git a/docs/lib/content/commands/npm-profile.md b/docs/lib/content/commands/npm-profile.md index cc001aff499d4..f8cd1d327960d 100644 --- a/docs/lib/content/commands/npm-profile.md +++ b/docs/lib/content/commands/npm-profile.md @@ -22,15 +22,13 @@ email: e@example.com (verified) two-factor auth: auth-and-writes fullname: Example User homepage: -freenode: -twitter: github: created: 2015-02-26T01:38:35.892Z updated: 2017-10-02T21:29:45.922Z ``` * `npm profile set `: Set the value of a profile property. -You can set the following properties this way: email, fullname, homepage, freenode, twitter, github +You can set the following properties this way: email, fullname, homepage, github * `npm profile set password`: Change your password. This is interactive, you'll be prompted for your current password and a new password. diff --git a/lib/commands/profile.js b/lib/commands/profile.js index 926eb02f49c22..9417989cf318c 100644 --- a/lib/commands/profile.js +++ b/lib/commands/profile.js @@ -16,8 +16,6 @@ const knownProfileKeys = [ 'two-factor auth', 'fullname', 'homepage', - 'freenode', - 'twitter', 'github', 'created', 'updated', @@ -28,8 +26,6 @@ const writableProfileKeys = [ 'password', 'fullname', 'homepage', - 'freenode', - 'twitter', 'github', ] diff --git a/tap-snapshots/test/lib/commands/profile.js.test.cjs b/tap-snapshots/test/lib/commands/profile.js.test.cjs index 1fbb09de29f3c..255bd3abc4e51 100644 --- a/tap-snapshots/test/lib/commands/profile.js.test.cjs +++ b/tap-snapshots/test/lib/commands/profile.js.test.cjs @@ -40,8 +40,6 @@ created 2015-02-26T01:26:37.384Z updated 2020-08-12T16:19:35.326Z fullname Foo Bar homepage https://github.com -freenode foobar -twitter https://twitter.com/npmjs github https://github.com/npm ` @@ -51,8 +49,6 @@ email: foo@github.com (verified) two-factor auth: auth-and-writes fullname: Foo Bar homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs github: https://github.com/npm created: 2015-02-26T01:26:37.384Z updated: 2020-08-12T16:19:35.326Z @@ -64,8 +60,6 @@ email: foo@github.com (verified) two-factor auth: disabled fullname: Foo Bar homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs github: https://github.com/npm created: 2015-02-26T01:26:37.384Z updated: 2020-08-12T16:19:35.326Z @@ -77,8 +71,6 @@ email: foo@github.com (verified) two-factor auth: auth-and-writes fullname: Foo Bar homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs github: https://github.com/npm created: 2015-02-26T01:26:37.384Z updated: 2020-08-12T16:19:35.326Z @@ -91,8 +83,6 @@ email: foo@github.com(unverified) two-factor auth: auth-and-writes fullname: Foo Bar homepage: https://github.com -freenode: foobar -twitter: https://twitter.com/npmjs github: https://github.com/npm created: 2015-02-26T01:26:37.384Z updated: 2020-08-12T16:19:35.326Z diff --git a/test/lib/commands/profile.js b/test/lib/commands/profile.js index e11ab4c05fa6c..15c4d116f25d0 100644 --- a/test/lib/commands/profile.js +++ b/test/lib/commands/profile.js @@ -55,8 +55,6 @@ const userProfile = { cidr_whitelist: null, fullname: 'Foo Bar', homepage: 'https://github.com', - freenode: 'foobar', - twitter: 'https://twitter.com/npmjs', github: 'https://github.com/npm', }