Skip to content

Commit 6f4aa97

Browse files
committed
Fix #579: Update changelog
1 parent 4a88a05 commit 6f4aa97

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,37 @@ After:
326326
client.Project.GetAll(ctx, &GetQueryOptions{})
327327
```
328328

329+
#### Cloud/Authentication: `BearerAuthTransport` removed, `PATAuthTransport` renamed
330+
331+
If you used `BearerAuthTransport` or `PATAuthTransport` for authentication, please replace it with `APITokenAuthTransport`.
332+
333+
Before:
334+
335+
```go
336+
tp := jira.BearerAuthTransport{
337+
Token: "token",
338+
}
339+
client, err := jira.NewClient("https://...", tp.Client())
340+
```
341+
342+
or
343+
344+
```go
345+
tp := jira.PATAuthTransport{
346+
Token: "token",
347+
}
348+
client, err := jira.NewClient("https://...", tp.Client())
349+
```
350+
351+
After:
352+
353+
```go
354+
tp := jira.APITokenAuthTransport{
355+
Token: "token",
356+
}
357+
client, err := jira.NewClient("https://...", tp.Client())
358+
```
359+
329360
### Breaking changes
330361

331362
* Jira On-Premise and Jira Cloud have now different clients, because the API differs
@@ -338,6 +369,8 @@ client.Project.GetAll(ctx, &GetQueryOptions{})
338369
* `Issue.Update` has been removed and `Issue.UpdateWithOptions` has been renamed to `Issue.Update`
339370
* `Issue.GetCreateMeta` has been removed and `Issue.GetCreateMetaWithOptions` has been renamed to `Issue.GetCreateMeta`
340371
* `Project.GetList` has been removed and `Project.ListWithOptions` has been renamed to `Project.GetAll`
372+
* Cloud/Authentication: Removed `BearerAuthTransport`, because it was a 100% duplicate of `PATAuthTransport`
373+
* Cloud/Authentication: `PATAuthTransport` was renamed to `APITokenAuthTransport`
341374

342375
### Features
343376

0 commit comments

Comments
 (0)