Skip to content
Commits on Apr 21, 2012
  1. This adds support for applying overlapping patches to the same AST wi…

    …thout having to do multiple passes on the entire file.
    committed Apr 20, 2012
Commits on Mar 14, 2012
  1. Merge pull request #1 from facebook/965735_support_with_node

    Added support of "with "statement.
    Ryan Patterson committed Mar 14, 2012
  2. @DmitrySoshnikov

    Added support of "with "statement.

    Added spec test for the "with" node.
    DmitrySoshnikov committed Mar 13, 2012
Commits on Feb 25, 2012
  1. Add better error reporting for match scripts

    Use eval sourceURL, so stakc traces have real file names and line numbers, and
    add the filename that was being matched when a matcher throws and error.
    Ryan Patterson committed Feb 25, 2012
Commits on Feb 24, 2012
  1. Fix output bug for jsgrep

    Add some specs to verify token offsets
    Bump version
    Ryan Patterson committed Feb 24, 2012
  2. Bump version to 1.0.0

    Ryan Patterson committed Feb 23, 2012
  3. Minor cleanup

    Commenting, rename variables, add a spec
    Ryan Patterson committed Feb 23, 2012
  4. Real exception types

    Better debugging information including stack traces, nicer formatting, and
    nested exceptions.
    Ryan Patterson committed Feb 23, 2012
  5. Fix patcher for multiple source modifications

    The old method made the assumption that patches would be applied in source
    order, which shouldn't be a restriction.
    
    Also fixes a bug with replacing property initializers by mangling the AST. Adds
    some test cases to verify that the patcher works.
    Ryan Patterson committed Feb 22, 2012
Commits on Feb 1, 2012
  1. Getter/setter support

    Untested, but I read Narcissus so I suspect it's accurate.
    Ryan Patterson committed Jan 31, 2012
Commits on Jan 24, 2012
  1. Add support for debugger statement

    In patterns and source code.
    Ryan Patterson committed Jan 24, 2012
Commits on Jan 23, 2012
  1. Fix installation remote

    It was on my private repo
    Ryan Patterson committed Jan 23, 2012
  2. Clean up README

    Removes a bunch of the examples to make it a shorter intro blurb.
    Ryan Patterson committed Jan 23, 2012
  3. Bump version, make public

    Ryan Patterson committed Jan 23, 2012
  4. Switch to submodule for narcissus

    This should hopefully make things easier for others..
    Ryan Patterson committed Jan 23, 2012
  5. License headers

    Everything is Apache!
    Ryan Patterson committed Jan 23, 2012
Commits on Jan 22, 2012
  1. Documentation

    Adds comments to most of jsgreps exported functions.
    Ryan Patterson committed Jan 22, 2012
Commits on Jan 16, 2012
  1. jspatch refactor for programmability

    Factor out the getPatternFromPatch and getPatchedCode, useful for integration
    with other tools.
    Ryan Patterson committed Jan 15, 2012
  2. Cleanup, precaution, bug

    Bug: it was using node value, so replacing a string with a different one would
    remove the quotes.
    Precaution: make sure the value of the node matches, in addition to the type.
    Ryan Patterson committed Jan 15, 2012
  3. Added in-place mode

    Run the program, verify the patch, run again with -i
    Ryan Patterson committed Jan 15, 2012
Commits on Jan 13, 2012
  1. Make nice npm package

    Now it's a well-formed npm package, better organization, etc. Also --version
    flags.
    Ryan Patterson committed Jan 13, 2012
Commits on Jan 12, 2012
  1. Support if in patterns

    Added support for if in patterns, fixed some whitespace errors in generated
    patches, added some more demos.
    Ryan Patterson committed Jan 12, 2012
  2. Improved patch file processing

    Now works on the token level after matching on the AST level. Needs testing!
    Ryan Patterson committed Jan 12, 2012
  3. Sed mode for jspatch

    Presently, sed mode is the best way to use this tool, because the patch file
    format is dumb.
    Ryan Patterson committed Jan 11, 2012
Commits on Jan 11, 2012
  1. jspatch custom patch format

    Lets you write pseudo-patch-files, similar to those that spatch accepts.
    Ryan Patterson committed Jan 11, 2012
  2. Working jspatch!

    jspatch works and emits diff files.
    Ryan Patterson committed Jan 11, 2012
  3. Fix matching of increment/decrement

    It wasn't properly verifying that pre/postfix was the same
    Ryan Patterson committed Jan 11, 2012
  4. [WIP] jspatch

    Half-completed jspatch that just dumps the modified source code.
    Ryan Patterson committed Jan 10, 2012
Commits on Jan 10, 2012
  1. matchStrict/findStrict

    Rather than using an object property, let's name the method differently.
    Ryan Patterson committed Jan 10, 2012
  2. Added some tests

    Testing jsgrep.jsgrep's various invocation methods.
    Ryan Patterson committed Jan 10, 2012
  3. Little cleanup

    Just some minor changes.
    Ryan Patterson committed Jan 10, 2012
  4. Add support for matching scripts

    match scripts allow you to have fine-grained control over what you match while
    still being able to easily use the tool's configuration, etc.
    Ryan Patterson committed Jan 10, 2012
  5. Cover for bug in narcissus

    Narcissus handles [,] weirdly, which funnily enough is used in narcissus. You
    can't use [,] in a pattern, but I don't know what it does so how can that be a
    problem?
    Ryan Patterson committed Jan 9, 2012
  6. Add --recursive

    Convenience flag for recursively searching.
    Ryan Patterson committed Jan 9, 2012
Something went wrong with that request. Please try again.