@backstage/integration 1.8.0-next.1 → 1.9.0-next.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,29 @@
1
1
  # @backstage/integration
2
2
 
3
+ ## 1.9.0-next.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e27b7f3: Fix rate limit detection by looking for HTTP status code 429 and updating the header `x-ratelimit-remaining` to look for in case of a 403 code is returned
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @backstage/config@1.1.1
13
+ - @backstage/errors@1.2.3
14
+
15
+ ## 1.8.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 870db76: Implemented `readTree` for Gitea provider to support TechDocs functionality
20
+
21
+ ### Patch Changes
22
+
23
+ - 99fb541: Updated dependency `@azure/identity` to `^4.0.0`.
24
+ - Updated dependencies
25
+ - @backstage/config@1.1.1
26
+
3
27
  ## 1.8.0-next.1
4
28
 
5
29
  ### Patch Changes
package/dist/index.cjs.js CHANGED
@@ -1878,6 +1878,11 @@ const _GithubIntegration = class _GithubIntegration {
1878
1878
  resolveEditUrl(url) {
1879
1879
  return replaceGithubUrlType(url, "edit");
1880
1880
  }
1881
+ parseRateLimitInfo(response) {
1882
+ return {
1883
+ isRateLimited: response.status === 429 || response.status === 403 && response.headers.get("x-ratelimit-remaining") === "0"
1884
+ };
1885
+ }
1881
1886
  };
1882
1887
  __publicField$4(_GithubIntegration, "factory", ({ config }) => {
1883
1888
  var _a;