Skip to content

Remove internal copy of FunctionMaps in favour of FunctionMaps.jl package#177

Merged
daanhb merged 3 commits intomasterfrom
dh/extractfunctionmaps
Apr 6, 2026
Merged

Remove internal copy of FunctionMaps in favour of FunctionMaps.jl package#177
daanhb merged 3 commits intomasterfrom
dh/extractfunctionmaps

Conversation

@daanhb
Copy link
Copy Markdown
Member

@daanhb daanhb commented Apr 6, 2026

In the past year, DomainSets has had an internal copy of FunctionMaps, while the package FunctionMaps.jl also existed. This meant that DomainSets and FunctionMaps could not work together.

This PR is the last step in taking out the functionality of FunctionMaps from DomainSets. It aims to do so in a non-breaking way. All functionality of maps that was exported before is still exported. The only difference in functionality comes from small differences between DomainSets.FunctionMaps and the official FunctionMaps. These were some minor cleanups. Deprecations have been added to DomainSets for the transition.

In the next breaking release of DomainSets, the exported functionality related to maps will be unexported. Packages downstream should replace "using DomainSets" by "using DomainSets, FunctionMaps" if they want to retain that functionality. The goal is that, after this PR, "using DomainSets, FunctionMaps" will work both with DomainSets v0.7.17 and DomainSets v0.8.x. Note that it will not work with earlier versions of the 0.7.x series.

In v0.8 we will also distinguish between DomainSets: × (\times) and LinearAlgebra.cross. A deprecation message to that effect is already added in this PR. In v0.7 \times will be the same as LinearAlgebra.cross, but in v0.8 they will be different. In v0.7.17 and v0.8 alike packages can use the new function cartesianproduct instead.

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 6, 2026

Codecov Report

❌ Patch coverage is 66.66667% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.81%. Comparing base (b68ee03) to head (727e660).
⚠️ Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
src/deprecated.jl 0.00% 1 Missing ⚠️
src/generic/mapped.jl 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #177      +/-   ##
==========================================
- Coverage   93.91%   93.81%   -0.11%     
==========================================
  Files          27       28       +1     
  Lines        1842     1844       +2     
==========================================
  Hits         1730     1730              
- Misses        112      114       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@daanhb daanhb changed the title Dh/extractfunctionmaps Remove internal copy of FunctionMaps in favour of FunctionMaps.jl package Apr 6, 2026
@daanhb daanhb merged commit a40a01a into master Apr 6, 2026
6 of 9 checks passed
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