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

Node: extract version from package.json using require() #1217

Merged
merged 1 commit into from Nov 10, 2023

Conversation

camilleoudot
Copy link
Contributor

This allows JS bundlers such as webpack to embed the version string in the bundle. Otherwise a bundled JS app would look for mediasoup's package.json in "../.." on the filesystem (and it's very likely not there).

This allows JS bundlers such as webpack to embed the version string in the
bundle. Otherwise a bundled JS app would look for mediasoup's package.json
in "../.." on the filesystem (and it's very likely not there).
@nazar-pc
Copy link
Collaborator

Why would you use bundlers for server-side JS?

@camilleoudot
Copy link
Contributor Author

In my case it produces a smaller and single artifact, and loads faster, in a context where this really matters.

Copy link
Collaborator

@nazar-pc nazar-pc left a comment

Choose a reason for hiding this comment

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

This makes sense to me

@ibc
Copy link
Member

ibc commented Nov 10, 2023

Bufff, I'm about to just remove that version getter despite it would break API compatibility in v3...

Thanks, merging and releasing.

@ibc ibc merged commit 1ab9796 into versatica:v3 Nov 10, 2023
20 checks passed
@piranna
Copy link
Contributor

piranna commented Nov 11, 2023

Bufff, I'm about to just remove that version getter despite it would break API compatibility in v3...

Maybe time to start with v4 roadmap.

@ibc
Copy link
Member

ibc commented Nov 11, 2023

mediasoup node 3.13.1 released.

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

Successfully merging this pull request may close these issues.

None yet

4 participants