github fkling/astexplorer v1.13.0

latest releases: v2.1.0, v2.0.0
7 years ago

New

Updated jscodeshift to v0.3.26

Since v0.3.21, jscodeshift also supports babylon (v6) and flow as parsers. astexplorer was updated to respect the parser export in the transform. I.e. you can now add

export const parser = 'flow';

to the transform and jscodeshift will use that parser: http://astexplorer.net/#/uIl3Ja2nAO

Babylon and flow have been added as additional parser options to recast.

Note: If you change the parser in the transformer, you should also select the corresponding parser in the recast settings to properly reflect the AST:

Open preferences:
screen shot 2016-07-18 at 4 45 37 pm
Select parser:
screen shot 2016-07-18 at 4 47 08 pm

I also added a simple implementation for the stats API method. When used, it will log the collected values to the console: http://astexplorer.net/#/u2ALD6fmMy (open the browser console):

screen shot 2016-07-18 at 4 50 44 pm

Selected node indicator

A probably lesser known feature is that the just opened node in the tree view is available in the console (global scope) via $node. The tree view know shows a = $node after the name to indicate that.

screen shot 2016-07-18 at 4 51 42 pm

Parser updates

Fixes

  • Bring back jscodeshift code completion (b0742d7)

Don't miss a new astexplorer release

NewReleases is sending notifications on new releases.