Skip to content

Releases: globus/globus-sdk-javascript

v3.5.0

Choose a tag to compare

@github-actions github-actions released this 22 Jul 15:25
cafdbbe

3.5.0 (2024-07-22)

Features

  • Transfer: adds transfer.fileOperations.stat support (#238) (dea8195)

Bug Fixes

  • GLOBUS_SDK_ENVIRONMENT environment variable will now take precedence over GLOBUS_SDK_OPTIONS (#237) (94acd33)

v3.4.3

Choose a tag to compare

@github-actions github-actions released this 15 Jul 15:29
244e1a4

3.4.3 (2024-07-15)

Bug Fixes

  • Errors: updates isAuthorizationRequirementsError method to not require "message" or "code" (#227) (100417e)

v3.4.2

Choose a tag to compare

@github-actions github-actions released this 20 Jun 15:34
fd19e85

3.4.2 (2024-06-20)

Bug Fixes

  • errors, Typescript: adds session_required_policies to AuthorizatonRequirementsError type (#209) (2336eed)

v3.4.1

Choose a tag to compare

@github-actions github-actions released this 12 Jun 21:20
0a7c889

3.4.1 (2024-06-12)

Bug Fixes

  • Authorization: improves AuthorizationRequirementsError type and related utilities. (#206) (eff53c4)
  • Core: updates client information header name (#199) (010f572)
  • Transfer, Typescript: updates return type of transfer.endpointManager.getPauseInfo (PauseInfoLimitedDocument) (#201) (021e46a)

v3.4.0

Choose a tag to compare

@github-actions github-actions released this 03 Jun 21:46
bc097e6

3.4.0 (2024-06-03)

Features

  • Authorization: adds additionalParams option to allow passing arbitrary query parameters through OAuth redirects. (#170) (754b508)
managerInstance.handleErrorResponse(res, {
  additionalParams: {
    retained_state: "example-state",
    retained_route: "example.route",
  },
});
  • GCS: adds HTTPS Access service methods to GCS (#182) (a258082)
    const request = await https.get(GCS_CONFIGURATION, '/my-file.txt', {
      headers: {
        Authorization: 'Bearer an-example-token',
      },
    });

Internal

We've updated the request composition to include an X-Globus-ClientInfo header with requests. This header will include the current SDK version information for use by the Globus platform and support. e.g. X-Globus-ClientInfo: product=javascript-sdk,version=3.4.0;.

v3.3.1

Choose a tag to compare

@github-actions github-actions released this 17 May 17:00
1d44b6d

3.3.1 (2024-05-17)

Features

  • An AuthorizationManager instance can now be provided as a SDKOption; This allows auto-configuration of Authorization headers for requests made using the SDK.
  • Removes getTokenForScope method. This method has been deprecated since the release of 3.0.0 and with the new AuthorizationManager is no longer useful; Tokens are stored by resource_server, not scope.
  • The shared serviceRequest method has been updated to retrieve tokens from an AuthorizationManager, when passed via SDKOptions.

This change simplifies the creation of authorized versions of requests by automatically adding the Authorization header found in the manager instance for the request.

Providing an Authorization header prior to this change...

const manager = sdk.authorization.create({ ..., scopes: 'transfer...' });
sdk.transfer.endpointSearch({ 
  headers: { 
    Authorization: `Bearer ${manager.tokens.transfer.access_token}`
  }
};

Using an AuthorizationManager instance to provide the Authorization header...

const manager = sdk.authorization.create({ ..., scopes: 'transfer...' });
sdk.transfer.endpointSearch({...}, { manager });

headers can still be passed as SDKOptions and a provided headers.Authorization value will take precedence over the manager-lookup.

Bug Fixes

  • ESM: addresses missing file extension in generated ESM build (#177) (69fe19c)

v3.3.0

Choose a tag to compare

@github-actions github-actions released this 14 May 17:59
a3fc7f4

3.3.0 (2024-05-14)

Features

  • The errors module is now exposed as part of the default entry. This includes various utilities (and type guards) for interacting with responses from services. (#166) (0c178b9)

v3.2.0

Choose a tag to compare

@github-actions github-actions released this 09 May 16:13
af394ca

3.2.0 (2024-05-09)

Features

  • Authorization: adds ability to look up GCS tokens (and tokens for arbitrary resource servers) managed by the AuthoirzationManager (client). (#162) (e1cb6b3)

Bug Fixes

  • Authorization: allow creation of AuthorizationManager without a scope parameter (#161) (25d0649)
  • disable importHelpers to avoid peerDependency of tslib for consumers (#157) (e25946b)

v3.1.1

Choose a tag to compare

@github-actions github-actions released this 03 May 19:57
6d6790c

3.1.1 (2024-05-03)

Bug Fixes

  • Authorization: ensure AuthorizationManager.reset only clears values from storage that are prefixed with "<client_id>:" (#154) (84942fb)

v3.1.0

Choose a tag to compare

@github-actions github-actions released this 01 May 18:22
5a72b5b

3.1.0 (2024-05-01)

Features

  • adds application-based utilities structure; adds support for obtaining Globus Web App URLs (sdk.webapp.host(), sdk.webapp.url(), sdk.webapp.urlFor()) (#152) (1be5481)