Skip to content

Use nullish coalescing#136

Merged
lukeocodes merged 3 commits into
mainfrom
usenullishcoalescing
Jun 19, 2023
Merged

Use nullish coalescing#136
lukeocodes merged 3 commits into
mainfrom
usenullishcoalescing

Conversation

@nickottocode

Copy link
Copy Markdown
Contributor

Updates to the Deepgram constructor to use ?? instead of ||. This change makes the SDK compatible with onprem for streaming (batch needs additional updates). The apiUrl could probably be left as ||, but requireSSL needs to be the "nullish coalescing" operator ?? as otherwise if set to "False" for the onprem case the || operator will still default to the default option.

@lukeocodes lukeocodes left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lukeocodes

Copy link
Copy Markdown
Member

@briancbarrow could we tag this as a pre-release before it goes into main and try it on all of the current projects being built?

@lukeocodes lukeocodes merged commit 06e03a6 into main Jun 19, 2023
@lukeocodes lukeocodes deleted the usenullishcoalescing branch June 19, 2023 10:28
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