Skip to content

Commit 5c072ea

Browse files
Updates shared provider library and leverages code splitting on imports
1 parent bf589c2 commit 5c072ea

File tree

9 files changed

+13
-16
lines changed

9 files changed

+13
-16
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20117,7 +20117,7 @@
2011720117
},
2011820118
"dependencies": {
2011920119
"@gitkraken/gitkraken-components": "10.7.0",
20120-
"@gitkraken/provider-apis": "0.25.7",
20120+
"@gitkraken/provider-apis": "0.26.1",
2012120121
"@gitkraken/shared-web-components": "0.1.1-rc.15",
2012220122
"@gk-nzaytsev/fast-string-truncated-width": "1.1.0",
2012320123
"@lit-labs/signals": "0.1.1",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/commands/patches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EntityIdentifierUtils } from '@gitkraken/provider-apis';
1+
import { EntityIdentifierUtils } from '@gitkraken/provider-apis/entity-identifiers';
22
import type { TextEditor } from 'vscode';
33
import { env, Uri, window, workspace } from 'vscode';
44
import type { ScmResource } from '../@types/vscode.git.resources';

src/plus/drafts/draftsService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { EntityIdentifier } from '@gitkraken/provider-apis';
2-
import { EntityIdentifierUtils } from '@gitkraken/provider-apis';
2+
import { EntityIdentifierUtils } from '@gitkraken/provider-apis/entity-identifiers';
33
import type { Disposable } from 'vscode';
44
import type { HeadersInit } from '@env/fetch';
55
import { getAvatarUri } from '../../avatars';

src/plus/integrations/providers/github/sub-providers/commits.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GitBlame } from '@gitkraken/provider-apis';
1+
import type { GitBlame } from '@gitkraken/provider-apis/providers';
22
import type { Range, Uri } from 'vscode';
33
import type { SearchQuery } from '../../../../../constants.search';
44
import type { Container } from '../../../../../container';

src/plus/integrations/providers/models.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ import type {
2525
Trello,
2626
} from '@gitkraken/provider-apis';
2727
import {
28-
EntityIdentifierUtils,
2928
GitBuildStatusState,
30-
GitProviderUtils,
3129
GitPullRequestMergeableState,
3230
GitPullRequestReviewState,
3331
GitPullRequestState,
3432
} from '@gitkraken/provider-apis';
33+
import { EntityIdentifierUtils } from '@gitkraken/provider-apis/entity-identifiers';
34+
import { GitProviderUtils } from '@gitkraken/provider-apis/provider-utils';
3535
import type { CloudSelfHostedIntegrationId, IntegrationId } from '../../../constants.integrations';
3636
import { HostingIntegrationId, IssueIntegrationId, SelfHostedIntegrationId } from '../../../constants.integrations';
3737
import type { Account as UserAccount } from '../../../git/models/author';

src/plus/integrations/providers/providersApi.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,6 @@ export class ProvidersApi {
199199
getPullRequestsForReposFn: providerApis.bitbucket.getPullRequestsForRepos.bind(
200200
providerApis.bitbucket,
201201
) as GetPullRequestsForReposFn,
202-
getPullRequestsForUserFn: providerApis.bitbucket.getPullRequestsForUser.bind(
203-
providerApis.bitbucket,
204-
) as GetPullRequestsForUserFn,
205202
getPullRequestsForRepoFn: providerApis.bitbucket.getPullRequestsForRepo.bind(
206203
providerApis.bitbucket,
207204
) as GetPullRequestsForRepoFn,

src/plus/launchpad/launchpadProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import type {
22
CodeSuggestionsCountByPrUuid,
33
EnrichedItemsByUniqueId,
44
PullRequestWithUniqueID,
5-
} from '@gitkraken/provider-apis';
5+
} from '@gitkraken/provider-apis/providers';
66
import type { CancellationToken, ConfigurationChangeEvent, Event } from 'vscode';
77
import { Disposable, env, EventEmitter, Uri, window } from 'vscode';
88
import { md5 } from '@env/crypto';

src/webviews/commitDetails/commitDetailsWebview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { EntityIdentifierUtils } from '@gitkraken/provider-apis';
1+
import { EntityIdentifierUtils } from '@gitkraken/provider-apis/entity-identifiers';
22
import type { CancellationToken, ConfigurationChangeEvent, TextDocumentShowOptions } from 'vscode';
33
import { CancellationTokenSource, Disposable, env, Uri, window } from 'vscode';
44
import type { MaybeEnrichedAutolink } from '../../autolinks';

0 commit comments

Comments
 (0)