@riotjs/compiler
Advanced tools
Comparing version 4.5.1 to 4.5.2
# Compiler Changes | ||
### v4.5.2 | ||
- Fix avoid to set the `expr` attribute as redundant expressions | ||
### v4.5.1 | ||
@@ -4,0 +7,0 @@ - Remove unecessary code |
{ | ||
"name": "@riotjs/compiler", | ||
"version": "4.5.1", | ||
"version": "4.5.2", | ||
"description": "Compiler for riot .tag files", | ||
@@ -36,12 +36,12 @@ "main": "dist/index.js", | ||
"devDependencies": { | ||
"@riotjs/dom-bindings": "^4.4.2", | ||
"@riotjs/dom-bindings": "^4.4.6", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.0.6", | ||
"eslint": "^6.5.1", | ||
"coveralls": "^3.0.7", | ||
"eslint": "^6.6.0", | ||
"eslint-config-riot": "^3.0.0", | ||
"esm": "^3.2.25", | ||
"mocha": "^6.2.1", | ||
"mocha": "^6.2.2", | ||
"nyc": "^14.1.1", | ||
"rollup": "^1.23.1", | ||
"rollup-plugin-alias": "^2.0.1", | ||
"rollup": "^1.25.2", | ||
"rollup-plugin-alias": "^2.2.0", | ||
"rollup-plugin-commonjs": "^10.1.0", | ||
@@ -67,6 +67,6 @@ "rollup-plugin-json": "^4.0.0", | ||
"dom-nodes": "^1.1.3", | ||
"globals": "^12.1.0", | ||
"recast": "^0.18.2", | ||
"globals": "^12.1.1", | ||
"recast": "^0.18.5", | ||
"source-map": "^0.7.3" | ||
} | ||
} |
@@ -102,3 +102,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -105,0 +105,0 @@ simplePropertyNode(BINDING_GET_KEY_KEY, attributeOrNull(keyAttribute)), |
@@ -34,3 +34,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -37,0 +37,0 @@ simplePropertyNode( |
@@ -38,3 +38,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -41,0 +41,0 @@ simplePropertyNode( |
@@ -117,3 +117,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -120,0 +120,0 @@ simplePropertyNode(BINDING_GET_COMPONENT_KEY, builders.identifier(GET_COMPONENT_FN)), |
@@ -128,6 +128,7 @@ import { | ||
const mightBeARiotComponent = isCustomNode(sourceNode) | ||
const node = cloneNodeWithoutSelectorAttribute(sourceNode, selector) | ||
return mightBeARiotComponent ? [null, [ | ||
tagBinding( | ||
cloneNodeWithoutSelectorAttribute(sourceNode, selector), | ||
node, | ||
null, | ||
@@ -137,3 +138,3 @@ sourceFile, | ||
)] | ||
] : build(createRootNode(sourceNode), sourceFile, sourceCode) | ||
] : build(createRootNode(node), sourceFile, sourceCode) | ||
} | ||
@@ -140,0 +141,0 @@ |
@@ -49,3 +49,3 @@ import { | ||
isNewExpression(node) || | ||
isNodeInScope(scope, node), | ||
isNodeInScope(scope, node) | ||
) | ||
@@ -52,0 +52,0 @@ } |
@@ -28,3 +28,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -31,0 +31,0 @@ simplePropertyNode(BINDING_NAME_KEY, isSpreadAttribute(sourceNode) ? nullNode() : builders.literal(sourceNode.name)), |
@@ -26,3 +26,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -29,0 +29,0 @@ simplePropertyNode(BINDING_NAME_KEY, builders.literal(sourceNode.name)), |
@@ -80,3 +80,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -83,0 +83,0 @@ simplePropertyNode( |
@@ -18,3 +18,3 @@ import { | ||
false | ||
), | ||
) | ||
), | ||
@@ -21,0 +21,0 @@ simplePropertyNode( |
@@ -202,3 +202,3 @@ import { | ||
wrapASTInFunctionWithScope, | ||
transformExpression, | ||
transformExpression | ||
)(expression, sourceFile, sourceCode) | ||
@@ -453,3 +453,3 @@ } | ||
), | ||
[builders.literal('')], | ||
[builders.literal('')] | ||
) | ||
@@ -529,4 +529,4 @@ } | ||
builders.returnStatement(builders.literal(sourceNode.value || true)) | ||
]), | ||
]) | ||
) | ||
} |
@@ -123,3 +123,3 @@ import { TAG_CSS_PROPERTY, TAG_LOGIC_PROPERTY, TAG_NAME_PROPERTY, TAG_TEMPLATE_PROPERTY } from './constants' | ||
hookGenerator(javascriptGenerator, javascript, code, meta), | ||
hookGenerator(cssGenerator, css, code, meta), | ||
hookGenerator(cssGenerator, css, code, meta) | ||
)(createInitialInput(meta)) | ||
@@ -126,0 +126,0 @@ } |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
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
1959683
50181
Updatedglobals@^12.1.1
Updatedrecast@^0.18.5