Skip to content

Add named tuples #662

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
May 18, 2025
Merged

Conversation

bishabosha
Copy link
Contributor

the mill version needs a bump to fix a conflict in classpath resolution for the scala 3 library.

@@ -319,6 +322,31 @@ object upickle extends Module{
def moduleDeps = super.moduleDeps ++ Seq(ujson.native().test, core.native().test)
}
}

object `named-tuples` extends Module {
Copy link
Contributor Author

@bishabosha bishabosha Apr 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would assume these need some sort of "RC" version added if you publish before scala 3.7.0 is out

@bishabosha bishabosha force-pushed the feature/upickle-named-tuples branch from c2cf47b to ea5b3e9 Compare April 20, 2025 16:33
@lihaoyi
Copy link
Member

lihaoyi commented Apr 21, 2025

Looks good to me, let's wait till Scala 3.7.0-final is out following week before merging this

bishabosha added 7 commits May 5, 2025 18:18
Move read writers into trait, with a type parameter which
can be instantiated by some concrete upickle cake stack.

concrete objects for default and legacy.

also add `strict` mode that requires exact match of fields when deserializing.
@bishabosha bishabosha force-pushed the feature/upickle-named-tuples branch from 1f55c71 to e4bfad2 Compare May 5, 2025 16:23
@bishabosha
Copy link
Contributor Author

Bumped for 3.7.0

@lihaoyi lihaoyi merged commit aecab28 into com-lihaoyi:main May 18, 2025
8 checks passed
lihaoyi added a commit to com-lihaoyi/mill that referenced this pull request May 18, 2025
Pulls in @bishabosha's work in
com-lihaoyi/upickle#662, which gives us an
opt-in implicit for Scala >=3.7.0 that lets us serialize named tuples as
JSON dictionaries

CC @lefou
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.

2 participants