Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ses): fix broken types for CJS consumers #2260

Merged
merged 2 commits into from
May 6, 2024

Conversation

boneskull
Copy link
Collaborator

Due to changes in TS v5.5, CJS consumers cannot import types from a type: module package unless the declaration file has the .d.cts extension. This may or may not work the other way.

See the v5.5. beta announcement for further explanation.

@boneskull boneskull self-assigned this Apr 30, 2024
@boneskull boneskull added bug Something isn't working ecosystem-compatibility Tracks a compatibility issue in a third-party package or packages. labels Apr 30, 2024
Copy link
Member

@kriskowal kriskowal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An entry in NEWS.md would be good for this.

packages/ses/scripts/bundle.js Outdated Show resolved Hide resolved
packages/ses/scripts/bundle.js Show resolved Hide resolved
packages/ses/package.json Show resolved Hide resolved
boneskull and others added 2 commits May 6, 2024 12:55
Due to changes in TS v5.5, CJS consumers cannot import types from a `type: module` package unless the declaration file has the `.d.cts` extension.  This may or may not work the other way.

See https://devblogs.microsoft.com/typescript/announcing-typescript-5-5-beta/\#respecting-file-extensions-and-packagejson-in-other-module-modes for explanation.
Co-authored-by: Kris Kowal <kris@agoric.com>
@kriskowal kriskowal merged commit 59bfbd0 into master May 6, 2024
17 checks passed
@kriskowal kriskowal deleted the boneskull/fix-cjs-types branch May 6, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ecosystem-compatibility Tracks a compatibility issue in a third-party package or packages. next-release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants