You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These are internal details that help us or end-users with debugging, so I don't think these should be able to be changed via options. If that's our decision, we'll probably need to duplicate some code between arcjet and @arcjet/next for creating the RemoteClient since we won't be able to pass the SDK information as options.
The text was updated successfully, but these errors were encountered:
We need to remove createRemoteClient from the arcjet package since you can't export two functions with the same name. It probably needs to exist in the @arcjet/protocol package. We can then rename createNextRemoteClient (and the others in each adapter) to createRemoteClient and accept a different options object.
blaine-arcjet
changed the title
Should sdkStack and/or sdkVersion be configurable by end users?
Remove createRemoteClient in arcjet and defer to adapters
Jun 11, 2024
Closes#46
This moves the `createClient` logic from the `arcjet` core package into the `@arcjet/protocol` package. It is then consumed by adapters, which all export a `createRemoteClient` function that fills in some of the required data. This ensures we don't try to double export these functions (via re-exports) while still allowing users to dive deep into `@arcjet/protocol/client.js` if they need it.
These are internal details that help us or end-users with debugging, so I don't think these should be able to be changed via options. If that's our decision, we'll probably need to duplicate some code between
arcjet
and@arcjet/next
for creating the RemoteClient since we won't be able to pass the SDK information as options.The text was updated successfully, but these errors were encountered: