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: move exported types out of dev dependencies #1676

Conversation

markormesher
Copy link
Contributor

The types that are exported for this project use types from readable-stream and ws, so those types need to be included as proper dependencies that get shipped to consumers. This PR moves those dependencies out of the dev block, and also bumps the Node types to make sure they work with the latest additions to the readable-stream types (i.e. using asyncDispose).

This ought to fix #1673 (it does for one of my project seeing the same error as that issue).

One downside of this is that consuming projects will need to be on a fairly recent version of @types/node, but I don't think that's the worst thing vs. not working at all for TS projects right now.

@markormesher markormesher changed the title move exported types out of dev deps Move exported types out of dev dependencies Aug 19, 2023
@markormesher markormesher changed the title Move exported types out of dev dependencies [fix] Move exported types out of dev dependencies Aug 19, 2023
@markormesher markormesher changed the title [fix] Move exported types out of dev dependencies fix: Move exported types out of dev dependencies Aug 19, 2023
@robertsLando robertsLando changed the title fix: Move exported types out of dev dependencies fix: move exported types out of dev dependencies Aug 21, 2023
@robertsLando robertsLando enabled auto-merge (squash) August 21, 2023 14:59
@robertsLando robertsLando merged commit 844e4ff into mqttjs:main Aug 21, 2023
5 of 8 checks passed
@markormesher
Copy link
Contributor Author

What's the schedule for cutting releases of this library? Would be great to upgrade this in some projects over the weekend.

@markormesher markormesher deleted the mormesher/move-exported-types-out-of-dev-deps branch August 25, 2023 08:54
@robertsLando
Copy link
Member

I'm on vacation right now so probably next week

@andrewperella
Copy link

any update on this?

@markormesher
Copy link
Contributor Author

@andrewperella This change should be in 5.0.4 onwards

@robertsLando
Copy link
Member

2023-09-29_08-21

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.

5.0.3 fails to compile in TS project
3 participants