Skip to content
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

2.4.0 #97

Merged
merged 36 commits into from
Dec 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
96b679e
:arrow_up: (deps-dev): Bump @types/node from 16.11.12 to 16.11.13
dependabot[bot] Dec 15, 2021
c9f19b5
Merge pull request #87 from fnbrjs/dependabot/npm_and_yarn/types/node…
ThisNils Dec 15, 2021
71e0264
added getUserAvatar()
ThisNils Dec 15, 2021
c0edf69
Merge branch 'master' of https://github.com/fnbrjs/fnbr.js
ThisNils Dec 15, 2021
20c6b58
:arrow_up: (deps-dev): Bump @types/node from 16.11.13 to 17.0.0
dependabot[bot] Dec 16, 2021
7f94a03
Merge pull request #88 from fnbrjs/dependabot/npm_and_yarn/types/node…
ThisNils Dec 16, 2021
4180b08
generateExports
ThisNils Dec 17, 2021
edaa908
Merge branch 'master' of https://github.com/fnbrjs/fnbr.js
ThisNils Dec 17, 2021
3b21414
User#getAvatar()
ThisNils Dec 17, 2021
a6b2e98
changed return type for User#getAvatar()
ThisNils Dec 17, 2021
78579cf
changed return type for User#getBRAccountLevel()
ThisNils Dec 17, 2021
35574a0
Client#getGlobalProfile(), User#getGlobalProfile()
ThisNils Dec 18, 2021
20a69fe
:arrow_up: (deps-dev): Bump @types/node from 17.0.0 to 17.0.1
dependabot[bot] Dec 20, 2021
74e1989
:arrow_up: (deps-dev): Bump eslint from 8.4.1 to 8.5.0
dependabot[bot] Dec 20, 2021
7fd2549
Merge pull request #90 from fnbrjs/dependabot/npm_and_yarn/eslint-8.5.0
alextusinean Dec 20, 2021
3195a3f
Merge pull request #89 from fnbrjs/dependabot/npm_and_yarn/types/node…
alextusinean Dec 20, 2021
b980135
Fix Client#getProfile account not found error
taradinoc Dec 21, 2021
d18c960
:arrow_up: (deps-dev): Bump @typescript-eslint/parser
dependabot[bot] Dec 21, 2021
8d5ab8f
:arrow_up: (deps-dev): Bump @types/node from 17.0.1 to 17.0.2
dependabot[bot] Dec 21, 2021
59757bf
Merge pull request #95 from fnbrjs/dependabot/npm_and_yarn/types/node…
ThisNils Dec 21, 2021
155228a
Merge pull request #94 from fnbrjs/dependabot/npm_and_yarn/typescript…
ThisNils Dec 21, 2021
3272650
:arrow_up: (deps-dev): Bump @typescript-eslint/eslint-plugin
dependabot[bot] Dec 21, 2021
70ed072
Merge pull request #93 from fnbrjs/dependabot/npm_and_yarn/typescript…
ThisNils Dec 21, 2021
0d88f5e
Fixed party member emote issue
ThisNils Dec 21, 2021
c7ba8f6
fixed typos
ThisNils Dec 21, 2021
4ee0180
Waiting for party:member:updated on MEMBER_JOINED
ThisNils Dec 21, 2021
55dfb5c
Fix eslint warning
taradinoc Dec 21, 2021
01c9c2d
Merge pull request #92 from taradinoc/getprofile-notfound
ThisNils Dec 21, 2021
335d0fb
changed max chunk size for getBRStats()
ThisNils Dec 22, 2021
7291e39
GlobalProfile exports
ThisNils Dec 22, 2021
ddde1d6
:arrow_up: (deps-dev): Bump @types/node from 17.0.2 to 17.0.3
dependabot[bot] Dec 23, 2021
d479c16
Merge pull request #96 from fnbrjs/dependabot/npm_and_yarn/types/node…
ThisNils Dec 23, 2021
e64c736
checkFriendOfferOwnership()
ThisNils Dec 23, 2021
31466a2
Merge branch 'master' of https://github.com/fnbrjs/fnbr.js
ThisNils Dec 23, 2021
33a5a56
updated exports
ThisNils Dec 23, 2021
61a93e0
updated changelog and package.json for v2.4.0
ThisNils Dec 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,3 @@ docs.json

# Testing scripts
test.js
generateExports.js
32 changes: 28 additions & 4 deletions docs/general/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,29 @@
# Changelog

## 2.4.0

### Additions
* Global Profile
* Added `Client#getGlobalProfile()` and `User#getGlobalProfile()`
* Avatars
* Added `Client#getUserAvatar()` and `User#getAvatar()`
* Friend Offer Ownership
* Added `Client#checkFriendOfferOwnership()` and `Friend#checkOfferOwnership()`

