@gitkraken/provider-apis 0.24.3 → 0.25.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
  # Changelog
2
2
 
3
+ ## 0.25.0
4
+
5
+ - add label filter for pull request and issue fetching functions (GitHub, GitLab)
6
+ - reduce PR page count in order to fix `getPullRequestsForRepos` timing out when fetching some repos (GitHub)
7
+ - correctly handle null data returned from pull request fetch functions (GitHub)
8
+
9
+ ### ⚠️ Breaking Changes
10
+
11
+ We refactored the `EntityIndentifier` types to be more precise. The old types would allow the creation of identifiers that didn't make any sense.
12
+
13
+ For instance, using the old types, one could create a Bitbucket Server entity identifier that does not have a domain:
14
+ ```ts
15
+ const id: BitbucketPullRequestEntityIdentifierInput = {
16
+ provider: EntityIdentifierProviderType.BitbucketServer,
17
+ entityType: EntityType.PullRequest,
18
+ version: EntityVersion.One,
19
+ repoId: 'test-repo',
20
+ entityId: '1',
21
+ domain: undefined
22
+ };
23
+ ```
24
+
25
+ While `validate` function would throw an error for this identifier during runtime, no such error would be shown during transpilation/linting. With the new refactor this version introduces, this invalid validator would display an error in your IDE.
26
+
3
27
  ## 0.24.3
4
28
 
5
29
  - fix pull requests not normalizing their review states correctly (GitLab)