Releases: spruceid/ssx
ssx-core/v1.1.0
Minor Changes
-
6205fc4: Added support for customAPIOperations in the SSX server configuration. This allows for configurations that execute a function instead of making a request to the configured endpoint for any of the ssx endpoints (nonce, login, logout).
-
24a7220: Adds Lens resolution feature to the client and server to allow the developer to choose where to resolve it. This feature is available to Polygon Mainnet and Mumbai Testnet (visit https://docs.lens.xyz/docs/api-links for more information).
- Creates and exports
SSXLensProfilesPageInfo
,SSXLensProfileData
, andSSXLensProfilesResponse
interfaces; - Adds
resolveLens?: boolean | 'onServer'
property onSSXClientConfig
interface; - Adds
lens?: string | SSXLensProfilesResponse
property onSSXClientSession
interface; - Updates
ssxResolveEns
docstring; - Creates and exports
ssxResolveLens
method to resolve Lens profiles; - Adds tests to the Lens profiles resolution feature.
- Creates and exports
Patch Changes
- 6205fc4: Extracted middleware logic to new ssx-server-middleware package. Moved
SSXServer
class interface tossx-core
and passed around implementation
ssx/v1.1.1
Patch Changes
Update the ssx configuration to accept updated parameters for the server routes. These routes can now accept a more complex configuration, allow for different connections to different backends.
const ssx = new SSX({
providers: {
server: {
host: 'http://ssx-server-host.com'
routes: {
nonce: {
url: '/ssx-custom-nonce',
method: 'post'
}
}
}
}
});
- b25cbde: Update the
SSXServerRoutes
type to accept a route configuration compatible with Axios Request Config to allow for more complex server configurations. - Updated dependencies [b25cbde]
- @spruceid/[email protected]
- @spruceid/[email protected]
ssx-serverless/v1.1.1
Patch Changes
- Updated dependencies [b25cbde]
- @spruceid/[email protected]
- @spruceid/[email protected]
ssx-server/v1.1.1
Patch Changes
- b25cbde: Updated
SSXServerRoutes
type toSSXServerRouteNames
to reflect usage in ssx-server - Updated dependencies [b25cbde]
- @spruceid/[email protected]
- @spruceid/[email protected]
ssx-react/v1.1.1
Patch Changes
- Updated dependencies [b25cbde]
- @spruceid/[email protected]
ssx-gnosis-extension/v1.1.1
ssx-core/v1.0.1
Patch Changes
- b25cbde: Updated
SSXServerRoutes
type toSSXServerRouteNames
to reflect usage in ssx-server - b25cbde: Update the
SSXServerRoutes
type to accept a route configuration compatible with Axios Request Config to allow for more complex server configurations.
ssx-sdk/v1.1.0
1.1.0
Minor Changes
-
83c314c: Enable custom paths for endpoints on client and server.
Due to the change inSSXClientConfig
, it now accepts the server's routes configuration:const ssx = new SSX({ providers: { server: { host: 'http://localhost:3001', routes: { nonce: '/ssx-custom-nonce', login: '/ssx-custom-login', logout: '/ssx-custom-logout', } } } });
This is an optional configuration and the default values are:
nonce: '/ssx-nonce'
,login: '/ssx-login'
,logout: '/ssx-logout'
. It isn't necessary to override all of them, you can only override one of them.
Patch Changes
- c989838: Refactor code to avoid duplication and improve performance.
- Adds
@spruceid/ssx-core
as a dependency; - Removes all types and interfaces declarations. They were moved to
ssx-core
; - Exports
SSXConfig
(deprecated) andSSXClientConfig
; - Exports
SSXProviders
(deprecated) andSSXClientProviders
; - Exports
SSXSession
(deprecated) andSSXClientSession
; - Removes all utils functions. They were moved to
ssx-core
; - Optimizes
try/catch
blocks; - Updates
examples/ssx-test-dapp
to support ENS resolution fromexamples/ssx-test-serverless-dynamodb-api
.
- Adds
- c66f308: Include and export
SiweMessage
from thesiwe
dependency. - Updated dependencies [c989838]
- Updated dependencies [83c314c]
- @spruceid/[email protected]
- @spruceid/[email protected]
ssx-serverless/v1.1.0
Minor Changes
-
c989838: Refactor code to avoid duplication and improve performance.
- Adds
@spruceid/ssx-core
as a dependency; - Removes some types and interfaces declarations. They were moved to
ssx-core
; - Removes all utils functions. They were moved to
ssx-core
; - Optimizes
try/catch
blocks; - Changes axios version to
"^0.27.2"
; - Updates
examples/ssx-test-serverless-dynamodb-api
to resolve ENS according to the request params and fixes the/ssx-login
JSON response.
- Adds
-
Updated dependencies [c989838]
-
Updated dependencies [83c314c]
- @spruceid/[email protected]
- @spruceid/[email protected]
ssx-server/v1.1.0
Minor Changes
-
83c314c: Enable custom paths for endpoints on client and server.
This now accepts the routes configuration when instantiating the middlewares as follows:const expressMiddleware = SSXExpressMiddleware(ssx, { nonce: '/ssx-custom-nonce', login: '/ssx-custom-login', logout: '/ssx-custom-logout', }); // or const httpMiddleware = SSXHttpMiddleware(ssx, { nonce: '/ssx-custom-nonce', login: '/ssx-custom-login', logout: '/ssx-custom-logout', });
The second parameter with the configuration object is optional and the default values are:
nonce: '/ssx-nonce'
,login: '/ssx-login'
,logout: '/ssx-logout'
. It isn't necessary to override all of them, you can only override one of them.
Patch Changes
-
c989838: Refactor code to avoid duplication and improve performance.
- Adds
@spruceid/ssx-core
as a dependency; - Removes all types and interfaces declarations. They were moved to
ssx-core
; - Exports
SSXConfig
(deprecated) andSSXServerConfig
; - Exports
SSXProviders
(deprecated) andSSXServerProviders
; - Removes all utils functions. They were moved to
ssx-core
; - Optimizes
try/catch
blocks.
- Adds
-
c66f308: Include and export
SiweMessage
from thesiwe
dependency. -
Updated dependencies [c989838]
-
Updated dependencies [83c314c]
- @spruceid/[email protected]
- @spruceid/[email protected]