### Changes
* Party Member Properties
* The client will now wait for a member update message before `Client#party:member:joined` is being emitted
* Battle Royale Account Level
* **(Breaking)** `User#getBRAccountLevel()` will now return the account level data directly, instead of an array with one entry

### Fixes
* Multiple Display Name Lookups
* `Client#getProfile()` will no longer throw an error if one of the user display name lookups fail
* Party Member Emote
* Trying to access `PartyMember#emote` will no longer throw an error if an emote is not set

<hr>

## 2.3.0

### Additions
Expand Down Expand Up @@ -188,7 +212,7 @@

### Fixes
* Parties
* Fixed "outdated version" bug that occured when a user tried to join the client's party
* Fixed "outdated version" bug that occurred when a user tried to join the client's party

<hr>

Expand Down Expand Up @@ -232,7 +256,7 @@
* Fixed XMPP reconnection error (Thanks to [Théo](https://discord.com/users/448882532830674948) for reporting it)
* The XMPP client will now use a new resource string each time you restart the client
* Presences
* Fixed issue that occured when sending a status (presence) to a single friend
* Fixed issue that occurred when sending a status (presence) to a single friend
* Client Methods
* Fixed `Client#getNews()` returning an empty array sometimes
* The client will now ignore errors on shutdown
Expand All @@ -258,7 +282,7 @@

### Fixes
* Parties
* Fixed error that occured when the client accepted another bot's invites
* Fixed error that occurred when the client accepted another bot's invites
* Trying to join a party which the client previously got kicked from now throws an error
* The client now handles user_has_party when trying to join a party
* Fixed some bugs related to party invites
Expand Down Expand Up @@ -288,7 +312,7 @@

### Fixes
* Parties
* Fixed error that occured when the client got kicked from its party
* Fixed error that occurred when the client got kicked from its party
* Fixed accepting party invites & joining parties

<hr>
Expand Down
24 changes: 24 additions & 0 deletions generateExports.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const fs = require('fs').promises;

(async () => {
let output = '';

output += '// main exports\nexport { default as Client } from \'./src/client/Client\';\n'
+ 'export { default as Enums } from \'./enums/Enums\';\n\n// types and interfaces\nexport * from \'./resources/structs\';\n';

output += '\n// exceptions\n';
const exceptions = await fs.readdir('./src/exceptions');
exceptions.forEach((file) => {
const fileWithoutExtension = file.split('.')[0];
output += `export { default as ${fileWithoutExtension} } from './src/exceptions/${fileWithoutExtension}';\n`;
});

output += '\n// structures\n';
const structures = await fs.readdir('./src/structures');
structures.forEach((file) => {
const fileWithoutExtension = file.split('.')[0];
output += `export { default as ${fileWithoutExtension} } from './src/structures/${fileWithoutExtension}';\n`;
});

await fs.writeFile('./index.ts', output);
})();
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export { default as InviteeFriendshipSettingsError } from './src/exceptions/Invi
export { default as InviteeFriendshipsLimitExceededError } from './src/exceptions/InviteeFriendshipsLimitExceededError';
export { default as InviterFriendshipsLimitExceededError } from './src/exceptions/InviterFriendshipsLimitExceededError';
export { default as MatchNotFoundError } from './src/exceptions/MatchNotFoundError';
export { default as OfferNotFoundError } from './src/exceptions/OfferNotFoundError';
export { default as PartyAlreadyJoinedError } from './src/exceptions/PartyAlreadyJoinedError';
export { default as PartyInvitationExpiredError } from './src/exceptions/PartyInvitationExpiredError';
export { default as PartyMaxSizeReachedError } from './src/exceptions/PartyMaxSizeReachedError';
Expand All @@ -29,6 +30,7 @@ export { default as StatsPrivacyError } from './src/exceptions/StatsPrivacyError
export { default as UserNotFoundError } from './src/exceptions/UserNotFoundError';

// structures
export { default as Avatar } from './src/structures/Avatar';
export { default as BaseFriendMessage } from './src/structures/BaseFriendMessage';
export { default as BaseMessage } from './src/structures/BaseMessage';
export { default as BasePartyInvitation } from './src/structures/BasePartyInvitation';
Expand All @@ -43,6 +45,7 @@ export { default as ClientUser } from './src/structures/ClientUser';
export { default as CreatorCode } from './src/structures/CreatorCode';
export { default as Friend } from './src/structures/Friend';
export { default as FriendPresence } from './src/structures/FriendPresence';
export { default as GlobalProfile } from './src/structures/GlobalProfile';
export { default as IncomingPendingFriend } from './src/structures/IncomingPendingFriend';
export { default as OutgoingPendingFriend } from './src/structures/OutgoingPendingFriend';
export { default as Party } from './src/structures/Party';
Expand Down
Loading