-
-
Notifications
You must be signed in to change notification settings - Fork 158
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
v5 #450
v5 #450
Conversation
What do you think about moving to TypeScript? Is this possible in future versions? |
I do intend to move to TypeScript at some point, but it shouldn't be a breaking change so no need to rush it here. Sadly I don't think it's going to help with the inheritance madness since I'm not aware of any way to split a class into multiple files using TS either. v5 is kind of an expedited thing since protobufjs has a significant security vulnerability which is only fixed in protobufjs v7, and updating that dependency is a breaking change since it drops support for node 8-12. |
Am i right, the only problem with inheritance - intellisense that not picking up on methods? |
Perhaps that works, though I'd have to go back and change everything back to using the old prototype syntax, which I don't think is really desirable. |
|
||
let transport = new CMAuthTransport(this); | ||
let session = new LoginSession(EAuthTokenPlatformType.SteamClient, {transport}); | ||
let session = this._getLoginSession(); | ||
session.refreshToken = this._logOnDetails.access_token; | ||
session.getWebCookies().then((cookies) => { | ||
if (!cookies.some(c => c.startsWith('sessionid='))) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since version 1.3.0 node-steam-session always return sessionid
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't hurt anything to double check.
Looks like all todo's complete. |
I want to test it a little more. If you want to install from the branch and test it yourself with your code, that would help. |
I tested v5 a few days after your last comment. Looks pretty stable, no issues found. But I don't test new features like Tested on node v20 |
# Conflicts: # components/09-logon.js # package.json
Migration Guide
Breaking
setSentry()
sentry
loginKey
andrememberPassword
Other Changes
refreshToken
eventrenewRefreshTokens
optionTo Do
setSentry()
sentry
event