Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xjst

Package Overview
Dependencies
Maintainers
4
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xjst - npm Package Versions

1
1517

0.1.9

Diff

fedor.indutny
published 0.2.1 •

fedor.indutny
published 0.2.0 •

fedor.indutny
published 0.1.8 •

fedor.indutny
published 0.1.7 •

fedor.indutny
published 0.1.6 •

fedor.indutny
published 0.1.5 •

Changelog

Source

2011.11.3, Version 0.1.5

API Changes:

  • Split ometa into Parser, Translator, Compiler. Parser+Compiler isn't translating locals.

  • Given string as first argument xjst.compile() will return compiled and evaluated version of template

  • Given array (ast-tree) as first argument xjst.compile() will return source code (compatibility mode)

  • New arguments: xjst.compile(source, filename, options).

    filename is used for evaluation (visible in stack traces). options: wrap (default: true) - wrap code into (function(exports){...})() statement. merge (default: false) - adding hash information required for merging templates.

  • Introduce apply keyword: apply() => this.apply(), apply(x = 1) => local(x = 1) this.apply(), apply({ x: 1 }) => local(this.x = 1) this.apply()

Various changes

  • Recursion optimization.
  • Big switches will be split into hashmaps
  • Split parts of code in functions to simplify optimization for v8
  • Use coa for cli
  • Benchmarks and tests
fedor.indutny
published 0.1.4 •

fedor.indutny
published 0.1.3 •

fedor.indutny
published 0.1.2 •

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc