Comparing version 0.3.6 to 0.5.0
{ | ||
"name": "rocambole", | ||
"version": "0.3.6", | ||
"version": "0.5.0", | ||
"description": "Recursively walk and transform EcmaScript AST", | ||
@@ -33,3 +33,3 @@ "main": "rocambole.js", | ||
"dependencies": { | ||
"esprima": "~1.0" | ||
"esprima": "^2.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "devDependencies": { |
@@ -122,9 +122,8 @@ # Rocambole [![Build Status](https://secure.travis-ci.org/millermedeiros/rocambole.png?branch=master)](https://travis-ci.org/millermedeiros/rocambole) | ||
I plan to create helpers as separate projects. For now I'm adding the helpers | ||
on the [esformatter util | ||
package](https://github.com/millermedeiros/esformatter/tree/master/lib/util) | ||
but I plan to extract the generic ones. | ||
I plan to create helpers as separate projects when possible. | ||
- [rocambole-token](https://github.com/millermedeiros/rocambole-token): helpers for token manipulation | ||
- [rocambole-token](https://github.com/millermedeiros/rocambole-token): helpers for token manipulation/traversal | ||
- [rocambole-node](https://github.com/millermedeiros/rocambole-node): helpers for node manipulation/traversal | ||
There are a few nice helpers on [esformatter](https://github.com/millermedeiros/esformatter/) to deal with indentation, white spaces and line breaks that might be useful. | ||
@@ -187,3 +186,3 @@ | ||
### rocambole.recursive | ||
### rocambole.walk / rocambole.recursive | ||
@@ -194,3 +193,3 @@ It loops through all nodes on the AST starting from the root node (`Program`), | ||
```js | ||
rocambole.recursive(ast, function(node){ | ||
rocambole.walk(ast, function(node){ | ||
console.log(node.type); | ||
@@ -233,2 +232,12 @@ }); | ||
### v0.5.0 (2015/02/25) | ||
- updated `esprima` to v2.0 because of ES6 features and to avoid `esprima-fb` | ||
bug related to RegExp. | ||
### v0.4.0 (2014/07/14) | ||
- aliased `rocambole.recursive` as `rocambole.walk` to avoid confusions. | ||
- switched `esprima` dependency to `esprima-fb` because of ES6 features. | ||
### v0.3.6 (2014/06/23) | ||
@@ -235,0 +244,0 @@ |
@@ -348,3 +348,3 @@ /*jshint node:true */ | ||
exports.recursive = recursiveWalk; | ||
exports.walk = exports.recursive = recursiveWalk; | ||
@@ -351,0 +351,0 @@ // heavily inspired by node-falafel |
@@ -75,4 +75,8 @@ /* globals describe:false, it:false */ | ||
it('should be aliased as walk() to avoid confusions', function () { | ||
expect( rocambole.walk ).to.be( rocambole.recursive ); | ||
}); | ||
}); | ||
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
416384
9346
303
+ Addedesprima@2.7.3(transitive)
- Removedesprima@1.0.4(transitive)
Updatedesprima@^2.0