Skip to content

Commit ce6f785

Browse files
author
Luke
authored
Luke/2.6.1 release (#152)
1 parent 7d557b6 commit ce6f785

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ The format is based on [keep a changelog](http://keepachangelog.com/) and this p
88
### [2.6.1]
99

1010
### Added
11-
1211
- You can now pass a `onheartbeattimeout` to the socket which will be called directly when a heartbeat timeout occurs. It will also still call `ondisconnect` once the socket is closed (which can take a few seconds for some browsers).
1312

13+
### Fixed
14+
- Fixed a NodeJS compatibility issue by no longer depending on `XMLHttpRequest`.
1415

1516
### [2.6.0]
1617

packages/nakama-js-test/client-group.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,7 @@ describe('Group Tests', () => {
324324
const client2 = new nakamajs.Client();
325325
const session2 = await client2.authenticateCustom(customid2);
326326
await client2.joinGroup(session2, group.id!);
327-
await client1.promoteGroupUsers(session1, group.id!, [session2.user_id]);
327+
await client1.addGroupUsers(session1, group.id!, [session2.user_id]);
328328
return await client1.listUserGroups(session1, session1.user_id);
329329
}, customid1, customid2, group_name);
330330

@@ -424,7 +424,7 @@ describe('Group Tests', () => {
424424
const client2 = new nakamajs.Client();
425425
const session2 = await client2.authenticateCustom(customid2)
426426
await client2.joinGroup(session2, group.id!)
427-
await client1.promoteGroupUsers(session1, group.id!, [session2.user_id]);
427+
await client1.addGroupUsers(session1, group.id!, [session2.user_id]);
428428
return await client1.listGroupUsers(session1, group.id!);
429429
}, customid1, customid2, group_name);
430430

packages/nakama-js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@heroiclabs/nakama-js",
3-
"version": "2.6.0",
3+
"version": "2.6.1",
44
"scripts": {
55
"build": "npx tsc && npx rollup -c --bundleConfigAsCjs && node build.mjs"
66
},

0 commit comments

Comments
 (0)