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

Update "deprecate" to import from @ember/debug #2317

Merged
merged 5 commits into from
Oct 5, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { A } from '@ember/array';
import { getOwner } from '@ember/application';
import { inject } from '@ember/service';
import Ember from 'ember';
import { deprecate } from '@ember/application/deprecations';
import { deprecate } from '@ember/debug';
import Configuration from './../configuration';

import isFastBoot from 'ember-simple-auth/utils/is-fastboot';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

import { inject as service } from '@ember/service';
import Mixin from '@ember/object/mixin';
import { assert } from '@ember/debug';
import { assert, deprecate } from '@ember/debug';
import { getOwner } from '@ember/application';
import { deprecate } from '@ember/application/deprecations';
import { requireAuthentication, triggerAuthentication } from '../-internals/routing';

deprecate("Ember Simple Auth: The AuthenticatedRouteMixin is now deprecated; call the session service's requireAuthentication method in the respective route's beforeModel method instead.", false, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import { inject as service } from '@ember/service';
import Mixin from '@ember/object/mixin';
import { deprecate } from '@ember/application/deprecations';
import { deprecate } from '@ember/debug';

deprecate("Ember Simple Auth: The DataAdapterMixin is now deprecated; call the session service's invalidate method in the adapter's handleResponse method instead in case of a 401 response.", false, {
id: 'ember-simple-auth.mixins.data-adapter-mixin',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { inject as service } from '@ember/service';
import Mixin from '@ember/object/mixin';
import { getOwner } from '@ember/application';
import { deprecate } from '@ember/application/deprecations';
import { deprecate } from '@ember/debug';
import location from '../utils/location';
import isFastBoot from '../utils/is-fastboot';
import { parseResponse } from '../authenticators/oauth2-implicit-grant';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
/* eslint-disable ember/no-new-mixins */
import { inject as service } from '@ember/service';
import Mixin from '@ember/object/mixin';
import { assert } from '@ember/debug';
import { assert, deprecate } from '@ember/debug';
import { getOwner } from '@ember/application';
import { deprecate } from '@ember/application/deprecations';

import { prohibitAuthentication } from '../-internals/routing';

Expand Down
3 changes: 1 addition & 2 deletions packages/ember-simple-auth/addon/services/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ import { A } from '@ember/array';
import Service from '@ember/service';
import Evented from '@ember/object/evented';
import { getOwner } from '@ember/application';
import { assert } from '@ember/debug';
import { deprecate } from '@ember/application/deprecations';
import { assert, deprecate } from '@ember/debug';
import Configuration from '../configuration';

import {
Expand Down