Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 0 additions & 23 deletions .changeset/bright-lions-dance.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/purple-zebras-kiss.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/widen-esbuild-peer-dep.md

This file was deleted.

30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Changelog

## 3.1.0

### Minor Changes

- [#39](https://github.com/johnie/esbuild-coffeescript/pull/39) [`e6f9c65`](https://github.com/johnie/esbuild-coffeescript/commit/e6f9c65112f0bb061f4c0da4991bdc1e5a444fdf) Thanks [@johnie](https://github.com/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

- [#36](https://github.com/johnie/esbuild-coffeescript/pull/36) [`8522362`](https://github.com/johnie/esbuild-coffeescript/commit/852236270d9237a370be03c9c9cad94780b4ebad) Thanks [@johnie](https://github.com/johnie)! - docs: update README with enhanced installation instructions

- [#37](https://github.com/johnie/esbuild-coffeescript/pull/37) [`30652d8`](https://github.com/johnie/esbuild-coffeescript/commit/30652d80584db5e14c26b28c0670e0db31adbabd) Thanks [@mattmenefee](https://github.com/mattmenefee)! - Widen esbuild peer dependency from ^0.25.9 to >=0.25.9

## v2.2.0

- Updated dependencies
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "esbuild-coffeescript",
"version": "3.0.1",
"version": "3.1.0",
"description": "Bundle CoffeeScript with Esbuild",
"type": "module",
"main": "dist/index.js",
Expand Down