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

feat: Upgrade to long 5.0.0. #882

Merged
merged 4 commits into from
Jul 15, 2023
Merged

feat: Upgrade to long 5.0.0. #882

merged 4 commits into from
Jul 15, 2023

Conversation

stephenh
Copy link
Owner

@stephenh stephenh commented Jul 15, 2023

The long imports are now:

  • import Long from "long" when esModuleInterop is on, and
  • import Long = require("long") when esModuleInterop is off

This is probably always how our imports should have worked, but it is only the long v5 upgrade's UMD fallback that triggers a TS error on our old import * as Long from "long" workaround (when we should have been using import Long = require).

https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require

@stephenh stephenh merged commit 4c1e7a6 into main Jul 15, 2023
6 checks passed
@stephenh stephenh deleted the bump-long branch July 15, 2023 14:46
stephenh pushed a commit that referenced this pull request Jul 15, 2023
# [1.155.0](v1.154.0...v1.155.0) (2023-07-15)

### Features

* Upgrade to long 5.0.0. ([#882](#882)) ([4c1e7a6](4c1e7a6))
@stephenh
Copy link
Owner Author

🎉 This PR is included in version 1.155.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant