Skip to content

Commit

Permalink
Add deprecation notes to original
Browse files Browse the repository at this point in the history
  • Loading branch information
augustjk committed Mar 27, 2023
1 parent 0d04bcc commit 88559ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
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.
*/
export const hydrate = (
rootValue: unknown,
Expand Down

0 comments on commit 88559ff

Please sign in to comment.