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

Deprecation warnings on Ember 3.9 #1799

Closed
richard-viney opened this issue Apr 2, 2019 · 18 comments
Closed

Deprecation warnings on Ember 3.9 #1799

richard-viney opened this issue Apr 2, 2019 · 18 comments

Comments

@richard-viney
Copy link
Contributor

On Ember 3.9:

DEPRECATION: Setting a computed property as volatile has been deprecated. Instead, consider using a native getter with native class syntax. [deprecation id: computed-property.volatile] See https://emberjs.com/deprecations/v3.x#toc_computed-property-volatile for more details.

@marcoow
Copy link
Member

marcoow commented Apr 3, 2019

Yes, this should be refactored 👍

@richard-viney
Copy link
Contributor Author

Looking at https://github.com/emberjs/rfcs/blob/master/text/0370-deprecate-computed-volatile.md it suggests that fixing this deprecation will require transitioning to native classes. However, after looking at the three places volatiles are used in this addon, I think they can just be turned into function calls?

This would be a public API change on BaseAuthenticator.tokenRefreshOffset, the other two places are in private APIs.

@richard-viney
Copy link
Contributor Author

It looks like there's also a deprecation warning from computed-property.override due to _isFastBoot sometimes being set to false but having a default initialisation of reads('_fastBoot.isFastBoot').

@josemarluedke
Copy link
Contributor

Hitting this as well. Just installed the addon and got this deprecation.

@wallacyalva
Copy link

the same happens to me

backspace added a commit to backspace/ember-simple-auth that referenced this issue May 11, 2019
backspace added a commit to backspace/ember-simple-auth that referenced this issue May 11, 2019
backspace added a commit to backspace/ember-simple-auth that referenced this issue May 11, 2019
@chrism
Copy link
Contributor

chrism commented May 13, 2019

Hi, I'm getting two deprecations mentioned in the original post and another one relating to _isFastBoot.

DEPRECATION: The <(unknown):ember196>#_isFastBoot computed property was just overriden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually. [deprecation id: computed-property.override] See https://emberjs.com/deprecations/v3.x#toc_computed-property-override for more details.

Thanks.

@charuwts
Copy link

Excited to see these being addressed, is there a status on when ESA will have a release with these fixes?

@jordpo
Copy link

jordpo commented May 29, 2019

having the same issue with the deprecations - any news on this?

@ryedeer

This comment has been minimized.

@marcoow

This comment has been minimized.

@ryedeer

This comment has been minimized.

@marcoow

This comment has been minimized.

@Turbo87
Copy link
Collaborator

Turbo87 commented Jul 5, 2019

#1885 and #1886 should resolve this issue once merged

@Turbo87 Turbo87 closed this as completed Jul 11, 2019
marcoow pushed a commit to backspace/ember-simple-auth that referenced this issue Jul 12, 2019
@thstarshine
Copy link

would be great if there's a release on npm. thanks!

@pichfl
Copy link
Contributor

pichfl commented Jul 14, 2019

@thstarshine there seems to be an issue with travis that prevented it from releasing to npm.

You can use the GitHub tag directly in the mean time.

Using Yarn:
yarn add --dev github:simplabs/ember-simple-auth#1.9.1

Using npm:
npm install --save-dev github:simplabs/ember-simple-auth#1.9.1

You should only do this if you plan to watch the releases closely and to change it back once the release issue has been resolved, otherwise you'll never receive updates.

@krachtstefan
Copy link

As far as I can tell the volatile deprecation warning was fixed in 1.9.1 but the _isFastBoot warning is still around. Just tested on 1.9.2.

DEPRECATION: The <(unknown):ember196>#_isFastBoot computed property was just overriden. This removes the computed property and replaces it with a plain value, and has been deprecated. If you want this behavior, consider defining a setter which does it manually. [deprecation id: computed-property.override] See https://emberjs.com/deprecations/v3.x#toc_computed-property-override for more details.

Should this issue be reopened?

@Turbo87
Copy link
Collaborator

Turbo87 commented Jul 20, 2019

@krachtstefan can you open a separate one for that? I was not aware of that warning yet. Where/How does it trigger?

@krachtstefan
Copy link

Sure, I just did that: #1908

Thanks for creating and maintaining this repository!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests