preact-render-to-string 5.2.3 → 5.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/constants.js CHANGED
@@ -1,14 +1,16 @@
1
- // Options hooks
2
- export const DIFF = '__b';
3
- export const RENDER = '__r';
4
- export const DIFFED = 'diffed';
5
- export const COMMIT = '__c';
6
- export const SKIP_EFFECTS = '__s';
7
-
8
- // VNode properties
9
- export const COMPONENT = '__c';
10
-
11
- // Component properties
12
- export const VNODE = '__v';
13
- export const DIRTY = '__d';
14
- export const NEXT_STATE = '__s';
1
+ // Options hooks
2
+ export const DIFF = '__b';
3
+ export const RENDER = '__r';
4
+ export const DIFFED = 'diffed';
5
+ export const COMMIT = '__c';
6
+ export const SKIP_EFFECTS = '__s';
7
+
8
+ // VNode properties
9
+ export const COMPONENT = '__c';
10
+ export const CHILDREN = '__k';
11
+ export const PARENT = '__';
12
+
13
+ // Component properties
14
+ export const VNODE = '__v';
15
+ export const DIRTY = '__d';
16
+ export const NEXT_STATE = '__s';
package/src/index.d.ts CHANGED
@@ -1,16 +1,16 @@
1
- import { VNode } from 'preact';
2
-
3
- interface Options {
4
- shallow?: boolean;
5
- xml?: boolean;
6
- pretty?: boolean | string;
7
- }
8
-
9
- export function render(vnode: VNode, context?: any, options?: Options): string;
10
- export function renderToString(
11
- vnode: VNode,
12
- context?: any,
13
- options?: Options
14
- ): string;
15
- export function shallowRender(vnode: VNode, context?: any): string;
16
- export default render;
1
+ import { VNode } from 'preact';
2
+
3
+ interface Options {
4
+ shallow?: boolean;
5
+ xml?: boolean;
6
+ pretty?: boolean | string;
7
+ }
8
+
9
+ export function render(vnode: VNode, context?: any, options?: Options): string;
10
+ export function renderToString(
11
+ vnode: VNode,
12
+ context?: any,
13
+ options?: Options
14
+ ): string;
15
+ export function shallowRender(vnode: VNode, context?: any): string;
16
+ export default render;