Skip to content

Conversation

@daniel-chambers
Copy link
Collaborator

@daniel-chambers daniel-chambers commented May 8, 2024

This PR removes the recursion limit placed on the type inference algorithm. Previously it could go 20 steps deep and then would throw an error. This limit was hit when inferring types when using the kubernetes API as a sample. Now we're removing it, as it was originally a debugging aid to quickly prevent "infinite" loops. In the current implementation it is not possible to get infinite loops as we'll have a stack overflow if we end up (through buggy behaviour) in an "infinite" loop.

The PR also updates the TypeScript SDK depended on to the latest version: v4.6.0

@daniel-chambers daniel-chambers self-assigned this May 8, 2024
Copy link

@sordina sordina left a comment

Choose a reason for hiding this comment

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

LGTM!

@daniel-chambers daniel-chambers merged commit 53ae387 into main May 9, 2024
@daniel-chambers daniel-chambers deleted the daniel/remove-recursion-limit branch May 9, 2024 00: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.

2 participants