@gitkraken/core-gitlens 0.9.2 → 0.9.3

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.
Files changed (51) hide show
  1. package/CHANGELOG.md +14 -1
  2. package/dist/plus/git-github/api/github.js +1 -1
  3. package/dist/plus/git-github/api/github.js.map +1 -1
  4. package/dist/plus/integrations/integrationService.d.ts +2 -1
  5. package/dist/plus/integrations/integrationService.js +3 -1
  6. package/dist/plus/integrations/integrationService.js.map +1 -1
  7. package/dist/plus/integrations/models/integration.d.ts +8 -0
  8. package/dist/plus/integrations/models/integration.js +9 -0
  9. package/dist/plus/integrations/models/integration.js.map +1 -1
  10. package/dist/plus/integrations/providers/azure/azure.d.ts +3 -0
  11. package/dist/plus/integrations/providers/azure/azure.js +18 -0
  12. package/dist/plus/integrations/providers/azure/azure.js.map +1 -1
  13. package/dist/plus/integrations/providers/azure/azure.utils.d.ts +12 -0
  14. package/dist/plus/integrations/providers/azure/azure.utils.js +46 -0
  15. package/dist/plus/integrations/providers/azure/azure.utils.js.map +1 -0
  16. package/dist/plus/integrations/providers/azure/models.d.ts +1 -0
  17. package/dist/plus/integrations/providers/azure/models.js +1 -1
  18. package/dist/plus/integrations/providers/azure/models.js.map +1 -1
  19. package/dist/plus/integrations/providers/azureDevOps.d.ts +3 -0
  20. package/dist/plus/integrations/providers/azureDevOps.js +7 -0
  21. package/dist/plus/integrations/providers/azureDevOps.js.map +1 -1
  22. package/dist/plus/integrations/providers/bitbucket/bitbucket.utils.d.ts +17 -0
  23. package/dist/plus/integrations/providers/bitbucket/bitbucket.utils.js +25 -0
  24. package/dist/plus/integrations/providers/bitbucket/bitbucket.utils.js.map +1 -0
  25. package/dist/plus/integrations/providers/bitbucket-server.d.ts +3 -0
  26. package/dist/plus/integrations/providers/bitbucket-server.js +7 -0
  27. package/dist/plus/integrations/providers/bitbucket-server.js.map +1 -1
  28. package/dist/plus/integrations/providers/bitbucket.d.ts +3 -0
  29. package/dist/plus/integrations/providers/bitbucket.js +7 -0
  30. package/dist/plus/integrations/providers/bitbucket.js.map +1 -1
  31. package/dist/plus/integrations/providers/jira-server.d.ts +3 -1
  32. package/dist/plus/integrations/providers/jira-server.js +19 -5
  33. package/dist/plus/integrations/providers/jira-server.js.map +1 -1
  34. package/dist/plus/integrations/providers/jira.d.ts +20 -3
  35. package/dist/plus/integrations/providers/jira.js +129 -50
  36. package/dist/plus/integrations/providers/jira.js.map +1 -1
  37. package/dist/plus/integrations/providers/linear.d.ts +13 -2
  38. package/dist/plus/integrations/providers/linear.js +41 -10
  39. package/dist/plus/integrations/providers/linear.js.map +1 -1
  40. package/dist/plus/integrations/providers/providerErrors.d.ts +11 -0
  41. package/dist/plus/integrations/providers/providerErrors.js +22 -1
  42. package/dist/plus/integrations/providers/providerErrors.js.map +1 -1
  43. package/dist/plus/integrations/providers/utils/discoveryCache.d.ts +36 -0
  44. package/dist/plus/integrations/providers/utils/discoveryCache.js +59 -0
  45. package/dist/plus/integrations/providers/utils/discoveryCache.js.map +1 -0
  46. package/dist/plus/integrations/reads/drains.js +4 -4
  47. package/dist/plus/integrations/reads/drains.js.map +1 -1
  48. package/dist/plus/integrations/reads/warnings.d.ts +11 -0
  49. package/dist/plus/integrations/reads/warnings.js +14 -1
  50. package/dist/plus/integrations/reads/warnings.js.map +1 -1
  51. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,18 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [0.9.3] - 2026-09-30
