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

[ssr-client] Move experimental hydrate modules #3720

Merged
merged 10 commits into from Apr 3, 2023
7 changes: 7 additions & 0 deletions packages/lit-element/src/experimental-hydrate-support.ts
Expand Up @@ -8,6 +8,8 @@
* LitElement support for hydration of content rendered using lit-ssr.
*
* @packageDocumentation
*
* @deprecated Moved to `@lit-labs/ssr-client/lit-element-hydrate-support.js`.
*/

import type {PropertyValues} from '@lit/reactive-element';
Expand Down Expand Up @@ -113,3 +115,8 @@ globalThis.litElementHydrateSupport = ({
}
};
};

console.warn(
'Import from `lit-element/experimental-hydrate-support.js` is deprecated.' +
'Import `@lit-labs/ssr-client/lit-element-hydrate-support.js` instead.'
);
3 changes: 3 additions & 0 deletions packages/lit-html/src/experimental-hydrate.ts
Expand Up @@ -113,6 +113,9 @@ type ChildPartState =
* @param rootValue
* @param container
* @param userOptions
*
* @deprecated This has been moved to `@lit-labs/ssr-client` and will be removed
* in a future release.
augustjk marked this conversation as resolved.
Show resolved Hide resolved
*/
export const hydrate = (
rootValue: unknown,
Expand Down