@unhead/schema 1.1.30 → 1.1.32

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 (2) hide show
  1. package/dist/index.d.ts +16 -3
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -336,13 +336,13 @@ interface HeadEntry<Input> {
336
336
  *
337
337
  * @internal
338
338
  */
339
- _m?: RuntimeMode;
339
+ mode?: RuntimeMode;
340
340
  /**
341
341
  * Transformer function for the entry.
342
342
  *
343
343
  * @internal
344
344
  */
345
- _t?: (input: Input) => Input;
345
+ transform?: (input: unknown) => unknown;
346
346
  /**
347
347
  * Head entry index
348
348
  *
@@ -355,6 +355,18 @@ interface HeadEntry<Input> {
355
355
  * @internal
356
356
  */
357
357
  _sde: SideEffectsRecord;
358
+ /**
359
+ * Default tag position.
360
+ *
361
+ * @internal
362
+ */
363
+ tagPosition?: TagPosition['tagPosition'];
364
+ /**
365
+ * Default tag priority.
366
+ *
367
+ * @internal
368
+ */
369
+ tagPriority?: TagPriority['tagPriority'];
358
370
  }
359
371
  type HeadPlugin = Omit<CreateHeadOptions, 'plugins'>;
360
372
  /**
@@ -375,13 +387,14 @@ interface ActiveHeadEntry<Input> {
375
387
  dispose: () => void;
376
388
  }
377
389
  interface CreateHeadOptions {
390
+ mode?: 'server' | 'client';
378
391
  domDelayFn?: (fn: () => void) => void;
379
392
  document?: Document;
380
393
  plugins?: HeadPlugin[];
381
394
  hooks?: NestedHooks<HeadHooks>;
382
395
  experimentalHashHydration?: boolean;
383
396
  }
384
- interface HeadEntryOptions {
397
+ interface HeadEntryOptions extends TagPosition, TagPriority {
385
398
  mode?: RuntimeMode;
386
399
  transform?: (input: unknown) => unknown;
387
400
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@unhead/schema",
3
3
  "type": "module",
4
- "version": "1.1.30",
5
- "packageManager": "pnpm@8.6.2",
4
+ "version": "1.1.32",
5
+ "packageManager": "pnpm@8.6.7",
6
6
  "author": "Harlan Wilton <harlan@harlanzw.com>",
7
7
  "license": "MIT",
8
8
  "funding": "https://github.com/sponsors/harlan-zw",