Skip to content

Conversation

TristonianJones
Copy link
Collaborator

@TristonianJones TristonianJones commented Jul 8, 2023

The ref.TypeAdapter, ref.TypeProvider, and ref.TypeRegistry have been deprecated in favor of types.Adapter, types.Provider, and types.Registry respectively.

All existing uses of ref.TypeProvider / ref.TypeAdapter interfaces are wrapped into an interop layer under the covers which ensures that all internal objects refer to the new types and interfaces.

This shift marks the deprecation of the last of the exprpb.Type methods, thus simplifying implementation of custom type providers as implementers need only consider the *types.Type and not the ref.Type, exprpb.Type, or any other alternative.

Closes #568

@TristonianJones TristonianJones force-pushed the unify-type-provider branch 2 times, most recently from 764ac0f to 57a22de Compare July 12, 2023 23:54
@TristonianJones TristonianJones marked this pull request as ready for review July 12, 2023 23:54
@TristonianJones TristonianJones force-pushed the unify-type-provider branch 3 times, most recently from 99b1d33 to ade3030 Compare July 14, 2023 18:38
@TristonianJones TristonianJones requested a review from jcking July 14, 2023 18:40
jcking
jcking previously approved these changes Jul 14, 2023
The ref.TypeAdapter, ref.TypeProvider, and ref.TypeRegistry have
been deprecated in favor of types.Adapter, types.Provider, and
types.Registry respectively.

All existing uses of ref.TypeProvider / ref.TypeAdapter interfaces
are wrapped into an interop layer under the covers which ensures
that all internal objects refer to the new types and interfaces.

This shift marks the deprecation of the last of the exprpb.Type
methods, thus simplifying implementation of custom type providers
as implementers need only consider the *types.Type and not the
ref.Type, exprpb.Type, or any other alternative.
@TristonianJones TristonianJones merged commit 5045f58 into google:master Jul 17, 2023
@TristonianJones TristonianJones deleted the unify-type-provider branch July 17, 2023 16:23
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.

Replace exprpb.Type references with cel.Type
2 participants