Skip to content

Widen esbuild peer dependency from ^0.25.9 to >=0.25.9#37

Merged
johnie merged 1 commit intojohnie:masterfrom
mattmenefee:widen-esbuild-peer-dependency
Apr 9, 2026
Merged

Widen esbuild peer dependency from ^0.25.9 to >=0.25.9#37
johnie merged 1 commit intojohnie:masterfrom
mattmenefee:widen-esbuild-peer-dependency

Conversation

@mattmenefee
Copy link
Copy Markdown
Contributor

@mattmenefee mattmenefee commented Apr 8, 2026

Summary

  • Widens the esbuild peer dependency from ^0.25.9 to >=0.25.9
  • With a 0.x major version, ^0.25.9 resolves to >=0.25.9 <0.26.0 per semver rules, which prevents installation with esbuild 0.26.x, 0.27.x, 0.28.x, etc.
  • The plugin only uses stable core plugin API types (Plugin, OnLoadArgs, OnLoadResult, PartialMessage) and build.onLoad(), which have been stable across esbuild releases

Motivation

Projects using esbuild 0.28.0 (and other recent versions) get peer dependency warnings when installing esbuild-coffeescript:

➤ YN0060: │ esbuild is listed by your project with version 0.28.0 (p4ca5cd),
           which doesn't satisfy what esbuild-coffeescript requests (~0.25.9).

Test plan

  • Verified the plugin source only depends on stable esbuild plugin APIs
  • Existing test suite passes (CI)

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 8, 2026

🦋 Changeset detected

Latest commit: 30652d8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
esbuild-coffeescript Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@mattmenefee mattmenefee force-pushed the widen-esbuild-peer-dependency branch from 3ec29ea to 2556982 Compare April 8, 2026 19:25
With a 0.x major version, ^0.25.9 resolves to >=0.25.9 <0.26.0 per
semver rules, preventing projects using esbuild 0.26+, 0.27+, or
0.28+ from installing without peer dependency warnings.

The plugin only uses stable core plugin API types (Plugin, OnLoadArgs,
OnLoadResult, PartialMessage) and build.onLoad(), which have been
unchanged across esbuild 0.x releases. Changing to >=0.25.9 removes
the artificial upper bound so each new esbuild minor release doesn't
require a corresponding bump here.
@mattmenefee mattmenefee force-pushed the widen-esbuild-peer-dependency branch from 2556982 to 30652d8 Compare April 8, 2026 19:29
@johnie
Copy link
Copy Markdown
Owner

johnie commented Apr 9, 2026

Thanks!

@johnie johnie merged commit b8219d5 into johnie:master Apr 9, 2026
1 check passed
@johnie johnie mentioned this pull request Apr 9, 2026
@mattmenefee mattmenefee deleted the widen-esbuild-peer-dependency branch April 9, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants