ember-angle-bracket-invocation-polyfill
Advanced tools
Comparing version 1.0.2 to 1.1.0
@@ -21,3 +21,3 @@ 'use strict'; | ||
name: 'component-attributes', | ||
plugin: require('./lib/angle-bracket-invocation-polyfill'), | ||
plugin: require('./lib/ast-transform'), | ||
baseDir() { | ||
@@ -37,3 +37,3 @@ return __dirname; | ||
this.import('vendor/angle-bracket-invocation-polyfill/index.js'); | ||
this.import('vendor/angle-bracket-invocation-polyfill/runtime-polyfill.js'); | ||
}, | ||
@@ -49,2 +49,4 @@ | ||
let transpiledVendorTree = babelAddon.transpileTree(rawVendorTree, { | ||
babel: this.options.babel, | ||
'ember-cli-babel': { | ||
@@ -51,0 +53,0 @@ compileModules: false, |
@@ -12,6 +12,6 @@ 'use strict'; | ||
const compiler = require('ember-source/dist/ember-template-compiler'); | ||
compiler.registerPlugin('ast', require('./angle-bracket-invocation-polyfill')); | ||
compiler.registerPlugin('ast', require('./ast-transform')); | ||
let template = '<FooBar data-foo="bar" />'; | ||
let template = '<span ...attributes>hi martin!</span>'; | ||
let output = compiler.precompile(template, { contents: template }); | ||
console.log(output); // eslint-disable-line no-console |
{ | ||
"name": "ember-angle-bracket-invocation-polyfill", | ||
"version": "1.0.2", | ||
"version": "1.1.0", | ||
"description": "The default blueprint for ember-cli addons.", | ||
@@ -24,3 +24,4 @@ "keywords": [ | ||
"ember-cli-babel": "^6.6.0", | ||
"ember-cli-version-checker": "^2.1.2" | ||
"ember-cli-version-checker": "^2.1.2", | ||
"ember-compatibility-helpers": "^1.0.0" | ||
}, | ||
@@ -27,0 +28,0 @@ "devDependencies": { |
@@ -104,4 +104,11 @@ # ember-angle-bracket-invocation-polyfill | ||
- Supports passing `...attributes` into a non-component element | ||
```hbs | ||
<div ...attributes></div> | ||
``` | ||
- Supports passing `...attributes` into tagless components | ||
- Completely innert when running Ember 3.4 or higher | ||
- Supports Ember 2.12, 2.16, 2.18, 3.2, 3.3 | ||
- Supports Ember 2.12, 2.16, 2.18, 3.1, 3.2, 3.3 | ||
- Test all the features listed above 😘 | ||
@@ -115,3 +122,2 @@ | ||
- Single word component names | ||
- Explicitly splatting attributes with `...attributes`. | ||
@@ -118,0 +124,0 @@ ## Contributing |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29302
587
151
3
11
1
+ Addedat-least-node@1.0.0(transitive)
+ Addedember-cli-version-checker@5.1.2(transitive)
+ Addedember-compatibility-helpers@1.2.7(transitive)
+ Addedfind-up@5.0.0(transitive)
+ Addedfs-extra@9.1.0(transitive)
+ Addedgraceful-fs@4.2.11(transitive)
+ Addedjsonfile@6.1.0(transitive)
+ Addedlocate-path@6.0.0(transitive)
+ Addedp-limit@3.1.0(transitive)
+ Addedp-locate@5.0.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedresolve-package-path@3.1.0(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedsilent-error@1.1.1(transitive)
+ Addeduniversalify@2.0.1(transitive)
+ Addedyocto-queue@0.1.0(transitive)