import Component from '@ember/component';
import { deprecate } from '@ember/application/deprecations';
import ResizeAware from 'ember-resize-aware/mixins/resize-aware';
import layout from '../templates/components/imgix-image-wrapped';
import ImgixPathBehavior from '../mixins/imgix-path-behavior';

export default Component.extend(ResizeAware, ImgixPathBehavior, {
  layout: layout,
  classNames: ['imgix-image-wrap'],
  init() {
    this._super(...arguments);
    deprecate(
      'imgix-image-wrapped is deprecated and will be removed in ember-cli-imgix@2. Please migrate to using imgix-image instead.',
      false,
      {
        id: 'ember-cli-imgix/imgix-image-wrapper-deprecation',
        until: '2.0.0'
      }
    );
  }
});

import Component from '@ember/component';
import { deprecate } from '@ember/application/deprecations';
import ResizeAware from 'ember-resize-aware/mixins/resize-aware';
import layout from '../templates/components/imgix-image-wrapped';
import ImgixPathBehavior from '../mixins/imgix-path-behavior';

export default Component.extend(ResizeAware, ImgixPathBehavior, {
  layout: layout,
  classNames: ['imgix-image-wrap'],
  init() {
    this._super(...arguments);
    deprecate(
      'imgix-image-wrapped is deprecated and will be removed in ember-cli-imgix@3. Please migrate to using imgix-image instead.',
      false,
      {
        id: 'ember-cli-imgix/imgix-image-wrapper-deprecation',
        until: '3.0.0'
      }
    );
  }
});

update imgix-image-wrapped deprecations to be deprecated in v3 (#61)