Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Downgrade socket.io types to same version that nodecg uses #1

Merged
merged 1 commit into from
Sep 25, 2021

Conversation

hlxid
Copy link
Member

@hlxid hlxid commented Sep 25, 2021

In version 1.8.1 of our typings you will get an error if you want to use a NodeCG instance from these typings somewhere where a NodeCG instance of the official typings is expected. This happend because the types of the returned socker.io servers (from NodeCGServer.getSocketIOServer()) would differ.
Before this PR this package uses the 3.x series which are just stubs because with these versions socket.io bundles their own definitions.
To fix this and get the same typings we need to depend on the same socket.io typings from version 2.x/1.x.

Will be released as version 1.8.2.

In version `1.8.1` of our typings you will get an error if you want to use a `NodeCG` instance from these typings somewhere where a `NodeCG` instance of the official typings is expected. This happend because the types of the returned socker.io servers (from `NodeCGServer.getSocketIOServer()`) would differ.
Before this PR this package uses the `3.x` series which are just stubs because with these versions socket.io bundles their own definitions.
To fix this and get the same typings we need to depend on the same socket.io typings from version 2.x/1.x.

Will be released as version `1.8.2`.
@hlxid hlxid self-assigned this Sep 25, 2021
@hlxid hlxid merged commit 749d0c1 into main Sep 25, 2021
@hlxid hlxid deleted the fix/socket.io-typings branch September 25, 2021 20:21
hlxid added a commit to codeoverflow-org/nodecg-io that referenced this pull request Sep 25, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant