Modernize the Fleetbase JavaScript SDK for v2 - #33
Open
roncodes wants to merge 13 commits into
Open
Conversation
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Modernizes the official Fleetbase JavaScript SDK as a compatibility-first
2.0.0-next.0release candidate.The implementation replaces the legacy source and hand-written declarations with strict TypeScript while preserving the published v1.2.13 root runtime contract and incorporating the pending v1.2.14 service-quote API. The contract inventory was cross-checked against the official Fleetbase Postman, Core API, and Fleet-Ops repositories.
Public API effect
ServiceQuoteresource and store contract from the maintained API sourcesEngineering and release changes
FLEETBASE_PUBLIC_KEYnpmenvironment, npm trusted publishing/provenance, immutable-tarball checksum evidence, registry byte verification, and GitHub releasesmastertomainmigration runbookFinal evidence for
24c7817CI success: passingpnpm run verify: passingPackage artifact effect
The npm publication is intentionally allowlisted to 12 files: compiled runtime/declaration/source-map outputs plus README, license, changelog, and package metadata. Generated build output and local test/mutation artifacts are not committed.
Risk and rollback
The principal risk is undocumented edge behavior in legacy consumers despite the captured v1 contract. The prerelease
nexttag, exact-package consumer matrix, and first-party validation gate provide the adoption boundary. If a regression is found, do not promote tolatest; fix forward with a new prerelease. Published versions are never overwritten.Owner gates after review
This PR does not publish to npm and does not change the GitHub default branch. After approval:
npmenvironment and npm trusted publisher exactly as documented.mastertomainmigration runbook.nextcandidate in first-party Fleetbase consumers.Official API sources