Skip to content

Commit 2397196

Browse files
author
Michael Smith
committed
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.
1 parent 27567ab commit 2397196

4 files changed

Lines changed: 1 addition & 19 deletions

File tree

‎docs/lib/content/commands/npm-profile.md‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,13 @@ email: e@example.com (verified)
2222
two-factor auth: auth-and-writes
2323
fullname: Example User
2424
homepage:
25-
freenode:
26-
twitter:
2725
github:
2826
created: 2015-02-26T01:38:35.892Z
2927
updated: 2017-10-02T21:29:45.922Z
3028
```
3129

3230
* `npm profile set <property> <value>`: Set the value of a profile property.
33-
You can set the following properties this way: email, fullname, homepage, freenode, twitter, github
31+
You can set the following properties this way: email, fullname, homepage, github
3432

3533
* `npm profile set password`: Change your password.
3634
This is interactive, you'll be prompted for your current password and a new password.

‎lib/commands/profile.js‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ const knownProfileKeys = [
1616
'two-factor auth',
1717
'fullname',
1818
'homepage',
19-
'freenode',
20-
'twitter',
2119
'github',
2220
'created',
2321
'updated',
@@ -28,8 +26,6 @@ const writableProfileKeys = [
2826
'password',
2927
'fullname',
3028
'homepage',
31-
'freenode',
32-
'twitter',
3329
'github',
3430
]
3531

‎tap-snapshots/test/lib/commands/profile.js.test.cjs‎

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ created 2015-02-26T01:26:37.384Z
4040
updated 2020-08-12T16:19:35.326Z
4141
fullname Foo Bar
4242
homepage https://github.com
43-
freenode foobar
44-
twitter https://twitter.com/npmjs
4543
github https://github.com/npm
4644
`
4745

@@ -51,8 +49,6 @@ email: foo@github.com (verified)
5149
two-factor auth: auth-and-writes
5250
fullname: Foo Bar
5351
homepage: https://github.com
54-
freenode: foobar
55-
twitter: https://twitter.com/npmjs
5652
github: https://github.com/npm
5753
created: 2015-02-26T01:26:37.384Z
5854
updated: 2020-08-12T16:19:35.326Z
@@ -64,8 +60,6 @@ email: foo@github.com (verified)
6460
two-factor auth: disabled
6561
fullname: Foo Bar
6662
homepage: https://github.com
67-
freenode: foobar
68-
twitter: https://twitter.com/npmjs
6963
github: https://github.com/npm
7064
created: 2015-02-26T01:26:37.384Z
7165
updated: 2020-08-12T16:19:35.326Z
@@ -77,8 +71,6 @@ email: foo@github.com (verified)
7771
two-factor auth: auth-and-writes
7872
fullname: Foo Bar
7973
homepage: https://github.com
80-
freenode: foobar
81-
twitter: https://twitter.com/npmjs
8274
github: https://github.com/npm
8375
created: 2015-02-26T01:26:37.384Z
8476
updated: 2020-08-12T16:19:35.326Z
@@ -91,8 +83,6 @@ email: foo@github.com(unverified)
9183
two-factor auth: auth-and-writes
9284
fullname: Foo Bar
9385
homepage: https://github.com
94-
freenode: foobar
95-
twitter: https://twitter.com/npmjs
9686
github: https://github.com/npm
9787
created: 2015-02-26T01:26:37.384Z
9888
updated: 2020-08-12T16:19:35.326Z

‎test/lib/commands/profile.js‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,6 @@ const userProfile = {
5555
cidr_whitelist: null,
5656
fullname: 'Foo Bar',
5757
homepage: 'https://github.com',
58-
freenode: 'foobar',
59-
twitter: 'https://twitter.com/npmjs',
6058
github: 'https://github.com/npm',
6159
}
6260

0 commit comments

Comments
 (0)