Permalink
Commits on Jan 22, 2017
  1. Fix stack trace (#4428)

    * Revert aee27fb
    
    * Patch Jison’s output so that it requires `fs` only if we’re truly in a CommonJS/Node environment, not a browser environment that may happen to have globals named `require` and `exports` (as would be the case if require.js is being used). Fixes #4391.
    
    * Temporary fix for exceptions getting thrown when trying to generate a stack trace for a file that has been deleted since compilation; fixes #3890, but not well. A better solution would not try to recompile the file when trying to retrieve its stack trace.
    
    * Save the test REPL history in the system temp folder, not in the CoffeeScript project folder
    
    * Rewrite `getSourceMap` to never read a file from disk, and therefore not throw IO-related exceptions; source maps are either retrieved from memory, or the related source code is retrieved from memory to generate a new source map. Fixes #3890 the proper way.
    
    * Add test to verify that stack traces reference the correct line number. Closes #4418.
    
    * Get the parser working in the browser compiler again; rather than detecting a CommonJS environment generally, just check for `fs` before trying to use it
    
    * Follow Node’s standard of 4-space indentation of stack trace data
    
    * Better .gitignore
    
    * Fix caching of compiled code and source maps; add more tests to verify correct line numbers in stack traces
    
    * Better fallback value for the parser source
    
    * Fix the stack traces and tests when running in a browser
    
    * Update the browser compiler so that @murrayju doesn’t have any extra work to do to test this branch
    GeoffreyBooth committed on GitHub Jan 22, 2017
Commits on Jan 13, 2017
  1. Merge pull request #4420 from GeoffreyBooth/backport-2-doc-changes

    Backport documentation edits
    committed on GitHub Jan 13, 2017
  2. Updated output

    GeoffreyBooth committed Jan 13, 2017
Commits on Jan 4, 2017
  1. Merge pull request #4417 from BrianRossmajer/patch-1

    Show a simple object extraction before complex one
    committed on GitHub Jan 4, 2017
  2. Merge pull request #4416 from isabellatea/copyright-year

    Update copyright range to 2017
    committed on GitHub Jan 4, 2017
  3. Update copyright range to 2017

    isabellatea committed on GitHub Jan 4, 2017
Commits on Dec 29, 2016
  1. Merge pull request #4415 from connec/@indices-in-loops

    Allow `@` values as indices in `for` expressions
    committed on GitHub Dec 29, 2016
  2. Allow `@` values as indices in `for` expressions

    This loosens the compilation of `for` expressions to allow the index
    variable to be an `@` value, e.g.
    
        do @visit for @node, @index in nodes
    
    Within `@visit`, the index of the current node (`@node`) would be
    available as `@index`.
    
    Fixes #4411.
    connec committed Dec 29, 2016
Commits on Dec 23, 2016
  1. Fix //= operator (#4410)

    valff committed with lydell Dec 23, 2016
Commits on Dec 21, 2016
  1. Merge pull request #4407 from connec/improve-test-with-whitespace

    Trivial: Remove trailing whitespace in test/error_messages.coffee
    committed on GitHub Dec 21, 2016
  2. Remove trailing whitespace in test/error_messages.coffee

    Trailing whitespace is generally considered 'bad style' and is often
    linted against or even simply removed by text editors.
    
    One of the tests in test/error_messages.coffee depended on trailing
    whitespace, making the file tricky to work with for people whose
    editor is configured to remove trailing whitespace. The alternative is
    to use a literal "\n" and escape the line break.
    connec committed Dec 21, 2016
Commits on Dec 16, 2016
  1. Merge pull request #4405 from GeoffreyBooth/1.12.2

    1.12.2
    lydell committed on GitHub Dec 16, 2016
  2. Rebuild for 1.12.2

    GeoffreyBooth committed Dec 16, 2016
  3. Docs improvements: content in Markdown, organization into subtemplate…

    …s, fixed tests (#4401)
    
    * Replace tiny bitmaps with base64-encoded URIs
    
    * Optimize SVGs; replace logo PNG with SVG
    
    * Modernize favicon
    
    * Embed CSS; a bit unorthodox, but we’re a single page so there’s no point in separate .css files and their separate HTTP requests
    
    * Documentation is now markdown, converted to HTML on compilation
    
    * Render the examples when we’re rendering index.html; they compile so quickly that there’s no need to pre-render them and save the intermediate .js files
    
    * Split apart index.html into components that Cakefile assembles, so that we can add in logic to include different files for v1 versus v2
    
    * Split building index.html and building test.html into two tasks; collapse the parts of `releaseHeader` into one compact function
    
    * Move include logic into templates
    
    * Get error messages tests to work in the browser
    
    * Update output index.html
    
    * Split body into nav and body
    
    * Watch subtemplates
    
    * Revert "Split body into nav and body"
    
    This reverts commit ec9e559.
    
    * Add marked
    
    * Update gitignore
    
    * Use idiomatic markdown output for code blocks (<pre><code>)
    
    * Handle ids within the template, not in the Cakefile; remove marked’s auto-generated and conflicting ids
    
    * Move the `codeFor` function into versioned folders, so that v1 and v2 docs can have different example code blocks/editors
    
    * Update packages, including new highlight.js which supports our newer keywords and triple backticks (docs output is unchanged)
    GeoffreyBooth committed on GitHub Dec 16, 2016
  4. Fix command completion under nodejs v6.9.1 (#4402)

    * Fix command completion under nodejs v6.9.1
    Closes #4397
    
    * Commit updated compiled version
    mdcb committed with GeoffreyBooth Dec 16, 2016
Commits on Dec 13, 2016
  1. Merge pull request #4399 from murrayju/issue4391

    Add a try/catch in the Error.prepareStackTrace implementation
    committed on GitHub Dec 13, 2016
Commits on Dec 9, 2016
Commits on Dec 8, 2016
  1. Update 1.12.1 release date

    lydell committed Dec 8, 2016
  2. Merge pull request #4395 from GeoffreyBooth/1.12.1

    1.12.1
    lydell committed on GitHub Dec 8, 2016
Commits on Dec 7, 2016
  1. Bump date

    GeoffreyBooth committed Dec 7, 2016
  2. Improve docs (#4396)

    * Replace tiny bitmaps with base64-encoded URIs
    
    * Optimize SVGs; replace logo PNG with SVG
    
    * Modernize favicon
    
    * Embed CSS; a bit unorthodox, but we’re a single page so there’s no point in separate .css files and their separate HTTP requests
    GeoffreyBooth committed on GitHub Dec 7, 2016
Commits on Dec 6, 2016
  1. Detect when `from` in a `for` loop declaration is an identifier (#4393)

    * Try to detect when `from` in a `for` loop declaration is an identifier, not a keyword
    
    * Handle destructured arrays
    
    * from as a destructured, aliased object variable name in a for loop declaration
    GeoffreyBooth committed on GitHub Dec 6, 2016
Commits on Dec 5, 2016
  1. Merge pull request #4388 from GeoffreyBooth/import-member-named-default

    Allow imported module members to be named `default`
    lydell committed on GitHub Dec 5, 2016