Обновление @google-cloud/storage с 8.x до 9.x
Сравнение публичного API @google-cloud/storage 8.4.0 и 9.0.0, вычисленное автоматически по их типам TypeScript. Изменённая сигнатура — возможное несовместимое изменение, а не гарантия.
Сводка
| Удалённые пути импорта | 0 |
|---|---|
| Удалённые экспорты | 1 |
| Изменённые сигнатуры | 2 |
| Удалённые члены классов или интерфейсов | 36 |
| Изменённые члены классов или интерфейсов | 16 |
| Новые устаревания | 0 |
| Изменения требований (engines, peer-зависимости) | 0 |
| Новые экспорты | 0 |
Удалённые экспорты
| import | export | kind | Было |
|---|---|---|---|
@google-cloud/storage | ApiError | class | class |
Изменённые сигнатуры
| export | Было | Стало |
|---|---|---|
@google-cloud/storage · GetBucketsResponse | [Bucket[], {}, unknown] | [Bucket[], unknown] |
@google-cloud/storage · RETRYABLE_ERR_FN_DEFAULT | (err?: ApiError | undefined): boolean | (err?: any): boolean |
Удалённые члены классов или интерфейсов
| member | import | Было |
|---|---|---|
Iam.request_ | @google-cloud/storage | any |
Iam.resourceId_ | @google-cloud/storage | any |
File.request | @google-cloud/storage | (reqOpts: DecorateRequestOptions): Promise<RequestResponse> | (reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void |
File.request_ | @google-cloud/storage | any |
File.requestStream | @google-cloud/storage | (reqOpts: DecorateRequestOptions): TeenyRequest |
File.getRequestInterceptors | @google-cloud/storage | (): Function[] |
Bucket.request | @google-cloud/storage | (reqOpts: DecorateRequestOptions): Promise<RequestResponse> | (reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void |
Bucket.request_ | @google-cloud/storage | any |
Bucket.requestStream | @google-cloud/storage | (reqOpts: DecorateRequestOptions): TeenyRequest |
Bucket.getRequestInterceptors | @google-cloud/storage | (): Function[] |
Channel.request | @google-cloud/storage | (reqOpts: DecorateRequestOptions): Promise<RequestResponse> | (reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void |
Channel.request_ | @google-cloud/storage | any |
Channel.requestStream | @google-cloud/storage | (reqOpts: DecorateRequestOptions): TeenyRequest |
Channel.getRequestInterceptors | @google-cloud/storage | (): Function[] |
HmacKey.request | @google-cloud/storage | (reqOpts: DecorateRequestOptions): Promise<RequestResponse> | (reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void |
HmacKey.request_ | @google-cloud/storage | any |
HmacKey.requestStream | @google-cloud/storage | (reqOpts: DecorateRequestOptions): TeenyRequest |
HmacKey.getRequestInterceptors | @google-cloud/storage | (): Function[] |
Storage.request | @google-cloud/storage | (reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void |
Storage.timeout | @google-cloud/storage | number | undefined |
Storage.request_ | @google-cloud/storage | any |
Storage.authClient | @google-cloud/storage | GoogleAuth<AuthClient> |
Storage.packageJson | @google-cloud/storage | any |
Storage.getProjectId | @google-cloud/storage | (): Promise<string> | (callback: (err: Error | null, projectId?: string | undefined) => void): void |
Storage.requestStream | @google-cloud/storage | (reqOpts: DecorateRequestOptions): Request |
Storage.getProjectIdAsync | @google-cloud/storage | (): Promise<string> |
Storage.projectIdRequired | @google-cloud/storage | any |
Storage.providedUserAgent | @google-cloud/storage | string | undefined |
Storage.globalInterceptors | @google-cloud/storage | any |
Storage.getRequestInterceptors | @google-cloud/storage | (): Function[] |
Storage.makeAuthenticatedRequest | @google-cloud/storage | (reqOpts: DecorateRequestOptions): Duplexify | (reqOpts: DecorateRequestOptions, options?: MakeAuthenticatedRequestOptions | undefined): void | Abortable | (reqOpts: DecorateRequestOptions, callback?: BodyResponseCallback | undefined): void | Abortable | (reqOpts: DecorateRequestOptions, optionsOrCa… |
AclOptions.request | @google-cloud/storage | (reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void |
Notification.request | @google-cloud/storage | (reqOpts: DecorateRequestOptions): Promise<RequestResponse> | (reqOpts: DecorateRequestOptions, callback: BodyResponseCallback): void |
Notification.request_ | @google-cloud/storage | any |
Notification.requestStream | @google-cloud/storage | (reqOpts: DecorateRequestOptions): TeenyRequest |
Notification.getRequestInterceptors | @google-cloud/storage | (): Function[] |
Изменённые члены классов или интерфейсов
| member | Было | Стало |
|---|---|---|
File.delete | (options?: DeleteOptions | undefined): Promise<[TeenyResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void | (options?: DeleteOptions | undefined): Promise<[GaxiosResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void |
File.interceptors | Interceptor[] | GaxiosInterceptor<GaxiosOptionsPrepared>[] |
File.startSimpleUpload_ | (dup: Duplexify, options?: CreateWriteStreamOptions | undefined): void | (dup: Duplexify, options?: any): void |
Bucket.delete | (options?: DeleteOptions | undefined): Promise<[TeenyResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void | (options?: DeleteOptions | undefined): Promise<[GaxiosResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void |
Bucket.interceptors | Interceptor[] | GaxiosInterceptor<GaxiosOptionsPrepared>[] |
Channel.delete | (options?: DeleteOptions | undefined): Promise<[TeenyResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void | (options?: DeleteOptions | undefined): Promise<[GaxiosResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void |
Channel.interceptors | Interceptor[] | GaxiosInterceptor<GaxiosOptionsPrepared>[] |
HmacKey.delete | (options?: DeleteOptions | undefined): Promise<[TeenyResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void | (options?: DeleteOptions | undefined): Promise<[GaxiosResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void |
HmacKey.interceptors | Interceptor[] | GaxiosInterceptor<GaxiosOptionsPrepared>[] |
Storage.projectId | string | string | undefined |
Storage.interceptors | Interceptor[] | GaxiosInterceptor<GaxiosOptionsPrepared>[] |
AclMetadata.projectTeam | { projectNumber?: string | undefined; team?: "editors" | "owners" | "viewers" | undefined; } | undefined | { projectNumber?: string | undefined; team?: string | undefined; } | undefined |
Notification.delete | (options?: DeleteOptions | undefined): Promise<[TeenyResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void | (options?: DeleteOptions | undefined): Promise<[GaxiosResponse]> | (options: DeleteOptions, callback: DeleteCallback): void | (callback: DeleteCallback): void |
Notification.interceptors | Interceptor[] | GaxiosInterceptor<GaxiosOptionsPrepared>[] |
StorageOptions.interceptors_ | Interceptor[] | undefined | GaxiosInterceptor<GaxiosOptionsPrepared>[] | undefined |
AccessControlObject.projectTeam | string | { projectNumber?: string | undefined; team?: string | undefined; } | undefined |
Новые устаревания
Не обнаружено.
Изменения требований (engines, peer-зависимости)
Не обнаружено.
Передайте эти данные своему ИИ-агенту
Vigia — бесплатный MCP-сервер: ваш агент для программирования проверяет версии, несовместимые изменения и уязвимости до того, как напишет код. Без регистрации и API-ключа.
claude mcp add --transport http vigia https://vigia.coredls.cloud/mcp
Добавить в CursorДобавить в VS Code★ Звезда на GitHub
Любой другой MCP-клиент
{ "mcpServers": { "vigia": { "url": "https://vigia.coredls.cloud/mcp" } } }Навык для агентов (SKILL.md): подсказывает агенту, когда использовать Vigia · GitHub Action для pull request
Часто задаваемые вопросы
Какие несовместимые изменения при обновлении @google-cloud/storage с 8 до 9?
Между @google-cloud/storage 8.4.0 и 9.0.0 Vigia нашла удалённых экспортов: 1, изменённых сигнатур: 2, удалённых или изменённых членов классов и интерфейсов: 52.
Что устарело в @google-cloud/storage 9?
В @google-cloud/storage 9.0.0 новыми устаревшими помечено экспортов или членов: 0.
Для агентов
GET https://vigia.coredls.cloud/v1/packages/npm/@google-cloud/storage/upgrade?from=8.4.0&to=9.0.0