adopted-ember-addons / ember-data-factory-guy

Factories and helper functions for (unit, integration, acceptance) testing + development scenarios with Ember Data
MIT License
301 stars 136 forks source link

Fix ember-assign deprecation warning #479

Closed drouhard closed 1 year ago

drouhard commented 1 year ago

After updating to Ember 4 I am seeing thousands of these deprecation warnings coming from ember-data-factory-guy initializing.

https://github.com/emberjs/rfcs/blob/master/text/0750-deprecate-ember-assign.md

Fortunately the recommended solution is backwards-compatible and simple. Replace this:

import { assign } from '@ember/polyfills';

with this:

import { assign as emberAssign } from '@ember/polyfills';

const assign = Object.assign || emberAssign;