@untool/react
Advanced tools
Comparing version 0.20.0 to 0.21.0
@@ -6,2 +6,11 @@ # Change Log | ||
<a name="0.21.0"></a> | ||
# [0.21.0](https://github.com/untool/untool/compare/v0.20.0...v0.21.0) (2018-09-11) | ||
**Note:** Version bump only for package @untool/react | ||
<a name="0.20.0"></a> | ||
@@ -8,0 +17,0 @@ # [0.20.0](https://github.com/untool/untool/compare/v0.19.0...v0.20.0) (2018-09-10) |
@@ -16,3 +16,3 @@ 'use strict'; | ||
module.exports = ({ fragments, assetsByType, mountpoint, markup, globals }) => | ||
module.exports = ({ fragments, assets, mountpoint, markup, globals }) => | ||
`<!DOCTYPE html> | ||
@@ -26,3 +26,3 @@ <html ${fragments.htmlAttributes}> | ||
${fragments.link} | ||
${renderCSS(assetsByType)} | ||
${renderCSS(assets)} | ||
${fragments.style} | ||
@@ -36,4 +36,4 @@ ${fragments.script} | ||
${renderGlobals(globals)} | ||
${renderJS(assetsByType)} | ||
${renderJS(assets)} | ||
</body> | ||
</html>`.replace(/(^\s*[\r\n]| (?=>))/gm, ''); |
@@ -30,3 +30,3 @@ 'use strict'; | ||
this.options.location = req.path; | ||
this.assetsByType = res.locals.assetsByType; | ||
this.assets = res.locals.stats.entryAssetsByType; | ||
} | ||
@@ -39,3 +39,3 @@ enhanceElement(element) { | ||
mountpoint: this.config.name, | ||
assetsByType: this.assetsByType, | ||
assets: this.assets, | ||
globals: Object.assign({ _env: this.config._env }, data.globals), | ||
@@ -42,0 +42,0 @@ fragments: Object.keys(data.helmet).reduce( |
{ | ||
"name": "@untool/react", | ||
"version": "0.20.0", | ||
"version": "0.21.0", | ||
"description": "untool react mixin", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"@babel/preset-react": "^7.0.0", | ||
"@untool/core": "^0.20.0", | ||
"@untool/core": "^0.21.0", | ||
"babel-plugin-transform-react-remove-prop-types": "^0.4.13", | ||
@@ -42,3 +42,3 @@ "mixinable": "^4.0.0", | ||
}, | ||
"gitHead": "eddcbecf3661213c301ad772706b0339bc60146d" | ||
"gitHead": "463b42c20844be39b7a1e82276684e20af46b3f2" | ||
} |
19136
+ Added@untool/core@0.21.0(transitive)
- Removed@untool/core@0.20.0(transitive)
- Removeddebug@3.2.7(transitive)
Updated@untool/core@^0.21.0