Skip to content

Deprecate the public constructor of generated proxies - #238

Merged
andreaTP merged 1 commit into
roastedroot:mainfrom
andreaTP:deprecate-proxy-constructor
Dec 3, 2026
Merged

andreaTP merged 1 commit into
roastedroot:mainfrom
andreaTP:deprecate-proxy-constructor

Conversation

@andreaTP

@andreaTP andreaTP commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Generated proxies have a builder since #224, X_Proxy.builder(script, ctx).withJsonCodec(codec).build(). This deprecates their public constructor in its favour; it keeps working. The ITs and the Readme now use the builder.

quarkus-quickjs4j's generated beans still call the constructor, so they show a deprecation warning until they switch to X_Proxy.builder(...).build().

Use X_Proxy.builder(...).build() instead; the ITs and the Readme now do.
@andreaTP
andreaTP merged commit f0e0cbc into roastedroot:main Dec 3, 2026
4 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