Skip to content

Remove use of optional chaining in client#253

Merged
mattt merged 1 commit intomainfrom
mattt/no-optional-chaining
May 2, 2024
Merged

Remove use of optional chaining in client#253
mattt merged 1 commit intomainfrom
mattt/no-optional-chaining

Conversation

@mattt
Copy link
Copy Markdown
Contributor

@mattt mattt commented May 2, 2024

Despite the optional chaining (?.) operator being supported in Node >= 14, I continue to see anecdotal reports from users of other libraries encountering SyntaxError: Unexpected token '.', even when targeting Node.js 20.

With all the weird, frustrating compatibility issues throughout the JS ecosystem, I take some comfort in having some control that I can exercise over this one. (Maybe I'm paranoid, but hey — at least I'm consistent about it?)

@mattt mattt merged commit 082a0f8 into main May 2, 2024
@mattt mattt deleted the mattt/no-optional-chaining branch May 2, 2024 21:27
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.

1 participant