Skip to content

Latest commit

 

History

History
59 lines (36 loc) · 2.44 KB

File metadata and controls

59 lines (36 loc) · 2.44 KB

Changelog

3.1.0

Minor Changes

  • #39 e6f9c65 Thanks @johnie! - ### Auto-detect literate CoffeeScript from file extension

    .litcoffee files are now compiled automatically without needing to pass literate: true. The option is still respected when explicitly set.

    Fix inlineMap option

    The inlineMap option was incorrectly remapped to CoffeeScript's sourceMap option, which returns an object instead of a string and breaks esbuild. It now correctly passes inlineMap through to the CoffeeScript compiler, producing an inline base64-encoded source map comment in the output.

    Fix error lineText for multi-line files

    Error messages now correctly report the specific line where the error occurred, instead of passing the entire source file as lineText.

    Safer error handling

    The catch clause now validates that the error has CoffeeScript's location property before attempting to convert it. Unexpected errors are re-thrown instead of being silently swallowed.

    Export Options type

    The Options interface is now exported, allowing consumers to type-check their plugin configuration.

Patch Changes

v2.2.0

  • Updated dependencies
coffeescript              ^2.6.1  →   ^2.7.0
esbuild                 ^0.14.14  →  ^0.17.7
eslint                    ^8.8.0  →  ^8.34.0
eslint-config-prettier    ^8.3.0  →   ^8.6.0
jest                     ^27.4.7  →  ^29.4.2

v2.0.0

  • Updated dependencies
coffeescript            ^2.5.1  →    ^2.6.1
esbuild               ^0.11.16  →  ^0.14.14
eslint                 ^7.25.0  →    ^8.8.0
eslint-config-airbnb   ^18.2.1  →   ^19.0.4
jest                   ^26.6.3  →   ^27.4.7

v1.0.0

  • Initial version