Skip to content

Commit a9b12d9

Browse files
authored
chore: Update 'replaceNode' deprecation comment to point at new shim (#4844)
1 parent 504eb5c commit a9b12d9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/index-5.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,10 @@ interface ContainerNode {
301301

302302
export function render(vnode: ComponentChild, parent: ContainerNode): void;
303303
/**
304-
* @deprecated Will be removed in v11.
304+
* @deprecated The `replaceNode` parameter will be removed in v11.
305305
*
306-
* Replacement Preact 10+ implementation can be found here: https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c
306+
* Replacement Preact 10+ implementation can be found in the `preact-root-fragment` package.
307+
* Docs: https://github.com/preactjs/preact-root-fragment
307308
*/
308309
export function render(
309310
vnode: ComponentChild,

src/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -301,9 +301,10 @@ interface ContainerNode {
301301

302302
export function render(vnode: ComponentChild, parent: ContainerNode): void;
303303
/**
304-
* @deprecated Will be removed in v11.
304+
* @deprecated The `replaceNode` parameter will be removed in v11.
305305
*
306-
* Replacement Preact 10+ implementation can be found here: https://gist.github.com/developit/f4c67a2ede71dc2fab7f357f39cff28c
306+
* Replacement Preact 10+ implementation can be found in the `preact-root-fragment` package.
307+
* Docs: https://github.com/preactjs/preact-root-fragment
307308
*/
308309
export function render(
309310
vnode: ComponentChild,

0 commit comments

Comments
 (0)