Skip to content

Commit

Permalink
v2.3.23
Browse files Browse the repository at this point in the history
- The parsers are moved to its own directory in the node version. The load is on first use.
- Fix [riot#1325](riot/riot#1325) : Gulp + Browserify + Babelify + type="es6" error.
- Fix [riot#1342](riot/riot#1342), [riot#1636](riot/riot#1636) and request from [dwyl/learn-riot#8](dwyl/learn-riot#8) : Server-Side Rendered Page Fails W3C Check. The new `data-is` attribute is used for scoped styles in addition to `riot-tag` (the later will be removed in compiler v3.x)
- The keyword `defer` in `<script src=file>` avoids that the compiler loads the file, preserving the tag - Requested by [riot#1492](riot/riot#1492) : Stop script tags from being evaluated with serverside `riot.render`. It is removed in client-side compilation because browsers will not load scripts through innerHTML.
- It has changed the character used to hide expressions during the compilation, maybe this fix [riot#1588](riot/riot#1588) : Syntax Error: Invalid character `\0129` (riot+compiler.min).
- The option `debug` inserts newlines between the `riot.tag2` parameters and the call is prefixed with the source filename - Requested by [riot#1646](riot/riot#1646) : Split portions of generated html with newline instead of space
- Removed the unused parameter with the compiled-time brackets from the call to `riot.tag2`.
- Removed support for raw expressions. It is unlikely this feature will be implemented in v2.3.x
- Updated the regex that is used to match tag names, more closer to the HTML5 specs.
- Update devDependencies.
  • Loading branch information
amarcruz committed Mar 9, 2016
1 parent 952bdf0 commit f455dfd
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 28 deletions.
4 changes: 2 additions & 2 deletions dist/es6.compiler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Compiler for riot custom tags
* @version WIP
* @version v2.3.23
*/

import { brackets } from 'riot-tmpl'
Expand Down Expand Up @@ -637,7 +637,7 @@ function compile (src, opts, url) {
return src
}

var version = 'WIP'
var version = 'v2.3.23'

export default {
compile,
Expand Down
4 changes: 2 additions & 2 deletions dist/riot.compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ riot.parsers = parsers

/**
* Compiler for riot custom tags
* @version WIP
* @version v2.3.23
*/
var compile = (function () {

Expand Down Expand Up @@ -640,7 +640,7 @@ var compile = (function () {
html: compileHTML,
css: compileCSS,
js: compileJS,
version: 'WIP'
version: 'v2.3.23'
}
return compile

Expand Down
6 changes: 3 additions & 3 deletions lib/compiler.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/**
* The riot-compiler WIP
* The riot-compiler v2.3.23
*
* @module compiler
* @version WIP
* @version v2.3.23
* @license MIT
* @copyright 2015 Muut Inc. + contributors
*/
Expand Down Expand Up @@ -971,5 +971,5 @@ module.exports = {
css: compileCSS,
js: compileJS,
parsers: parsers,
version: 'WIP'
version: 'v2.3.23'
}
20 changes: 0 additions & 20 deletions lib/test.js

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
],
"scripts": {
"test": "make test",
"prepublish": "make build && ./node_modules/.bin/riot-bump"
"prepublish": "make build && ./node_modules/.bin/riot-bump && ./node_modules/.bin/riot-bump lib"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit f455dfd

Please sign in to comment.