Skip to content

Commit

Permalink
v2.3.15
Browse files Browse the repository at this point in the history
  • Loading branch information
amarcruz committed Dec 7, 2015
2 parents a599b94 + 3e85d92 commit 2db6283
Show file tree
Hide file tree
Showing 30 changed files with 1,297 additions and 532 deletions.
9 changes: 5 additions & 4 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
coverage/
dist/**
**/test/**
!**/test/*.js
!**/test/server-specs/*.js
!**/test/server-specs/parsers/*.js
test/**
!test/*.js
!test/server-specs/*.js
!test/server-specs/parsers/*.js
lib/_es6.js
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ rules:
###########################################################################

block-scoped-var: 0 # treat var statements as if they were block scoped
complexity: [1, 10] # specify the maximum cyclomatic complexity allowed in a program
complexity: [1, 16] # specify the maximum cyclomatic complexity allowed in a program
consistent-return: 0 # require return statements to either always or never specify values
curly: 0 # specify curly brace conventions for all control
# statements
Expand Down
24 changes: 23 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,29 @@ install:
- npm i jade
- npm i babel@5.8
- npm i babel-core
- npm i babel-preset-es2015

# babel presets
- npm i babel-plugin-transform-es2015-template-literals
- npm i babel-plugin-transform-es2015-literals
- npm i babel-plugin-transform-es2015-function-name
- npm i babel-plugin-transform-es2015-arrow-functions
- npm i babel-plugin-transform-es2015-block-scoped-functions
- npm i babel-plugin-transform-es2015-classes
- npm i babel-plugin-transform-es2015-object-super
- npm i babel-plugin-transform-es2015-shorthand-properties
- npm i babel-plugin-transform-es2015-computed-properties
- npm i babel-plugin-transform-es2015-for-of
- npm i babel-plugin-transform-es2015-sticky-regex
- npm i babel-plugin-transform-es2015-unicode-regex
- npm i babel-plugin-check-es2015-constants
- npm i babel-plugin-transform-es2015-spread
- npm i babel-plugin-transform-es2015-parameters
- npm i babel-plugin-transform-es2015-destructuring
- npm i babel-plugin-transform-es2015-block-scoping
- npm i babel-plugin-transform-es2015-typeof-symbol
- npm i babel-plugin-transform-es2015-modules-commonjs
- npm i babel-plugin-transform-regenerator

- npm i coffee-script
- npm i livescript
- npm i typescript-simple
Expand Down
23 changes: 19 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Compiler Changes

## v2.3.15

- Added dist/es6.compiler.js which uses es6 exports.
- Update devDependencies, including jspreproc v0.2.5 with an important fix.
- Partial regression of fix [riot#1120](https://github.com/riot/riot/issues/1120), `tmpl` can parse double-quotes within expressions, encoding double-quotes generates issues.

## v2.3.14

- The prefix `__` for boolean attributes is not used anymore. This IE8 hack and it is not neccessary for current supported versions.
- Option `exclude` for ignore parts of the tag. This is an array with one or more of 'html', 'css', 'attribs', 'js'.
- Removed `inert` from the boolean attributes list, this html5 attribute was dropped from the specs.
- Fixed normalization of root attributes, was not working as expected. Example updated.

## v2.3.13

- Fixed the `style` option for setting the CSS parser through the `options` object.
Expand All @@ -10,7 +23,7 @@
## v2.3.12

- Gets rid of the zero-indentation restriction for custom tags, now you can indent these tags, but the opening and closing tag must have exactly the same indentation (length and type). All the tag will be unindented by this amount.
- Support for `src` and `charset` attributes in `<script>` tags for reading JavaScript sources from the file system - [riot#507](https://github.com/riot/riot/issues/507)
- Support for `src` and `charset` attributes in `<script>` tags for reading JavaScript sources from the file system - [riot#1116](https://github.com/riot/riot/issues/1116), [riot#507](https://github.com/riot/riot/issues/507)
- The `compile` function can return separate parts by setting the new `entities` option. These parts has unescaped newlines.
- New attribute `options` for `script` and `style` tags will append/overwrite attributes in the default configuration object of the parser at tag level.
- Fix [riot#1261](https://github.com/riot/riot/issues/1261): `<pre>` tag does not preserve neither `\n` nor `\t`.
Expand All @@ -20,9 +33,10 @@
## v2.3.11

- New type="babel" supports babel-core v6.x. You must `npm install babel-preset-es2015` too, for this works.
Use type="es6" for babel and babel-core v5.8.x and bellow.
Use type="es6" for babel and babel-core v5.8.x and bellow - [riot#1039](https://github.com/riot/riot/issues/1039)
- Fix [riot#1306](https://github.com/riot/riot/issues/1306): Compiler preserves newlines in class objects, causing "Unterminated String Constant" errors.
- Fix [riot#1314](https://github.com/riot/riot/issues/1314): `settings.brackets` no longer works.
- Fix [riot#1309](https://github.com/riot/riot/issues/1309): Tag renders js instead of content when no attributes present.

## v2.3.0

Expand All @@ -33,17 +47,18 @@ This is a complete rewrite and the first solo version of the compiler.
so the compiler generates all but ignores the brackets if there are no generated expressions.
- Unlike previous versions, backslashes are removed from the expressions (before being sent to any parser).
Outside of expressions, all backslashes are preserved.
- Double quotes inside expressions are converted to `&quot;`, to avoid issues with HTML markup
- Double quotes inside expressions are converted to `&quot;`, to avoid issues with HTML markup.
- Fix [riot#1207](https://github.com/riot/riot/issues/1207): Riot compiler/parser breaks indentation.
- Fix [riot#1120](https://github.com/riot/riot/issues/1120): Double quotes break Riot attributes

Enhancements

- The compiler loads the brackets in runtime on each tag, allowing use of different brackets. [riot#1122](https://github.com/riot/riot/issues/1122) related.
- Multiple `<script>` blocks. These can have different types and are merged with the untagged script block, if any.
- More flexible formats in ES6 style method definitions.
- In the JavaScript, trailing whitespace are removed and multiple empty lines are combined into one.
- Better recognition of expressions. Now you can use almost any character, even in unquoted expressions (expressions containing the `>` operator needs to be enclosed in quotes) - [riot#744](https://github.com/riot/riot/issues/744)
- If the first character inside an expression is `^`, the expression is not passed to any parser. This is some sort of type=none at expression level - [riot#543](https://github.com/riot/riot/issues/543) and [riot#1090](https://github.com/riot/riot/issues/1090)
- If the first character inside an expression is `^`, the expression is not passed to any parser. This is some sort of type=none at expression level - [riot#543](https://github.com/riot/riot/issues/543), [riot#1090](https://github.com/riot/riot/issues/1090)
- Type es6 now supports babel-core - [riot#1039](https://github.com/riot/riot/issues/1039)
- New logic for scoped style blocks, if a style contains the ":scoped" selector, this is replaced by the name of the root element, if not, the name is prepended - [riot#912](https://github.com/riot/riot/issues/912)
- `type="scoped-css"` for `style` tags is deprecated, use only `scoped` or `scoped="scoped"`
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
#JSPP_DEBUG = -D DEBUG
JSPP_FLAGS = -F istanbul -F eslint --custom-filter "\s@(module|version)\b" --headers ""
JSPP_RIOT_FLAGS = $(JSPP_FLAGS) -D RIOT
JSPP_NODE_FLAGS = $(JSPP_FLAGS) -D NODE --indent 2
JSPP_NODE_FLAGS = $(JSPP_FLAGS) -D NODE
JSPP_ES6_FLAGS = $(JSPP_FLAGS)

# Code Climate only accepts the first job of default branch
TESTCOVER = $(TRAVIS_BRANCH) $(TRAVIS_NODE_VERSION)
Expand All @@ -29,8 +30,9 @@ test: build test-mocha
build: eslint
# rebuild all
@ mkdir -p $(DIST)
@ $(JSPP) $(JSPP_RIOT_FLAGS) lib/index.js > $(DIST)riot.compiler.js
@ $(JSPP) $(JSPP_NODE_FLAGS) lib/index.js > $(DIST)compiler.js
@ $(JSPP) $(JSPP_RIOT_FLAGS) lib/_riot.js > $(DIST)riot.compiler.js
@ $(JSPP) $(JSPP_NODE_FLAGS) lib/_node.js > $(DIST)compiler.js
@ $(JSPP) $(JSPP_ES6_FLAGS) lib/_es6.js > $(DIST)es6.compiler.js

bump:
# Bump a new release
Expand Down
Loading

0 comments on commit 2db6283

Please sign in to comment.