Skip to content

Latest commit

 

History

History
315 lines (219 loc) · 22.2 KB

support.md

File metadata and controls

315 lines (219 loc) · 22.2 KB

What Drift supports

Every row is what the code actually does today. Partial is the common case and always carries a reason underneath — a stage marked partial does something real and does not do something else, and which is which is the part worth knowing.

The distinction this table exists to preserve: "Drift cannot check this here" and "Drift checked and found nothing" are different facts, and only one of them is reassuring. Drift never renders the first as the second.

What the stages mean

Stage Meaning
Detect Drift finds manifests, lockfiles, and the dependency versions that moved.
Evidence Drift retrieves and normalises release, changelog, advisory, and registry evidence.
API surface Drift compares the published API of the two versions.
Static analysis Drift identifies likely affected source references in your repository.
Find upgrades Drift can enumerate newer published versions, so drift outdated and /scan know what is available. Where this is partial, a dependency Drift cannot look up is reported as unchecked — never as up to date.
Install a version Drift can run the package manager to install a version you chose. Where it cannot, Drift tells you exactly what to change and where, rather than running a command that silently changes nothing.
Verify Drift runs the ecosystem's own typecheck, test, and build commands.
Fix Drift produces scoped changes.
Automated PR Drift can branch, validate, commit, push, and open a pull request.

How deep the support goes

Sixteen rows of Partial do not tell you which ecosystems Drift is good at. This does. Three things decide it, and the tier is how many of them hold:

  1. A computed API diff — Drift compares what was actually published, rather than reading the changelog and hoping it is complete.
  2. Module names the package declares — the join between "this changed" and "you use it" runs on names read from the artefact or fixed by the manifest, not on a naming habit Drift is guessing at.
  3. Verification Drift can run — the ecosystem's own build and tests, over the change Drift proposes.
Tier What it means
Deep Drift computes the API diff from the published artefact, joins it to your code against module names the package itself declares, and can run the ecosystem's own build and tests over the result.
Strong Two of the three hold. Drift has a real answer here; one of the diff, the name resolution, or the verification is weaker than the others.
Working One of the three holds. Drift will tell you what moved and research it properly, and leaves more of the judgement with you.
Limited Detected, versioned, and researched. Whether it breaks your code is a question Drift cannot answer in this ecosystem.
Ecosystem Depth Module names
JavaScript / TypeScript Deep Fixed by the manifest — the coordinate is the import name
Python Deep Read from the published artefact
Go Deep Fixed by the manifest — the coordinate is the import name
Rust Deep Fixed by the manifest — the coordinate is the import name
Java / Kotlin / Scala Deep Read from the published artefact
Ruby Strong Read from the published artefact
.NET Deep Read from the published artefact
PHP Strong Read from the published artefact
Elixir / Erlang Deep Read from the published artefact
Dart / Flutter Deep Fixed by the manifest — the coordinate is the import name
Swift Strong Read from the published artefact
CocoaPods Working Read from the published artefact
OCaml Working Inferred from the ecosystem's naming convention
C / C++ (Conan) Strong Inferred from the ecosystem's naming convention
C / C++ (vcpkg) Strong Inferred from the ecosystem's naming convention
Arduino / PlatformIO Strong Inferred from the ecosystem's naming convention

The matrix

Ecosystem Detect Evidence API surface Static analysis Find upgrades Install a version Verify Fix Automated PR
JavaScript / TypeScript Yes Yes Partial Partial Yes Yes Partial Yes Yes
Python Yes Yes Partial Partial Yes Yes Partial Yes Yes
Go Yes Yes Partial Partial Yes Yes Partial Yes Yes
Rust Yes Yes Partial Partial Yes Yes Partial Yes Yes
Java / Kotlin / Scala Partial Yes Partial Partial Yes Partial Partial Partial Yes
Ruby Yes Yes No Partial Yes Yes Partial Yes Yes
.NET Yes Partial Partial Partial Yes Yes Partial Yes Yes
PHP Yes Partial No Partial Yes Yes Partial Yes Yes
Elixir / Erlang Yes Partial Partial Partial Yes Yes Partial Yes Yes
Dart / Flutter Yes Partial Partial Partial Yes Yes Partial Yes Yes
Swift Partial Partial No Partial Partial No Partial Yes Yes
CocoaPods Yes Partial No Partial Yes Yes No Yes Yes
OCaml Yes Partial No Partial Partial Yes Partial Yes Yes
C / C++ (Conan) Partial Partial Partial Partial Partial Yes Partial Yes Yes
C / C++ (vcpkg) Partial Partial Partial Partial Partial Yes Partial Yes Yes
Arduino / PlatformIO Yes Partial Partial Partial Yes Yes Partial Yes Yes

