Ember
migration
byCodemod

Ember/5/Deprecate Merge

/icons/calendar.svg

Last update

Jul 24, 2024

This codemod replaces all calls to Ember.merge with Ember.assign.

Before

import { merge } from '@ember/polyfills';
var a = { first: 'Yehuda' };
var b = { last: 'Katz' };
merge(a, b);

After

import { assign } from '@ember/polyfills';
var a = { first: 'Yehuda' };
var b = { last: 'Katz' };
assign(a, b);

Build custom codemods

Use AI-powered codemod studio and automate undifferentiated tasks for yourself, colleagues or the community

background illustrationGet Started Now