surrealdb / surrealdb.js

SurrealDB SDK for JavaScript
https://surrealdb.com
Apache License 2.0
271 stars 46 forks source link

Version check timeout #269

Closed kearfy closed 1 month ago

kearfy commented 1 month ago

Thank you for submitting this pull request! We appreciate you spending the time to work on these changes.

What is the motivation?

Version check would take a long time to complete if the server was unreachable, due to default fetch timeouts in runtimes.

What does this change do?

It adds a versionCheckTimeout option to the .connect({ .. }) method, with a default value of 5000ms.

What is your testing strategy?

N/A

Is this related to any issues?

N/A

Have you read the Contributing Guidelines?