Gathering detailed insights and metrics for babel-plugin-ember-modules-api-polyfill
Gathering detailed insights and metrics for babel-plugin-ember-modules-api-polyfill
Gathering detailed insights and metrics for babel-plugin-ember-modules-api-polyfill
Gathering detailed insights and metrics for babel-plugin-ember-modules-api-polyfill
npm install babel-plugin-ember-modules-api-polyfill
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
15 Stars
346 Commits
21 Forks
12 Watching
12 Branches
28 Contributors
Updated on 30 May 2024
JavaScript (100%)
Cumulative downloads
Total Downloads
Last day
-28.3%
38,157
Compared to previous day
Last week
-10.7%
231,327
Compared to previous week
Last month
19.9%
1,078,283
Compared to previous month
Last year
-3%
14,878,230
Compared to previous year
This plugin transforms JavaScript modules API import statements back to the legacy "global" ember object syntax
1import { inject } from "@ember/service"
back to the legacy
1const inject = Ember.inject.service
npm install --save babel-plugin-ember-modules-api-polyfill
This plugin provides an API polyfill to allow ember addon authors to adopt the new JavaScript modules API whilst still maintaining backwards compatibility with older versions of Ember that do not support the new modules API.
The intention of this Babel plugin is to also allow for a transition period and allow applications to exist in a mixed state whilst transitioning from the old "global" ember object pattern, into the new modular pattern.
Using the ember-rfc176-data package, that contains the official mapping of old global object names to the new JS modules API import statements, addons that adopt the new API can be transpiled back to the legacy format if Ember-CLI detects that the host application ember version does not support the new modules API.
The plugin supports both default import Component from "@ember/component"
and named import { inject } from "@ember/service"
import statements,
converting their syntax back to separate const
variables within the source file. This transpilation is done at compile time by Ember CLI.
In order for ember addon developers to adopt this new API syntax, they must declare a dependency on ember-cli-babel:v6.6.0
or above in their
package.json:
1{ 2 "dependencies": { 3 "ember-cli-babel": "^6.6.0" 4 } 5}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
42 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More