Address the copy/copyable deprecation

This commit is contained in:
Michael Lange 2019-03-25 21:55:06 -07:00
parent 96ef93ca5f
commit b6b2fd2114
10 changed files with 11 additions and 10 deletions

View file

@ -2,7 +2,8 @@ import Component from '@ember/component';
import { computed, observer, set } from '@ember/object';
import { run } from '@ember/runloop';
import { assign } from '@ember/polyfills';
import { guidFor, copy } from '@ember/object/internals';
import { guidFor } from '@ember/object/internals';
import { copy } from 'ember-copy';
import d3 from 'd3-selection';
import 'd3-transition';
import WindowResizable from '../mixins/window-resizable';

View file

@ -1,4 +1,4 @@
import { copy } from '@ember/object/internals';
import { copy } from 'ember-copy';
import { get } from '@ember/object';
import { makeArray } from '@ember/array';
import JSONSerializer from 'ember-data/serializers/json';

View file

@ -1,4 +1,4 @@
import { copy } from '@ember/object/internals';
import { copy } from 'ember-copy';
import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({

View file

@ -1,4 +1,4 @@
import { copy } from '@ember/object/internals';
import { copy } from 'ember-copy';
import ApplicationSerializer from './application';
export default ApplicationSerializer.extend({

View file

@ -1,5 +1,5 @@
import { readOnly } from '@ember/object/computed';
import { copy } from '@ember/object/internals';
import { copy } from 'ember-copy';
import Service from '@ember/service';
let list = {};

View file

@ -1,4 +1,4 @@
import { copy } from '@ember/object/internals';
import { copy } from 'ember-copy';
// Used with fetch.
// Fetch only goes into the promise catch if there is a network error.

View file

@ -3,7 +3,7 @@ self.deprecationWorkflow = self.deprecationWorkflow || {};
self.deprecationWorkflow.config = {
workflow: [
{ handler: 'throw', matchId: 'ember-inflector.globals' },
{ handler: 'silence', matchId: 'ember-runtime.deprecate-copy-copyable' },
{ handler: 'throw', matchId: 'ember-runtime.deprecate-copy-copyable' },
{ handler: 'silence', matchId: 'ember-console.deprecate-logger' },
{ handler: 'silence', matchId: 'ember-component.send-action' },
],

View file

@ -4,8 +4,7 @@ import { HOSTS } from './common';
import { logFrames, logEncode } from './data/logs';
import { generateDiff } from './factories/job-version';
import { generateTaskGroupFailures } from './factories/evaluation';
const { copy } = Ember;
import { copy } from 'ember-copy';
export function findLeader(schema) {
const agent = schema.agents.first();

View file

@ -62,6 +62,7 @@
"ember-cli-uglify": "^2.1.0",
"ember-composable-helpers": "^2.0.3",
"ember-concurrency": "^0.8.12",
"ember-copy": "^1.0.0",
"ember-data": "~3.4.0",
"ember-data-model-fragments": "3.3.0",
"ember-export-application-global": "^2.0.0",

View file

@ -4950,7 +4950,7 @@ ember-concurrency@^0.8.26:
ember-cli-babel "^6.8.2"
ember-maybe-import-regenerator "^0.1.5"
ember-copy@1.0.0:
ember-copy@1.0.0, ember-copy@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/ember-copy/-/ember-copy-1.0.0.tgz#426554ba6cf65920f31d24d0a3ca2cb1be16e4aa"
integrity sha512-aiZNAvOmdemHdvZNn0b5b/0d9g3JFpcOsrDgfhYEbfd7SzE0b69YiaVK2y3wjqfjuuiA54vOllGN4pjSzECNSw==