Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
ember-factory-for-polyfill
Advanced tools
Provides a basice polyfill for the ember-factory-for feature.
This addon provides a best effort polyfill for the ember-factory-for
feature added in Ember 2.12.
Please review emberjs/rfcs#150 for more details.
ember install ember-factory-for-polyfill
import Ember from 'ember';
export default Ember.Service.extend({
someMethod() {
let owner = Ember.getOwner(this);
let ValidatorFactory = owner.factoryFor('validator:post');
let validator = ValidatorFactory.create();
}
});
After you upgrade your application to Ember 2.12, you should remove ember-factory-for-polyfill
from
your package.json
.
Addons generally support many different Ember versions, so leaving ember-factory-for-polyfill
in
place for consumers of your addon is perfectly normal. When the addon no longer supports Ember
versions older than 2.12, we recommend removing ember-factory-for-polyfill
from your package.json
and doing a major version bump.
This addon is tested against quite a few past Ember versions. Check config/ember-try.js
for the current list, but
the list of supported Ember versions at the time of authoring was:
For compatibility with older Ember versions prior to 2.3, please use ember-getowner-polyfill instead.
git clone <repository-url>
this repositorycd ember-factory-for-polyfill
npm install
ember serve
npm test
(Runs ember try:each
to test your addon against multiple Ember versions)ember test
ember test --server
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
FAQs
Provides a basice polyfill for the ember-factory-for feature.
The npm package ember-factory-for-polyfill receives a total of 27,786 weekly downloads. As such, ember-factory-for-polyfill popularity was classified as popular.
We found that ember-factory-for-polyfill demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.