Skip to content

Allow Parameters 0.13 so OrderedCollections 2 can resolve - #39

Open
matthew-liu-1 wants to merge 1 commit into
StanJulia:masterfrom
jahan-open:compat/orderedcollections-2
Open

matthew-liu-1 wants to merge 1 commit into
StanJulia:masterfrom
jahan-open:compat/orderedcollections-2

Conversation

@matthew-liu-1

@matthew-liu-1 matthew-liu-1 commented Sep 30, 2026 •

Copy link
Copy Markdown

Summary

Widens one compat bound so StanOptimize can be used in environments that need
OrderedCollections 2, and bumps the patch version to 4.4.5.

-Parameters = "0.12"
+Parameters = "0.12, 0.13"

Why this matters for OrderedCollections 2

StanOptimize has no OrderedCollections dependency at all, so this looks
unrelated — but every Parameters 0.12.x release caps OrderedCollections to
1.x. With Parameters = "0.12" here, StanOptimize transitively pins
OrderedCollections below 2 for any environment that includes it. Parameters
0.13.1 is the only release in the 0.12–0.13 range that admits OrderedCollections 2.

Companion PRs widen the same bound (plus OrderedCollections itself) in
StanJulia/StanSample.jl and StanJulia/StanBase.jl. All three are needed together;
any one of them left at Parameters = "0.12" keeps the whole environment on
OrderedCollections 1.x. We hit this trying to run MLJLinearModels at head, which
needs OrderedCollections 2 in the resolved environment.

Why no code changes are needed

StanOptimize imports Parameters but uses no macro from it anywhere in src/
— no @with_kw, @unpack, @pack!, reconstruct or type2dict. Parameters
0.13's only breaking change is dropping the deprecated @pack alias (@pack!
stays).

Testing

Julia 1.10.12, Linux x86_64, CmdStan 2.32.0 and 2.36.0.

  • StanOptimize precompiles cleanly against Parameters 0.13.1 + OrderedCollections 2.0.1.
  • stan_optimize runs correctly end-to-end on a Bernoulli model (success(rc) == true).
  • With all three companion widenings applied, our full downstream environment
    resolves at OrderedCollections 2.0.1, and StanSample's own suite is green there
    (260 passed, 0 failed).

Widens one compat bound and bumps the patch version to 4.4.5.

StanOptimize does not depend on OrderedCollections directly, so this looks
unrelated, but every Parameters 0.12.x release caps OrderedCollections to
1.x. With `Parameters = "0.12"` here, StanOptimize transitively pins
OrderedCollections below 2 for every environment that includes it.
Parameters 0.13.1 is the only release in the 0.12-0.13 range that admits
OrderedCollections 2.

No code changes are needed: StanOptimize imports Parameters but uses no
macro from it anywhere in src/, and Parameters 0.13's only breaking change
is dropping the deprecated `@pack` alias.
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.

1 participant