@@ -326,6 +326,37 @@ After:
326
326
client.Project .GetAll (ctx, &GetQueryOptions{})
327
327
```
328
328
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
+
329
360
### Breaking changes
330
361
331
362
* Jira On-Premise and Jira Cloud have now different clients, because the API differs
@@ -338,6 +369,8 @@ client.Project.GetAll(ctx, &GetQueryOptions{})
338
369
* ` Issue.Update ` has been removed and ` Issue.UpdateWithOptions ` has been renamed to ` Issue.Update `
339
370
* ` Issue.GetCreateMeta ` has been removed and ` Issue.GetCreateMetaWithOptions ` has been renamed to ` Issue.GetCreateMeta `
340
371
* ` 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 `
341
374
342
375
### Features
343
376
0 commit comments