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

Remove deprecated lwc.buildCustomElementConstructor API #5030

Open
nolanlawson opened this issue Dec 10, 2024 · 2 comments
Open

Remove deprecated lwc.buildCustomElementConstructor API #5030

nolanlawson opened this issue Dec 10, 2024 · 2 comments

Comments

@nolanlawson
Copy link
Collaborator

This API is deprecated in favor of Ctor.CustomElementConstructor and it has roughly zero usage. We should just remove it.

export function deprecatedBuildCustomElementConstructor(
Ctor: ComponentConstructor
): HTMLElementConstructor {
if (process.env.NODE_ENV !== 'production') {
/* eslint-disable-next-line no-console */
console.warn(
'Deprecated function called: "buildCustomElementConstructor" function is deprecated and it will be removed.' +
`Use "${Ctor.name}.CustomElementConstructor" static property of the component constructor to access the corresponding custom element constructor instead.`
);
}
return Ctor.CustomElementConstructor;
}

Copy link

git2gus bot commented Dec 10, 2024

Error while creating work item. No valid build found in GUS!

@nolanlawson nolanlawson removed this from the 9.0.0 milestone Dec 10, 2024
Copy link

git2gus bot commented Dec 10, 2024

This issue has been linked to a new work item: W-17406558

@nolanlawson nolanlawson added this to the 9.0.0 milestone Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant