Repository navigation
Description
Overview
The v1small version of the Compute Engine API was historically included in the google-cloud-compute library, but it is no longer actively generated, maintained, or intended for use by clients.
As part of the migration of the Node.js monorepo to the new Librarian pipeline, we have implemented strict "freeze" workarounds in the generation tooling to preserve the v1small directory and its exports in src/index.ts exactly as they were, preventing any breaking changes for downstream users in the immediate term.
The Problem
These workarounds introduce some technical debt and complexity into the Librarian generation pipeline. We are currently manually bypassing core generation and post-processing steps (like combine-libraries) specifically for this one deprecated API.
Action Items
To safely remove this technical debt, we need to formally deprecate and remove v1small from the google-cloud-compute package.
- Formal Deprecation: Add deprecation notices/warnings to the
v1smallclients. - Major Version Release: Plan for the complete removal of the
v1smallexports and directory in the next major breaking change release of@google-cloud/compute. - Librarian Cleanup: Once
v1smallis removed fromgoogle-cloud-node, all associated workarounds in thelibrariancodebase must be deleted.
Note for Librarian Maintainers: Once this issue is resolved (the API is removed), the following workarounds in librarian must be removed:
internal/librarian/nodejs/generate.go: Thev1smallpath exclusion inGenerate().internal/librarian/nodejs/generate.go: Thev1smallpath exclusion inupdateSnippetMetadataVersion().internal/librarian/nodejs/generate.go: TheinjectV1SmallExports()function and its invocation.tool/cmd/migrate/nodejs.go: Thev1smallexclusion block in thebuildNodejsLibraryfunction.
Related Issue 4751
Activity