Releases: noblox/noblox.js
v6.0.2: Update typings for getAuthenticatedUser
We missed the TS Typing when this was originally added. This patch fixes it.
π¨ACTION REQUIRED - See the v6.0.1 release notes.
v6.0.1
ACTION REQUIRED BY AUGUST 27, 2024 - UPDATE TO LATEST OR DISABLE COOKIE VALIDATION
π¨ BREAKING ROBLOX API CHANGE | MANDATORY UPDATE:
getCurrentUser()
calls https://www.roblox.com/mobileapi/userinfo which is being deprecated August 27, 2024. This method is used by setCookie()
to validate the cookie - following this change, getAuthenticatedUser()
will be used instead which has a different return schema.
Failure to take action by August 27th, 2024 will cause a runtime error and your cookie fail report as invalid / return no user object.
See https://devforum.roblox.com/t/official-list-of-deprecated-web-endpoints/62889/66
β Action Steps:
- Update
noblox.js
to v6.0.1 (recommended) or disable cookie validation fromsetCookie
viasetCookie(ROBLOX_COOKIE, false)
- Replace references to
getCurrentUser()
or objects saved fromsetCookie
withgetAuthenticatedUser()
,getUserFunds()
,getPlayerThumbnail()
orgetPremium()
Disabling Deprecation Warnings
As part of this release, deprecation messages have been added to notify users of changes to the getCurrentUser()
method. These messages will appear both as console output and within the method's return value to indicate that the method is deprecated.
If you wish to suppress these warnings in your console, you can opt out by setting the following option:
noblox.setOptions({ show_deprecation_warnings: false });
See #824 for more information.
setCookie
modified return value
BEFORE:
// @see https://noblox.js.org/global.html#LoggedInUserData
{
"UserID": 2416399685, // use getAuthenticatedUser() instead
"UserName": "nobIoxjs", // use getAuthenticatedUser() instead
"RobuxBalance": 0, // use getUserFunds() instead
"ThumbnailUrl": "https://tr.rbxcdn.com/30DAY-Avatar-ED50D6AA9232B1E4A3DEC2F4AACC8FA9-Png/352/352/Avatar/Webp/noFilter", // use getPlayerThumbnail() instead
"IsAnyBuildersClubMember": false, // always returns false
"IsPremium": false // use getPremium instead
}
AFTER:
// @see https://noblox.js.org/global.html#AuthenticatedUserData
{
"id": 2416399685,
"name": "nobIoxjs",
"displayName": "nobIoxjs"
}
--
NOTE:
getCurrentUser()
is now deprecated and has been polyfilled to return the same response after August 27, 2024
Calls to getCurrentUser()
will now consume 4 API calls which is inherently slower and has a greater performance impact - we strongly recommend migrating to the subcalls that are applicable to your usecase:
π₯³ New Features
getUserFunds()
has been added as a new method by @alanbixby in #824; it will report the authenticated user's robux balance
π Unused dependencies have been removed from the package and replaced with modern equivalents.
- Dependency Cleanup: Removed old
signalr-client
andprogress
dependencies in #823 - Linting: The project now uses
standard
directly for linting in #823
Authors
- Alan Bixby (@alanbixby)
- Josh (@Neztore
Full Changelog: v5.0.0...v6.0.1
v5.0.1: As v5
This is a big release - we're back!
The package at version v5.0.0 is taken by a past error and cannot be unpublished from NPM. Use v5.0.1 onwards - v5 and v5.0.1 on github releases are identical, but different on NPM.
Welcome to our new contributors. It's great to have you on board.
π₯ Breaking Change
- We now require node v
18.18
. v18 is the oldest LTS, so you should be on it anyway - and v18.18 is required by our eslint dependency.- Dropping support for old node versions means we can use newer features, like native fetch, to make the library better.
- Remove checkDeveloperProductName reference from addDeveloperPoduct (redundant and deprecated) #814 (@alanbixby)
- Update dependencies and minimum node version requirements #817 (@Neztore)
π Bug Fix
- Fix configureGamePass #813 (@Regalijan)
- Version bump - GH Actions #819 (@Neztore)
- Switch userinfo endpoint #807 (@Regalijan @Neztore)
- Upgrade to maintained fork of request #810 (@sqikerz)
- Bump ws from 7.5.9 to 7.5.10 #812 (@dependabot[bot])
- Bump braces from 3.0.2 to 3.0.3 #811 (@dependabot[bot])
- Fix tests #816 (@Neztore)
- Add manual test workflow to see if the repo cookies still work #815 (@Neztore)
- Fix getCurrentUser redirect error for localized languages #809 (@alanbixby)
- Run the linting action on pull requests #805 (@Regalijan)
- Added postToTopic() for MessagingService needs #793 (@commonly-ts)
- Fix yarn lockfile #804 (@Regalijan)
- Fix linting in onNotification #803 (@Regalijan)
- Replace 'fs' dependency with static imports for cross compatibility with Deno/Bun #802 (@alanbixby)
- Remove FUNDING.yml #799 (@Neztore)
- Return more information than "not logged in" for getConversations #797 (@Regalijan)
- Bump es5-ext from 0.10.53 to 0.10.63 #781 (@dependabot[bot])
- Remove threaded.js and maxThreads #794 (@nottisa)
- Lint #779 (@Neztore)
- Fix addDeveloperProduct not returning a product id #751 (@iamEvanYT @Neztore)
- Update updateDeveloperProduct function to new 'apis.' endpoint; removes iconImageAssetId parameter (needs new method call) #778 (@alanbixby)
π Internal
- Fix CSRF auto refreshing #801 (@Regalijan)
π© Dependency Updates
- Removed token parameter which prevented the function from respecting custom parameter values #792 (@AEW745)
Authors: 9
- @AEW745
- @dependabot[bot]
- @nottisa
- Alan Bixby (@alanbixby)
- Commonly (@commonly-ts)
- Evan (@iamEvanYT)
- Josh (@Neztore)
- Regalijan (@Regalijan)
- Spikers (@sqikerz)
New Contributors
v5.0.0: Switch to maintained request library and more
π₯ Breaking Change
- We now require node v
18.18
. v18 is the oldest LTS, so you should be on it anyway - and v18.18 is required by our eslint dependency.- Dropping support for old node versions means we can use newer features, like native fetch, to make the library better.
- Remove checkDeveloperProductName reference from addDeveloperPoduct (redundant and deprecated) #814 (@alanbixby)
- Update dependencies and minimum node version requirements #817 (@Neztore)
π Bug Fix
- Fix configureGamePass #813 (@Regalijan)
- Version bump - GH Actions #819 (@Neztore)
- Switch userinfo endpoint #807 (@Regalijan @Neztore)
- Upgrade to maintained fork of request #810 (@sqikerz)
- Bump ws from 7.5.9 to 7.5.10 #812 (@dependabot[bot])
- Bump braces from 3.0.2 to 3.0.3 #811 (@dependabot[bot])
- Fix tests #816 (@Neztore)
- Add manual test workflow to see if the repo cookies still work #815 (@Neztore)
- Fix getCurrentUser redirect error for localized languages #809 (@alanbixby)
- Run the linting action on pull requests #805 (@Regalijan)
- Added postToTopic() for MessagingService needs #793 (@commonly-ts)
- Fix yarn lockfile #804 (@Regalijan)
- Fix linting in onNotification #803 (@Regalijan)
- Replace 'fs' dependency with static imports for cross compatibility with Deno/Bun #802 (@alanbixby)
- Remove FUNDING.yml #799 (@Neztore)
- Return more information than "not logged in" for getConversations #797 (@Regalijan)
- Bump es5-ext from 0.10.53 to 0.10.63 #781 (@dependabot[bot])
- Remove threaded.js and maxThreads #794 (@nottisa)
- Lint #779 (@Neztore)
- Fix addDeveloperProduct not returning a product id #751 (@iamEvanYT @Neztore)
- Update updateDeveloperProduct function to new 'apis.' endpoint; removes iconImageAssetId parameter (needs new method call) #778 (@alanbixby)
π Internal
- Fix CSRF auto refreshing #801 (@Regalijan)
π© Dependency Updates
- Removed token parameter which prevented the function from respecting custom parameter values #792 (@AEW745)
Authors: 9
- @AEW745
- @dependabot[bot]
- @nottisa
- Alan Bixby (@alanbixby)
- Commonly (@commonly-ts)
- Evan (@iamEvanYT)
- Josh (@Neztore)
- Regalijan (@Regalijan)
- Spikers (@sqikerz)
New Contributors
v4.15.1: Fix onAuditLog
What's Changed
- Fixed onAuditLog not working by @commonly-ts in #772
- Bump semver from 5.7.1 to 5.7.2 by @dependabot in #769
New Contributors
- @commonly-ts made their first contribution in #772
Full Changelog: v4.15.0...v4.15.1
v4.15.0: getGameRevenue, getGamePassProductInfo, and bugfixes
Two new methods, lots of documentation fixes, and some bug fixes.
Happy Halloween! ππ¦
What's Changed
- Correctly use number for userId by @suufi in #686
- Bump auto from 10.37.1 to 10.37.6 by @dependabot in #622
- Check for existence of shout before parsing dates by @Regalijan in #685
- Bump figlet from 1.5.2 to 1.6.0 by @dependabot in #696
- Bump json5 from 2.2.1 to 2.2.3 by @dependabot in #695
- Update Docs getUniverseInfo() by @jake-baxter in #698
- Append 'javascript' to code block markdown in tutorials by @WaviestBalloon in #699
- Bump cheerio from 1.0.0-rc.11 to 1.0.0-rc.12 by @dependabot in #585
- Added getGameRevenue by @GoldenJayz in #600
- Bump entities from 4.4.0 to 4.5.0 by @dependabot in #697
- Bump @auto-it/conventional-commits from 10.43.0 to 10.45.0 by @dependabot in #701
- Bump auto from 10.43.0 to 10.45.0 by @dependabot in #700
- Bump @auto-it/conventional-commits from 10.45.0 to 10.46.0 by @dependabot in #706
- Bump auto from 10.45.0 to 10.46.0 by @dependabot in #705
- Bump cheerio from 1.0.0-rc.11 to 1.0.0-rc.12 by @dependabot in #704
- Bump eslint-plugin-jest from 27.2.1 to 27.2.2 by @dependabot in #725
- Bump word-wrap from 1.2.3 to 1.2.4 by @dependabot in #735
- Fix onAuditLog by @Neztore in #707
- Add getGamePassProductInfo() by @Regalijan in #655
- Fix addDeveloperProduct by @TomerJ in #710
- Bump eslint-plugin-import from 2.27.5 to 2.28.0 by @dependabot in #740
- Bump @babel/traverse from 7.16.10 to 7.23.2 by @dependabot in #764
- Remove dependabot updates by @Neztore in #768
- Fix getWall typings by @zachariapopcorn in #744
- Add getPlaceInfo() by @realCartar in #714
New Contributors
- @Regalijan made their first contribution in #685
- @jake-baxter made their first contribution in #698
- @WaviestBalloon made their first contribution in #699
- @GoldenJayz made their first contribution in #600
- @TomerJ made their first contribution in #710
- @zachariapopcorn made their first contribution in #744
- @realCartar made their first contribution in #714
Full Changelog: v4.14.0...v4.15.0
v4.14.0: Reorganization, new endpoints, Open Cloud, and unit tests
A year later, an official version has been published with a number of changes. Happy 2023 (3 months late)!
Change Log
π Documentation
- docs: Add tutorial for remote cookie retrieval to address IP locking by @alanbixby in #547
- Add error handling to event docs by @Neztore in #583
- Adding await to uploadItem to JSDoc function example by @athammer in #556
- Fix getConversations docs. by @Sightem in #654
π Internal
- Internal reorganization of endpoints such that they are under their subdomain listing (if possible) #587
- Fix
FriendRequest
type by @siim0n in #630 - Improve unit test cases by adding more specificity and more functions by @suufi in #587
getBlurb
returns results without HTML parsing by @suufi in #587- Update description for package and add @alanbixby as maintainer by @suufi in #587
π Changes
New Functions
- Add
getThumbnails.js
by @popeeyy in #566 - Add
deleteWallPostsByUser.js
by @GestaIt in #608 - Add Open Cloud functions by @suufi in #587
- Add
setAPIKey.js
- Add
deleteDatastoreEntry.js
- Add
getDatastoreEntry.js
- Add
getDatastoreEntryVersions.js
- Add
getDatastoreKeys.js
- Add
getDatastores.js
- Add
incrementDatstoreEntry.js
- Add
setDatastoreEntry.js
- Add
Enhancements
- Fix
getGameInstances
by @popeeyy in #566 - Draft fixes for #579 by @Chosey98 in #589
- Uses Date objects for created and updated properties by @suufi in #587
- getIdFromUsername can now return multiple IDs if provided multiple usernames (backward compatible) by @suufi in #587
π© Dependency Updates
- Bump auto from 10.32.6 to 10.36.5 by @dependabot in #551
- Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #554
- Bump @auto-it/conventional-commits from 10.32.6 to 10.37.0 by @dependabot in #573
- Bump cheerio from 1.0.0-rc.10 to 1.0.0-rc.11 by @dependabot in #572
- Bump dotenv from 16.0.0 to 16.0.1 by @dependabot in #568
- Bump eslint-plugin-jest from 26.1.1 to 26.2.2 by @dependabot in #569
- Bump auto from 10.36.5 to 10.37.0 by @dependabot in #571
- Bump entities from 3.0.1 to 4.3.0 by @dependabot in #560
- Bump jest from 27.5.1 to 28.1.0 by @dependabot in #567
- Bump eslint-plugin-import from 2.25.4 to 2.26.0 by @dependabot in #557
- Bump standard from 16.0.4 to 17.0.0 by @dependabot in #561
- Bump jest from 28.1.0 to 28.1.1 by @dependabot in #582
- Bump eslint-plugin-jest from 26.2.2 to 26.5.3 by @dependabot in #581
- Bump @auto-it/conventional-commits from 10.37.0 to 10.37.1 by @dependabot in #577
- Bump auto from 10.37.0 to 10.37.1 by @dependabot in #576
- Bump @auto-it/conventional-commits from 10.37.1 to 10.37.6 by @dependabot in #623
- Bump entities from 4.3.0 to 4.4.0 by @dependabot in #616
- Bump dotenv from 16.0.1 to 16.0.3 by @dependabot in #626
- Bump json5 from 1.0.1 to 1.0.2 by @dependabot in #657
- Bump eslint-plugin-jest from 26.5.3 to 27.2.1 by @dependabot in #658
- Bump eslint-plugin-import from 2.26.0 to 2.27.5 by @dependabot in #661
- Bump jest from 28.1.1 to 29.5.0 by @dependabot in #683
- Bump @auto-it/conventional-commits from 10.37.6 to 10.43.0 by @dependabot in #680
Contributors
New Contributors
- @athammer made their first contribution in #556
- @GestaIt made their first contribution in #608
- @siim0n made their first contribution in #630
- @Astrism made their first contribution in #639
- @Sightem made their first contribution in #654
Authors
- @dependabot
- @Neztore
- @suufi
- @alanbixby
- @popeeyy
- @Chosey98
- @GestaIt
- @siim0n
- @Sightem
- @Astrism
- @athammer
Full Changelog: v4.13.1...v4.14.0
v4.12.0: uploadAnimation, searchGroups & Bug fixes
π Enhancement
- Add uploadAnimation & getGroupAssets #394 (@popeeyy @Neztore @suufi)
- Implement searchGroups #404 (@Neztore @suufi)
π Bug Fix
- Fix overloaded jar in CSRF and wss based methods #419 (@alanbixby @suufi @Neztore)
- Fix configureItem part 2 #415 (@policetonyR @alanbixby @suufi)
- Fix typo that is causing errors #413 (@policetonyR @suufi)
- Typings updates - Add displayName #393 (@Neztore @alanbixby)
- Implement auto release #405 (@suufi)
- Implement updateUniverseAccess() #396 (@alanbixby)
- Deprecate the follow method & update test functions #391 (@suufi)
- Fix minor spelling mistake on the Docs. #388 (@BillyH-0167 @Neztore)
- Simplify jar overloading by permitting string inputs #376 (@alanbixby @Neztore)
- Fix clear shout optional parameter #386 (@alanbixby)
- Implement resale endpoints #367 (@alanbixby @suufi)
- Document deleteFromInventory, configureItem parameters #370 (@alanbixby @suufi)
- Add displayNames support to getPlayerInfo() #372 (@alanbixby @suufi)
π Internal
- Try GITHUB_TOKEN (@Neztore)
- Rename GitHub token env. variable (@suufi)
- Use GH_TOKEN instead of GITHUB_TOKEN for auto #414 (@suufi)
π© Dependency Updates
- Bump figlet from 1.5.0 to 1.5.2 #409 (@dependabot[bot] @suufi)
- Bump @auto-it/conventional-commits from 10.30.0 to 10.31.0 #411 (@dependabot[bot])
- Bump auto from 10.30.0 to 10.31.0 #412 (@dependabot[bot])
- Bump eslint from 7.31.0 to 7.32.0 #401 (@dependabot[bot] @alanbixby)
- Bump chalk from 4.1.1 to 4.1.2 #402 (@dependabot[bot])
- Bump eslint-plugin-jest from 24.3.7 to 24.4.0 #395 (@dependabot[bot])
- Bump eslint from 7.30.0 to 7.31.0 #389 (@dependabot[bot])
- Bump eslint-plugin-jest from 24.3.6 to 24.3.7 #392 (@dependabot[bot])
- Bump eslint from 7.29.0 to 7.30.0 #378 (@dependabot[bot])
- Bump jest from 27.0.5 to 27.0.6 #374 (@dependabot[bot])
- Bump jest from 27.0.4 to 27.0.5 #369 (@dependabot[bot])
- Bump eslint from 7.28.0 to 7.29.0 #368 (@dependabot[bot])
- Bump eslint-plugin-jest from 24.4.0 to 24.4.2 #426 (@dependabot[bot] @Neztore)
- Bump tmpl from 1.0.4 to 1.0.5 #428 (@dependabot[bot] @Neztore)
- Bump nth-check from 2.0.0 to 2.0.1 #430 (@dependabot[bot] @Neztore)
- Bump jest from 27.1.0 to 27.1.1 #422 (@dependabot[bot] @suufi)
- Bump eslint-plugin-import from 2.24.1 to 2.24.2 #420 (@dependabot[bot])
- Bump eslint-plugin-import from 2.24.0 to 2.24.1 #416 (@dependabot[bot] @suufi)
- Bump path-parse from 1.0.6 to 1.0.7 #410 (@dependabot[bot])
- Bump entities from 2.2.0 to 3.0.1 #408 (@dependabot[bot])
- Bump eslint-plugin-import from 2.23.4 to 2.24.0 #407 (@dependabot[bot])
- Bump auto from 10.31.0 to 10.32.0 #424 (@dependabot[bot])
- Bump @auto-it/conventional-commits from 10.31.0 to 10.32.0 #425 (@dependabot[bot] @Neztore)
- Bump jest from 27.1.1 to 27.2.1 #427 (@dependabot[bot] @Neztore)
- Bump jest from 27.0.6 to 27.1.0 #421 (@dependabot[bot])
Authors: 7
- @dependabot[bot]
- @Neztore
- @suufi
- Alan Bixby (@alanbixby)
- BillyH (@BillyH-0167)
- popeeyy (@popeeyy)
- Tony (@policetonyR)
This should be the last of our manual releases. The versioning is due to our new auto-releaser getting a little confused.
v4.8.6: Method updates, documentation changes, and other fixes
v4.8.6 involves a lot of documentation changes, dependency updates, and method updates.
Method updates:
- Implement
canManage
(#350) - Implement
getGroupGames
(#345) - Implement
getGroupRevenueSummary
(#349) - Implement
getJoinRequest
- Implement
setOptions
(#361) - Implement social link methods (#366)
- Improve error handling on
unblock.js
(#305) - Favor role.id over Role.ID with backwards compatibility (#311)
- Set
defaultDelay
&onAuditLog
delays at 10000ms (#355)
Documentation updates:
- Transition to the
noblox
organization and adjust links accordingly (#339) - Update noblox.js-server link to use organization's
- Add authenticationRequirements for methods (#343)
- Update bracketed arrays for better documentation (#363)
- Examples, documentation, and typings were updated in other PRs (#303, #309, #318)
+ dependency updates
v4.8.5: Method updates, dependency updates, and minor changes
v4.8.5 corrects some broken things and introduces some new features as well as minor changes.
βββββββββββ
- Remove the cookie refresh warnings
- Add YouTube series URL to the README.md
Method Updates: