Skip to content

Releases: globus/globus-sdk-javascript

v3.4.0

03 Jun 21:46
bc097e6
Compare
Choose a tag to compare

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

17 May 17:00
1d44b6d
Compare
Choose a tag to compare

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

14 May 17:59
a3fc7f4
Compare
Choose a tag to compare

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

09 May 16:13
af394ca
Compare
Choose a tag to compare

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

03 May 19:57
6d6790c
Compare
Choose a tag to compare

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

01 May 18:22
5a72b5b
Compare
Choose a tag to compare

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)

v3.0.0

26 Apr 20:16
de5e2e6
Compare
Choose a tag to compare
chore: release 3.0.0 (#150)

##
[3.0.0](https://github.com/globus/globus-sdk-javascript/compare/v2.7.1...v3.0.0)
(2024-04-24)


### ⚠ BREAKING CHANGES

* adds support for Authorization and Globus (Auth) token management
([#120](https://github.com/globus/globus-sdk-javascript/issues/120)).
- This is only a breaking change if you were using the _experimental_
authorization features in previous releases.

### Features

* adds support for Authorization and Globus (Auth) token management
([#120](https://github.com/globus/globus-sdk-javascript/issues/120))
([202e416](https://github.com/globus/globus-sdk-javascript/commit/202e416aa79d5bbeac23e00c1271f255789c8761))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

v2.7.1

24 Apr 18:22
d665be7
Compare
Choose a tag to compare

2.7.1 (2024-04-24)

Bug Fixes

  • Types: adds missing endpoint record fields (#148) (eed68af)

v2.7.0

19 Apr 18:36
5442fc4
Compare
Choose a tag to compare

2.7.0 (2024-04-19)

Features

  • Transfer: Add support for collection bookmark methods. (#146) (a5567d1)
  • Transfer: adds resource support for creation and update of GCP collections (#144) (d3ef97a)

v2.6.0

08 Apr 17:05
b760c36
Compare
Choose a tag to compare

2.6.0 (2024-04-08)

Features

  • Compute: adds endpoint.getStatus function to Compute service. (#139) (998bb21)