JavaScript / TypeScript

Files: package.json, package-lock.json, pnpm-lock.yaml, yarn.lock, bun.lock, npm-shrinkwrap.json

Package managers: npm, pnpm, Yarn (classic), Yarn (berry), Bun

Depth: Deep. Module names are fixed by the manifest — the coordinate is the import name.

  • API surface — Partial. Diffs published TypeScript declarations. A package that ships no declarations of its own falls back to prose evidence rather than reporting a clean comparison.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Verify — Partial. Runs the typecheck, test, and build scripts the project's package.json actually declares.

Python

Files: pyproject.toml, requirements.in, requirements.txt, setup.py, poetry.lock, uv.lock, Pipfile

Package managers: pip, Poetry, uv

Depth: Deep. Module names are read from the published artefact.

  • API surface — Partial. Compares the public surface reconstructed from published type stubs. Packages without stubs fall back to prose evidence. Requires a local Python interpreter.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Verify — Partial. Runs mypy/pyright and pytest when the project declares them.

Go

Files: go.mod, go.sum

Package managers: Go modules

Depth: Deep. Module names are fixed by the manifest — the coordinate is the import name.

  • API surface — Partial. Compares the exported API of both module versions. Requires the Go toolchain.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Verify — Partial. Runs go vet, go test, and go build. Requires the Go toolchain.

Rust

Files: Cargo.toml, Cargo.lock

Package managers: Cargo

Depth: Deep. Module names are fixed by the manifest — the coordinate is the import name.

  • API surface — Partial. Compares the public API of both crate versions. Requires cargo-public-api.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Verify — Partial. Runs cargo check, cargo test, and cargo build. Requires the Rust toolchain.

Java / Kotlin / Scala

Files: pom.xml, build.gradle, build.gradle.kts, gradle/libs.versions.toml, build.sbt

Package managers: Maven, Gradle, sbt

Depth: Deep. Module names are read from the published artefact.

  • Detect — Partial. Reads pom.xml, Gradle build files and version catalogs, and sbt coordinates. Gradle versions computed at configuration time are not visible without running Gradle.
  • API surface — Partial. Compares both published JARs. Requires japicmp.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Install a version — Partial. Maven can install a chosen version directly. Gradle, sbt cannot: the version lives in a build file the tool will not rewrite, so Drift tells you what to change instead of running something that silently changes nothing.
  • Verify — Partial. Runs Maven or Gradle. sbt projects verify through sbt when it is installed.
  • Fix — Partial. Maven and sbt are edited through the build file; Gradle versions declared outside a version catalog may need a manual edit.

Ruby

Files: Gemfile, Gemfile.lock, *.gemspec

Package managers: Bundler

Depth: Strong. Module names are read from the published artefact.

  • API surface — No. Ruby has no static public API surface to compare, so upgrades rest on release notes, changelogs, and advisories.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Verify — Partial. Runs RSpec or Rake when the Gemfile declares them. Requires Bundler.

.NET

Files: *.csproj, *.fsproj, *.vbproj, Directory.Packages.props, packages.lock.json

Package managers: NuGet

Depth: Deep. Module names are read from the published artefact.

  • Evidence — Partial. Registry metadata, published versions, deprecation, and OSV advisories. Release notes depend on the package declaring a GitHub repository.
  • API surface — Partial. Compares the public types and member signatures in both versions' published assemblies, preferring the reference assembly and a common target framework. A package that ships only native binaries, analyzers, or nothing at all has no surface to compare.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Verify — Partial. Runs dotnet build and dotnet test. Requires the .NET SDK.

PHP

Files: composer.json, composer.lock

Package managers: Composer

