Ember/5/Deprecate Merge

1.0.1Last update Jul 24, 2024
by@Codemod
Ember
migration

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