Skip to content

Releases: spruceid/ssx

ssx-core/v1.1.0

19 Jan 12:49
6205fc4
Compare
Choose a tag to compare

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, and SSXLensProfilesResponse interfaces;
    • Adds resolveLens?: boolean | 'onServer' property on SSXClientConfig interface;
    • Adds lens?: string | SSXLensProfilesResponse property on SSXClientSession interface;
    • Updates ssxResolveEns docstring;
    • Creates and exports ssxResolveLens method to resolve Lens profiles;
    • Adds tests to the Lens profiles resolution feature.

Patch Changes

  • 6205fc4: Extracted middleware logic to new ssx-server-middleware package. Moved SSXServer class interface to ssx-core and passed around implementation

ssx/v1.1.1

13 Dec 19:09
bce5efc
Compare
Choose a tag to compare

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/ssx-core@1.0.1
    • @spruceid/ssx-gnosis-extension@1.1.1

ssx-serverless/v1.1.1

13 Dec 19:00
bce5efc
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [b25cbde]
    • @spruceid/ssx-core@1.0.1
    • @spruceid/ssx-gnosis-extension@1.1.1

ssx-server/v1.1.1

13 Dec 19:00
bce5efc
Compare
Choose a tag to compare

Patch Changes

  • b25cbde: Updated SSXServerRoutes type to SSXServerRouteNames to reflect usage in ssx-server
  • Updated dependencies [b25cbde]
    • @spruceid/ssx-core@1.0.1
    • @spruceid/ssx-gnosis-extension@1.1.1

ssx-react/v1.1.1

13 Dec 18:58
bce5efc
Compare
Choose a tag to compare

Patch Changes

  • Updated dependencies [b25cbde]
    • @spruceid/ssx@1.1.1

ssx-gnosis-extension/v1.1.1

13 Dec 18:56
bce5efc
Compare
Choose a tag to compare

1.1.1

Patch Changes

  • Updated dependencies [b25cbde]
    • @spruceid/ssx-core@1.0.1

ssx-core/v1.0.1

13 Dec 18:55
bce5efc
Compare
Choose a tag to compare

Patch Changes

  • b25cbde: Updated SSXServerRoutes type to SSXServerRouteNames 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

08 Dec 16:08
6f2be75
Compare
Choose a tag to compare

1.1.0

Minor Changes

  • 83c314c: Enable custom paths for endpoints on client and server.
    Due to the change in SSXClientConfig, 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) and SSXClientConfig;
    • Exports SSXProviders (deprecated) and SSXClientProviders;
    • Exports SSXSession (deprecated) and SSXClientSession;
    • Removes all utils functions. They were moved to ssx-core;
    • Optimizes try/catch blocks;
    • Updates examples/ssx-test-dapp to support ENS resolution from examples/ssx-test-serverless-dynamodb-api.
  • c66f308: Include and export SiweMessage from the siwe dependency.
  • Updated dependencies [c989838]
  • Updated dependencies [83c314c]
    • @spruceid/ssx-core@1.0.0
    • @spruceid/ssx-gnosis-extension@1.1.0

ssx-serverless/v1.1.0

08 Dec 16:07
6f2be75
Compare
Choose a tag to compare

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.
  • Updated dependencies [c989838]

  • Updated dependencies [83c314c]

    • @spruceid/ssx-core@1.0.0
    • @spruceid/ssx-gnosis-extension@1.1.0

ssx-server/v1.1.0

08 Dec 16:08
6f2be75
Compare
Choose a tag to compare

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) and SSXServerConfig;
    • Exports SSXProviders (deprecated) and SSXServerProviders;
    • Removes all utils functions. They were moved to ssx-core;
    • Optimizes try/catch blocks.
  • c66f308: Include and export SiweMessage from the siwe dependency.

  • Updated dependencies [c989838]

  • Updated dependencies [83c314c]

    • @spruceid/ssx-core@1.0.0
    • @spruceid/ssx-gnosis-extension@1.1.0