Depth: Strong. Module names are read from the published artefact.

  • Evidence — Partial. Registry metadata, published versions, abandonment notices, and OSV advisories. Release notes depend on the package declaring a source repository.
  • API surface — No. PHP publishes no machine-comparable API artefact; upgrades rest on release notes, changelogs, and advisories.
  • Static analysis — Partial. Resolves use statements against the PSR-4 and PSR-0 roots the package declares in its own composer.json, read from Packagist. A package that autoloads only by classmap declares no namespace root and is not localized.
  • Verify — Partial. Runs PHPUnit when composer.json declares it. Requires Composer.

Elixir / Erlang

Files: mix.exs, mix.lock

Package managers: Mix

Depth: Deep. Module names are read from the published artefact.

  • Evidence — Partial. Registry metadata, published versions, retirement notices, and OSV advisories.
  • API surface — Partial. Compares the public modules and their functions, by name and arity, in both versions' published sources — def and defmacro in Elixir, -export in Erlang. A function a macro generates at compile time is not visible without compiling.
  • Static analysis — Partial. Resolves module references against every module the released tarball defines, so a fully qualified call needs no alias to be found. Cannot see through apply/3 or a module name computed at runtime.
  • Verify — Partial. Runs mix compile --warnings-as-errors and mix test. Requires Elixir and Mix.

Dart / Flutter

Files: pubspec.yaml, pubspec.lock

Package managers: Dart pub, Flutter

Depth: Deep. Module names are fixed by the manifest — the coordinate is the import name.

  • Evidence — Partial. Registry metadata, published versions, retraction, and OSV advisories. Release notes depend on the package declaring a repository.
  • API surface — Partial. Compares the public declarations of both versions' published libraries, following each export out of the private lib/src tree the way a consumer's import does. Read from source rather than from a compiled artefact.
  • Static analysis — Partial. Resolves imports against the module names the published package declares, follows re-exports inside your repository, and matches references to symbols named in the evidence. Cannot see through reflection, dynamic dispatch, or generated code.
  • Verify — Partial. Runs dart analyze and dart test, or their Flutter equivalents. Requires the Dart or Flutter SDK.

Swift

Files: Package.swift, Package.resolved

Package managers: Swift Package Manager

Depth: Strong. Module names are read from the published artefact.

  • Detect — Partial. Reads literal .package(...) declarations and Package.resolved. Versions computed by Swift code at manifest-evaluation time are not visible without running SwiftPM.
  • Evidence — Partial. Source repository, releases, and changelogs, because SwiftPM identifies packages by git URL. There is no central registry to query for deprecation.
  • API surface — No. Comparing two Swift module interfaces needs a local toolchain and a built artefact Drift does not produce; upgrades rest on prose evidence.
  • Static analysis — Partial. Resolves import statements against the library and target names declared in the dependency's own Package.swift at the resolved version. A module name a manifest computes at evaluation time is not visible without running SwiftPM.
  • Find upgrades — Partial. Versions are git tags, since SwiftPM has no package registry to ask. Drift lists them for packages hosted on GitHub; anything on another git host is reported as unchecked rather than up to date.
  • Install a version — No. Swift Package Manager has no command that pins a version — the coordinate lives in a build file the tool will not rewrite. Drift reports the version to set and where, and leaves the edit to you.
  • Verify — Partial. Runs swift build and swift test. Requires the Swift toolchain.

CocoaPods

Files: Podfile, Podfile.lock, *.podspec

Package managers: CocoaPods

Depth: Working. Module names are read from the published artefact.

  • Evidence — Partial. Release notes and changelogs when the pod declares a GitHub source. CocoaPods publishes no queryable metadata API, so there is no deprecation or advisory signal.
  • API surface — No. Drift does not compare compiled iOS frameworks; upgrades rest on prose evidence.
  • Static analysis — Partial. Resolves import statements against the module_name the pod declares in its podspec, read from the CocoaPods CDN. A pod that builds its module name in Ruby at podspec-evaluation time is not visible without running CocoaPods.
  • Verify — No. Building an iOS target needs Xcode and a scheme Drift cannot infer; verification stays with the developer.

OCaml

Files: *.opam, dune-project, *.opam.locked

Package managers: opam

Depth: Working. Module names are inferred from the ecosystem's naming convention.

  • Evidence — Partial. Release notes and changelogs when the package declares a GitHub source. opam has no JSON metadata API, so there is no registry deprecation signal.
  • API surface — No. Comparing two OCaml module interfaces needs a built switch Drift does not create; upgrades rest on prose evidence.
  • Static analysis — Partial. Matches imports and references to symbols named in the evidence, using the ecosystem's own module-naming convention where no published module list exists. Cannot see through reflection, dynamic dispatch, or generated code.
  • Find upgrades — Partial. opam publishes no version API, so releases are read from the package directories in the opam-repository index. A package published only in a custom repository is reported as unchecked rather than up to date.
  • Verify — Partial. Runs dune build and dune runtest. Requires opam and dune.

