Skip to content

Replace blanket @reexport with explicit exports#3264

Merged
ChrisRackauckas merged 2 commits intoSciML:v7from
ChrisRackauckas-Claude:v7-explicit-exports
Mar 27, 2026
Merged

Replace blanket @reexport with explicit exports#3264
ChrisRackauckas merged 2 commits intoSciML:v7from
ChrisRackauckas-Claude:v7-explicit-exports

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

Per @oscardssmith's review on #3249: remove all @reexport usage and explicitly list only the ODE-relevant symbols.

  • Remove Reexport dependency entirely
  • Replace @reexport using OrdinaryDiffEqCore with explicit using + export
  • Replace @reexport using OrdinaryDiffEqDefault with explicit using + export
  • Only exports ODE-relevant types (ODEProblem, ODEFunction, callbacks, ReturnCode, etc.)
  • Does NOT export BVProblem, IntegralProblem, OptimizationProblem, or other non-ODE SciMLBase types

Test plan

  • Package loads, all exported algorithms accessible
  • BVProblem correctly not exported
  • solve(prob, Tsit5()) works end-to-end

🤖 Generated with Claude Code

Remove all @reexport usage and explicitly list only the ODE-relevant
symbols that OrdinaryDiffEq should export. This avoids leaking
unrelated SciMLBase exports like BVProblem, IntegralProblem, etc.

- Remove Reexport dependency entirely
- Replace @reexport using OrdinaryDiffEqCore with explicit imports
- Replace @reexport using OrdinaryDiffEqDefault with explicit imports
- Export only ODE problem types, callbacks, algorithms, and utilities

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Per @oscardssmith review:
- Remove DiscreteProblem/DiscreteFunction (not ODE-specific)
- Remove Ensemble algorithm types (EnsembleThreads etc.)
- Remove internal utilities (du_cache, full_cache, u_cache, etc.)
- Remove ODEAliasSpecifier, addsteps!, savevalues!, isfsal, ode_interpolant
- Remove CompositeAlgorithm, AutoSwitch, init types, controllers
- Remove DefaultImplicitODEAlgorithm
- Add ADTypes exports: AutoForwardDiff, AutoFiniteDiff, AutoSparse

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 20b07b2 into SciML:v7 Mar 27, 2026
4 of 16 checks passed
@oscardssmith
Copy link
Copy Markdown
Member

we should also search the rest of the packages here for reexport

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants