Repository navigation
Conversation
built_collection 6.0.0 was published on 2026-10-26, but built_value still pins ^5.0.0, so every consumer of built_value is held on 5.x. code_builder (4.13.0), build_runner (2.17.1) and build_daemon (4.1.7) already declare >=5.1.1 <7.0.0 and allow 6.0.0, which makes this constraint the sole remaining blocker (google#1405). The one breaking change in 6.0.0 is that BuiltList.asList, BuiltMap.asMap, BuiltListMultimap.asMap and BuiltSetMultimap.asMap return unmodifiable views instead of copies. built_value itself calls asMap() only on the BuiltMap of builder factories in Serializers.merge, where the result is read through addAll, so an unmodifiable view is fine here. Verified locally with built_collection 6.0.0 resolved: dart analyze is clean and the suites pass -- built_value 252 tests, built_value_generator 106 tests, built_value_test 11 tests. Fixes google#1405.
This was referenced Nov 17, 2026
Collaborator
|
Thanks! built_value isn't maintained here, it's over at the "build" repo; sorry about that. I'll do the version bump over there and release. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Widens the
built_collectionconstraint inbuilt_value/pubspec.yaml:Why
built_collection6.0.0 was published on 2026-10-26, butbuilt_valuestill pins^5.0.0, so every consumer ofbuilt_valueis held on 5.x. The rest of the build stack has already widened:built_collectioncode_builder>=5.1.1 <7.0.0— allows 6.0.0build_runner>=5.1.1 <7.0.0— allows 6.0.0build_daemon>=5.0.0 <7.0.0— allows 6.0.0built_value^5.0.0— blocks 6.0.0A consumer that declares
built_collection: ^6.0.0next tobuild_runnercannot solve:This matches the lower bound the other three already declare, so it does not narrow anything that resolves today — it only admits 6.x. Discussion: #1405.
The 6.0.0 break, and why it does not bite here
The changelog flags one behavioural change:
BuiltList.asList,BuiltMap.asMap,BuiltListMultimap.asMapandBuiltSetMultimap.asMapnow return unmodifiable views instead of copies.built_valuecallsasMap()in exactly one place,Serializers.merge(built_value/lib/src/built_json_serializers.dart:295):The receiver is a plain Dart
Map, and theBuiltMapview is only read from, so returning a view instead of a copy is fine. There are no otherasList()/asMap()call sites inbuilt_value/liborbuilt_value_generator/lib.Verification
Resolved locally against
built_collection6.0.0:dart analyze— clean inbuilt_value,built_value_generator,built_value_test.dart test—built_value252 passed,built_value_generator106 passed,built_value_test11 passed.A
CHANGELOG.mdentry is left to the maintainer, since the release tooling owns the version heading.