@tempots/server 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. package/index.d.ts +3 -3
  2. package/index.js +1 -6
  3. package/package.json +3 -3
package/index.d.ts CHANGED
@@ -45,7 +45,7 @@ export interface HeadlessRenderResult {
45
45
  /**
46
46
  * Current URL signal (useful for routing).
47
47
  */
48
- currentURL: ReturnType<typeof Value.toSignal>["deriveProp"];
48
+ currentURL: ReturnType<typeof Value.toSignal>['deriveProp'];
49
49
  }
50
50
  /**
51
51
  * Renders a Renderable to a Node.js Readable stream.
@@ -101,7 +101,7 @@ export declare function renderToStream(renderable: Renderable, options?: RenderO
101
101
  * @returns A Promise that resolves to the HTML string.
102
102
  * @public
103
103
  */
104
- export declare function renderToString(renderable: Renderable, options?: Omit<RenderOptions, "onShellReady" | "onAllReady">): Promise<string>;
104
+ export declare function renderToString(renderable: Renderable, options?: Omit<RenderOptions, 'onShellReady' | 'onAllReady'>): Promise<string>;
105
105
  /**
106
106
  * Renders a Renderable to static HTML markup without hydration markers.
107
107
  *
@@ -126,7 +126,7 @@ export declare function renderToString(renderable: Renderable, options?: Omit<Re
126
126
  * @returns A Promise that resolves to the static HTML string.
127
127
  * @public
128
128
  */
129
- export declare function renderToStaticMarkup(renderable: Renderable, options?: Omit<RenderOptions, "onShellReady" | "onAllReady" | "generatePlaceholders">): Promise<string>;
129
+ export declare function renderToStaticMarkup(renderable: Renderable, options?: Omit<RenderOptions, 'onShellReady' | 'onAllReady' | 'generatePlaceholders'>): Promise<string>;
130
130
  /**
131
131
  * Options for createRenderer.
132
132
  * @public
package/index.js CHANGED
@@ -81,12 +81,7 @@ function w(r, t) {
81
81
  return n.join("");
82
82
  }
83
83
  function R(r, t = {}) {
84
- const {
85
- hydrate: n = !0,
86
- getData: e,
87
- selector: s = "body",
88
- providers: i = {}
89
- } = t;
84
+ const { hydrate: n = !0, getData: e, selector: s = "body", providers: i = {} } = t;
90
85
  async function f(o) {
91
86
  const a = e ? await e(o) : {};
92
87
  return P(r(a), {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tempots/server",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
@@ -35,7 +35,7 @@
35
35
  "url": "git+https://github.com/fponticelli/tempots.git"
36
36
  },
37
37
  "peerDependencies": {
38
- "@tempots/core": "^2.1.1",
39
- "@tempots/dom": "^36.0.1"
38
+ "@tempots/core": "^3.0.0",
39
+ "@tempots/dom": "^37.0.0"
40
40
  }
41
41
  }