Skip to content
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

Unify type adapter / provider representations #770

Merged
merged 1 commit into from
Jul 17, 2023

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
cel/env.go Show resolved Hide resolved
cel/env.go Show resolved Hide resolved
cel/env.go Show resolved Hide resolved
cel/env.go Show resolved Hide resolved
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
2 checks passed
@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