@danypops/tickets 0.4.1 → 0.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danypops/tickets",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Unified CLI, daemon, and TypeScript library for issue tracking across GitHub, GitLab, and Jira.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -264,8 +264,11 @@ export class JiraRepository {
264
264
  }
265
265
 
266
266
  private async searchJql(jql: string, limit: number): Promise<Issue[]> {
267
+ // searchForIssuesUsingJqlPost hits the deprecated /rest/api/2/search, which
268
+ // Atlassian has sunset on Jira Cloud (410 Gone). The enhanced variant posts
269
+ // to the still-live /rest/api/2/search/jql with an identical request/response shape.
267
270
  const result = await this.call<{ issues?: JiraIssue[] }>(() =>
268
- this.client.issueSearch.searchForIssuesUsingJqlPost({ jql, maxResults: limit }),
271
+ this.client.issueSearch.searchForIssuesUsingJqlEnhancedSearchPost({ jql, maxResults: limit }),
269
272
  );
270
273
  return (result?.issues ?? []).map((raw) => this.toDomain(raw));
271
274
  }