-
Notifications
You must be signed in to change notification settings - Fork 29
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
Fix locationType deprecations. #2721
base: main
Are you sure you want to change the base?
Conversation
… before setting configuration
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Thank you for cleaning this up, great catch!!
this doesn't really affect anything but we should probably still clean-up this 'auto' usage too
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.
Thank u for fixing this!
Great catch!! Not that I am looking to put effort in rose, since we know eventually we want to deprecate it, but this one I agree with you takes no time to fix it, so I pushed the change! thanks for the catch @lisbet-alvarez |
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.
Looks great!!
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.
good catch! thanks for the cleaning this up
Description
Within Desktop Client, we never deprecated auto location, more info about this deprecation here. Therefore, when running the DC in the browser we were seeing 2 deprecations messages:
auto
as value has been deprecated. So onlyhash
orhistory
are accepted.locationType
setting.To solve 1, we decide to change
auto
to usehistory
. As per documentation,auto
will useshistory
if supported by the browsers and fallback tohash
if not. Since we are pretty sure the browser used by electron supportshistory
, is safe to directly useshistory
.To solve 2, we decide to set a const with the value before we are setting the environment config, therefore at setting time the variable has already a value.
Screenshots:
Before, showing deprecation messages:

After, showing no deprecation messages
