Skip to content

Commit

Permalink
chore(main): release 3.3.1 (#178)
Browse files Browse the repository at this point in the history
##
[3.3.1](v3.3.0...v3.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 Authorization manager
should no longer be used.
- The shared `serviceRequest` method has been updated to retrieve tokens
from an `AuthorizationManager`, when passed via `SDKOptions`

This change will allow calls like:

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

Rather than:

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

### Bug Fixes

* **ESM:** addresses missing file extension in generated ESM build
([#177](#177))
([69fe19c](69fe19c))

---
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>
  • Loading branch information
github-actions[bot] authored May 17, 2024
1 parent 7abad5e commit 1d44b6d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.3.0"
".": "3.3.1"
}
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [3.3.1](https://github.com/globus/globus-sdk-javascript/compare/v3.3.0...v3.3.1) (2024-05-17)


### Bug Fixes

* **ESM:** addresses missing file extension in generated ESM build ([#177](https://github.com/globus/globus-sdk-javascript/issues/177)) ([69fe19c](https://github.com/globus/globus-sdk-javascript/commit/69fe19ca7ebd5502b06b624486a60369dbf48898))

## [3.3.0](https://github.com/globus/globus-sdk-javascript/compare/v3.2.0...v3.3.0) (2024-05-14)


Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@globus/sdk",
"version": "3.3.0",
"version": "3.3.1",
"private": true,
"description": "The Globus SDK for JavaScript",
"main": "dist/cjs/index.js",
Expand Down

0 comments on commit 1d44b6d

Please sign in to comment.