Socket
Socket
Sign inDemoInstall

riot-compiler

Package Overview
Dependencies
8
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous1234

2.3.16-beta

Diff

amarcruz
published 2.3.13 •

Changelog

Source

v2.3.13

  • Fixed the style option for setting the CSS parser through the options object.
  • Fixed an issue in preservation of line endings in the generated html markup.
  • Fixed tests, coverage is 100% again.
  • Updated doc/guide.md and doc/attributes.md with the latest features.
amarcruz
published 2.3.12 •

Changelog

Source

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#1116, riot#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 : <pre> tag does not preserve neither \n nor \t. Now whitespace within <pre> tags is always preserved.
  • Fix riot#1358 : Empty style in tag (scoped) breaks.
gianlucaguarini
published 2.3.11 •

Changelog

Source

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 - riot#1039
  • Fix riot#1306 : Compiler preserves newlines in class objects, causing "Unterminated String Constant" errors.
  • Fix riot#1314 : settings.brackets no longer works.
  • Fix riot#1309 : Tag renders js instead of content when no attributes present.
gianlucaguarini
published 2.3.1 •

Changelog

Source

v2.3.19

  • Fixing issues with double quotes.
  • Removed dependency on riot-tmpl for the node build, now we are using a local version of brackets.
amarcruz
published 2.3.0 •

Changelog

Source

v2.3.0

This is a complete rewrite and the first solo version of the compiler.

  • Now the compiler generates a call to the new riot.tag2 function, with the same parameters as riot.tag and an additional one: the brackets used in the compilation. riot.tag2 requires all parameters except the brackets, 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.
  • Fix riot#1207 : Riot compiler/parser breaks indentation.
  • Fix riot#1120 : Double quotes break Riot attributes

Enhancements

  • The compiler loads the brackets in runtime on each tag, allowing use of different brackets. riot#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
  • 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, riot#1090
  • Type es6 now supports babel-core - riot#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
  • type="scoped-css" for style tags is deprecated, use only scoped or scoped="scoped"
amarcruz
published 2.3.0-beta.6 •

amarcruz
published 2.3.0-beta.5 •

amarcruz
published 2.3.0-beta.4 •

gianlucaguarini
published 2.0.0-beta •

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc