Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shipshapecode/ember-assign-polyfill
A polyfill for Ember.assign in <= 2.4
https://github.com/shipshapecode/ember-assign-polyfill
assign ember merge polyfill
Last synced: about 2 months ago
JSON representation
A polyfill for Ember.assign in <= 2.4
- Host: GitHub
- URL: https://github.com/shipshapecode/ember-assign-polyfill
- Owner: shipshapecode
- License: mit
- Created: 2016-09-13T03:00:37.000Z (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T09:10:59.000Z (12 months ago)
- Last Synced: 2024-04-20T09:42:24.315Z (8 months ago)
- Topics: assign, ember, merge, polyfill
- Language: JavaScript
- Homepage:
- Size: 1.4 MB
- Stars: 2
- Watchers: 2
- Forks: 6
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
ember-assign-polyfill
==============================================================================**[ember-assign-polyfill is built and maintained by Ship Shape. Contact us for Ember.js consulting, development, and training for your project](https://shipshape.io/ember-consulting)**.
[![npm version](https://badge.fury.io/js/ember-assign-polyfill.svg)](http://badge.fury.io/js/ember-assign-polyfill)
![Download count all time](https://img.shields.io/npm/dt/ember-assign-polyfill.svg)
[![npm](https://img.shields.io/npm/dm/ember-assign-polyfill.svg)]()
[![Ember Observer Score](https://emberobserver.com/badges/ember-assign-polyfill.svg)](https://emberobserver.com/addons/ember-assign-polyfill)
[![CI](https://github.com/shipshapecode/ember-assign-polyfill/actions/workflows/ci.yml/badge.svg)](https://github.com/shipshapecode/ember-assign-polyfill/actions/workflows/ci.yml)This provides a polyfill for the Ember.assign feature added in Ember 2.5.
Installation
------------------------------------------------------------------------------```
ember install ember-assign-polyfill
```Usage
------------------------------------------------------------------------------```js
import Ember from 'ember';var a = { first: 'Robert' };
var b = { last: 'Wagner' };
var c = { company: 'Ship Shape' };Ember.assign(a, b, c); // a === { first: 'Robert', last: 'Wagner', company: 'Ship Shape' }, b === { last: 'Wagner' }, c === { company: 'Ship Shape' }
```Migration
------------------------------------------------------------------------------### Applications
After you upgrade your application to Ember 2.5, you should remove ember-assign-polyfill from your package.json.
### Addons
Addons generally support many different Ember versions, so leaving ember-assign-polyfill in place for consumers of your addon is perfectly normal. When the addon no longer supports Ember versions older than 2.5, we recommend removing ember-assign-polyfill from your package.json and doing a major version bump.
Contributing
------------------------------------------------------------------------------See the [Contributing](CONTRIBUTING.md) guide for details.
License
------------------------------------------------------------------------------This project is licensed under the [MIT License](LICENSE.md).