Socket
Socket
Sign inDemoInstall

ember-cli-htmlbars

Package Overview
Dependencies
15
Maintainers
4
Versions
112
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.0.8 to 4.0.9

16

CHANGELOG.md

@@ -0,1 +1,17 @@

## v4.0.9 (2019-12-04)
#### :rocket: Enhancement
* [#373](https://github.com/ember-cli/ember-cli-htmlbars/pull/373) Add co-location support to CoffeeScript component class files ([@locks](https://github.com/locks))
#### :memo: Documentation
* [#351](https://github.com/ember-cli/ember-cli-htmlbars/pull/351) Update Readme with syntax for usage with tagged templates ([@thec0keman](https://github.com/thec0keman))
#### :house: Internal
* [#342](https://github.com/ember-cli/ember-cli-htmlbars/pull/342) Add `ember-octane` test suite run to CI. ([@rwjblue](https://github.com/rwjblue))
#### Committers: 3
- John Ratcliff ([@thec0keman](https://github.com/thec0keman))
- Ricardo Mendes ([@locks](https://github.com/locks))
- Robert Jackson ([@rwjblue](https://github.com/rwjblue))
## v4.0.8 (2019-10-19)

@@ -2,0 +18,0 @@

@@ -85,2 +85,5 @@ 'use strict';

hasBackingClass = true;
} else if (fs.existsSync(path.join(this.inputPaths[0], backingClassPath + '.coffee'))) {
backingClassPath += '.coffee';
hasBackingClass = true;
} else {

@@ -105,2 +108,5 @@ backingClassPath += '.js';

let prefix = `import { hbs } from 'ember-cli-htmlbars';\nconst __COLOCATED_TEMPLATE__ = ${hbsInvocation};\n`;
if (backingClassPath.endsWith('.coffee')) {
prefix = `import { hbs } from 'ember-cli-htmlbars'\n__COLOCATED_TEMPLATE__ = ${hbsInvocation}\n`;
}

@@ -107,0 +113,0 @@ logger.debug(

20

package.json
{
"name": "ember-cli-htmlbars",
"version": "4.0.8",
"version": "4.0.9",
"description": "A library for adding htmlbars to ember CLI",

@@ -57,3 +57,3 @@ "keywords": [

"@babel/runtime": "^7.6.3",
"@ember/optional-features": "^1.0.0",
"@ember/optional-features": "^1.1.0",
"babel-eslint": "^10.0.3",

@@ -77,9 +77,9 @@ "babel-plugin-debug-macros": "^0.3.3",

"ember-resolver": "^5.3.0",
"ember-source": "~3.13.2",
"ember-source": "~3.13.3",
"ember-source-channel-url": "^2.0.1",
"ember-try": "^1.2.1",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-plugin-ember": "^7.1.0",
"eslint-plugin-mocha": "^6.1.1",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-plugin-ember": "^7.2.0",
"eslint-plugin-mocha": "^6.2.0",
"eslint-plugin-node": "^10.0.0",

@@ -89,7 +89,7 @@ "eslint-plugin-prettier": "^3.1.1",

"loader.js": "^4.7.0",
"mocha": "^6.2.1",
"mocha": "^6.2.2",
"module-name-inliner": "link:./tests/dummy/lib/module-name-inliner",
"prettier": "^1.18.2",
"qunit-dom": "^0.9.0",
"release-it": "^12.4.2",
"qunit-dom": "^0.9.1",
"release-it": "^12.4.3",
"release-it-lerna-changelog": "^1.0.3"

@@ -96,0 +96,0 @@ },

@@ -96,2 +96,34 @@ # Ember CLI HTMLBars

### Tagged Template Usage / Migrating from `htmlbars-inline-precompile`
Starting with version 4.0, this addon now includes the testing helper from [ember-cli-htmlbars-inline-precompile](https://github.com/ember-cli/ember-cli-htmlbars-inline-precompile)
This will require an update to the imports of the `hbs` helper in your tests:
Prior syntax:
```
import hbs from 'htmlbars-inline-precompile';
...
await render(hbs`
<MyComponent />
`);
```
New syntax:
```
import { hbs } from 'ember-cli-htmlbars';
...
await render(hbs`
<MyComponent />
`);
```
There is a [codemod](https://github.com/ember-codemods/ember-cli-htmlbars-inline-precompile-codemod) available to automate this change.
### Handlebars 2.0 Support (Ember < 1.10)

@@ -98,0 +130,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc