Skip to content

New and Noteworthy 1.0.0

angelozerr edited this page Sep 14, 2015 · 33 revisions

Here's a list of the most noteworthy things in the tern.java 1.0.0 release which is available for download since 30/08/2015. You can see issues for 1.0.0

Include/Exclude Tern script paths

When the completion, hyperlink, hover, validation is executed the first time tern.java load some JavaScript files according your configuration of tern script paths.

You can have performance problem, for instance if you use bower, npm which download a lot of JavaScript files inside /bower_component , /node_modules folder. Eclipse Mars excludes now by default those folders; tern.java is now able to use it.

To improve performance, now you can include/exclude JavaScripts files to load by using JSDT JavaScript / Include Path :

Include/Exclude path

If you go at Tern /Scripts Path, you can check that JavaScript files from your /bower_component , /node_modules folders will be ignored by tern.java:

ECMAScript 6 (Promise)

ES6 Promise was improved. You can benefit with Promise#then value completion :

Promise Then

See promise.js tests to know the other Promise features that tern can support.

Node (required module)

Node - Hover

Node support was improved to support hover for required module :

Node Hover

RequireJS (required module)

RequireJS support was improved to support required module.

RequireJS - Completion

RequireJS Completion

RequireJS - Hyperlink

RequireJS Hyperlink

RequireJS - Validation

RequireJS Extension provides the capability to validate required module :

RequireJS Validation

Delite

Add a support for Delite :

Delite Completion

As Delite uses RequireJS, you can benefit with the whole features of RequireJS support.

For more information, please read Delite.

Tern Hyperlink inside HTML

Tern hyperlink is now available inside HTML editor :

HTML tern hyperlink

Browser Extension

Browser Extension provides advanced features like completion, hyperlink, validation

  • for HTML elements ids :

Browser Extension Completion

  • for CSS Selectors :

Browser Extension Completion

jQuery Extension

jQuery Extension gives the capability to provide support for CSS selectors :

jQuery Extension Completion

YUI improvement

YUI Completion

YUI - Validation

Lint validator was improved.

tern-lint improvement

Multiple type support

The Lint validator is able to validate multiple types:

Validation with multiple type

JSDoc support

The Lint validator is able to validate your JavaScript files by using JSDoc annotations :

  • here a sample with assignment type error :

Validation with JSDoc

  • here a sample with function parameter type error:

Validation with JSDoc

Validation Settings Changed

When you add/remove a linter (Lint, JSHint, etc) :

  • at hand from your .tern-project
  • or with the UI Tern -> Modules property page:

Add Lint

a dialog appears to launch or not the validation.

Dialog

The click on Yes button execute the validation :

Marker

Tern Explorer

Tern Explorer is an Eclipse View which looks like JSDT Outline and try to improve it:

Tern Explorer

Clone this wiki locally