C / C++ (Conan)

Files: conanfile.txt, conanfile.py, conan.lock

Package managers: Conan

Depth: Strong. Module names are inferred from the ecosystem's naming convention.

  • Detect — Partial. Reads conanfile.txt, conan.lock, and the literal requires declarations in conanfile.py. A reference a recipe builds at evaluation time is not visible without running Python.
  • Evidence — Partial. Versions from the ConanCenter recipe index, and releases and changelogs from the upstream project the recipe builds — not from the recipe itself. ConanCenter publishes no deprecation signal, and OSV has no Conan ecosystem.
  • API surface — Partial. Compares the declarations in both versions' public headers, which is what a consumer compiles against. Declarations behind preprocessor conditionals are read as written, not per build configuration.
  • Static analysis — Partial. Matches #include directives and references to symbols named in the evidence, following includes through your own headers so a library reached indirectly still counts. A macro-generated call site is invisible.
  • Find upgrades — Partial. Conan version schemes are package-defined, so Drift can analyze exact version changes but does not invent an ordering to select a newer release automatically.
  • Verify — Partial. Runs conan build, which is the compiler — in C and C++ an incompatible header change is a build failure rather than a runtime surprise. Requires Conan.

C / C++ (vcpkg)

Files: vcpkg.json, vcpkg-configuration.json

Package managers: vcpkg

Depth: Strong. Module names are inferred from the ecosystem's naming convention.

  • Detect — Partial. Reads declared dependencies, version>= floors, and overrides. A registry baseline moving changes every unpinned version at once; Drift reports the baseline move rather than resolving it to versions.
  • Evidence — Partial. Versions from the vcpkg versions database, and releases and changelogs from the port's upstream project. vcpkg publishes no deprecation signal, and OSV has no vcpkg ecosystem.
  • API surface — Partial. Compares the declarations in both versions' public headers, which is what a consumer compiles against. Declarations behind preprocessor conditionals are read as written, not per build configuration.
  • Static analysis — Partial. Matches #include directives and references to symbols named in the evidence, following includes through your own headers so a library reached indirectly still counts. A macro-generated call site is invisible.
  • Find upgrades — Partial. vcpkg versions are port-defined and baseline resolution can change every dependency, so Drift analyzes exact overrides but does not invent an ordering or resolve baseline moves automatically.
  • Verify — Partial. Runs the project's CMake build, which is where an incompatible header change surfaces. Requires CMake.

Arduino / PlatformIO

Files: library.properties, platformio.ini

Package managers: Arduino CLI, PlatformIO

Depth: Strong. Module names are inferred from the ecosystem's naming convention.

  • Evidence — Partial. Versions and repositories from the Arduino Library Manager index, plus releases and changelogs from the library's own repository. A library published only to PlatformIO has metadata but no version history, because that registry serves only the current release.
  • API surface — Partial. Compares the declarations in both versions' public headers, which is what a consumer compiles against. Declarations behind preprocessor conditionals are read as written, not per build configuration.
  • Static analysis — Partial. Matches #include directives and references to symbols named in the evidence, following includes through your own headers so a library reached indirectly still counts. A macro-generated call site is invisible.
  • Verify — Partial. Runs arduino-cli compile or pio run, and pio test where the project has tests. Requires Arduino CLI or PlatformIO.

Ecosystems that are not on this list

Scala is supported, through maven. sbt coordinates resolve to Maven Central artifacts, so build.sbt is parsed into the Maven ecosystem and inherits its registry lookups, its japicmp surface diff, and its OSV advisories. Drift applies the Scala binary-version suffix the way sbt does, so "org" %% "cats-core" is resolved as cats-core_2.13 rather than as an artifact that has never existed.

React Native is supported, as two ecosystems. Its JavaScript half is npm and its native iOS half is cocoapods. This matters more than it sounds: a React Native upgrade routinely moves native pods underneath the JavaScript package, and a tool that reads only package.json reports half the change as though it were all of it.