10
+
11
+ ### Added
12
+
13
+ - Adds single pull request reads and URL identity parsing for Azure DevOps, Bitbucket Cloud and Bitbucket Data Center ([#5886](https://github.com/gitkraken/vscode-gitlens/issues/5886)). `Integration.getPullRequest(resource, id)` and `getPullRequestIdentityFromMaybeUrl(url)`, until now only implemented by GitHub and GitLab, resolve on these hosts too. Azure DevOps reads `{org}/{project}/_apis/git/pullrequests/{id}` — no repository required, since a pull request id is unique within the organization — with the project taken from the descriptor's `project` or else from a `{project}/_git/{repo}` or bare project name, and its URL parser decodes the path and anchors on `/_git/{repo}/pullrequest/{id}`, covering `dev.azure.com`, a Server address behind a virtual directory (dropped from the identity, so the connection's configured URL must include it), the legacy `{org}.visualstudio.com` host, and the short `{org}/_git/{repo}` form. Bitbucket Cloud and Data Center read through the strict by-id reads `getPullRequest` and `getServerPullRequest`, and their parsers accept `{workspace}/{repo}/pull-requests/{id}` and `projects/{KEY}/repos/{repo}/pull-requests/{id}` (a personal repository's `users/{slug}/repos/…` as project `~{slug}`), each rejecting the other's path shapes. Only a 404 resolves to `undefined`; every other failure reaches `getPullRequest`'s own error handling, so it is not cached as a miss (plus/integrations)
14
+
15
+ ### Fixed
16
+
17
+ - Fixes a page-budgeted GitHub pull request sweep reporting its stop as an unrecoverable cap when the account has more than 1,000 matches — the search ceiling is now flagged only on the page where it ends the walk. This also changes an account-wide GitHub `listPullRequestsPage`: a page over the ceiling that can still continue no longer reports `page.truncated` or an `exhausted` warning, and only the page the ceiling ends on does (plus/git-github)
18
+ - Fixes a pull request sweep that stopped at its page budget reporting it cannot be continued once any page was capped. A read that folds several searches into one page (GitHub's per-state facets) caps them independently, so one facet reaching the 1,000-result ceiling no longer hides a sibling that a bigger budget still reaches. This reverses 0.5.102's rule that a cap outranks a budget stop: a stop with a usable cursor is now always `page-budget`, and one drain can report two warnings, the `page-budget` one and, for the part paging could not reach, one with `recovery: 'none'` (or the SDK's own `provider-limit`, when the cap came from its metadata). A consumer that treated `page-budget` as proof the provider capped nothing must now check the drain's other warnings too (plus/integrations)
19
+ - Fixes a tracker's project list (Jira and Jira Data Center projects and sites, Linear teams) being cached for the whole session, so a project created mid-session never appeared in `listIssueTrackerIssuesPage` or `listProjects` until a restart, and a deleted one kept being searched. The list is now dropped when the connection is re-synced (`refreshConnections()`, or `forceSync` on a read), including the copy Jira Cloud persisted for its next connect, and it expires after 5 minutes. A Jira search that fails because its project no longer exists or is no longer visible (`400` "does not exist for the field 'project'") now reads that project as empty and drops the stale list, instead of failing the whole provider on every read (#5907) (plus/integrations)
20
+
9
21
  ## [0.9.2] - 2026-09-30
10
22
 
11
23
  ### Added
@@ -468,7 +480,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p
468
480
 
469
481
  - Initial release. Bundles `@gitlens/utils`, `@gitlens/git`, `@gitlens/git-cli`, `@gitlens/ai`, and `@gitlens/git-github` into a single core npm package with subpath exports.
470
482
 
471
- [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.9.2...HEAD
483
+ [unreleased]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.9.3...HEAD
484
+ [0.9.3]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.9.2...gitkraken:releases/core/v0.9.3
472
485
  [0.9.2]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.9.1...gitkraken:releases/core/v0.9.2
473
486
  [0.9.1]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.9.0...gitkraken:releases/core/v0.9.1
474
487
  [0.9.0]: https://github.com/gitkraken/vscode-gitlens/compare/releases/core/v0.8.0...gitkraken:releases/core/v0.9.0
@@ -2043,7 +2043,7 @@ var GitHubApi = class {
2043
2043
  values: rsp.search.nodes.map((pr) => options?.summary ? fromGitHubPullRequestLite(pr, provider) : fromGitHubPullRequest(pr, provider)),
2044
2044
  cursor: rsp.search.pageInfo.endCursor ?? void 0,
2045
2045
  hasMore: rsp.search.pageInfo.hasNextPage,
2046
- truncated: rsp.search.issueCount > githubSearchResultLimit
2046
+ truncated: rsp.search.issueCount > 1e3 && !rsp.search.pageInfo.hasNextPage
2047
2047
  };
2048
2048
  } catch (ex) {
2049
2049
  throw this.handleException(ex, provider, scope, options?.silent);