@c-time/frelio-data-json-recipe 1.4.6 → 1.4.7

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 +8 -0
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -71,6 +71,8 @@ type CustomFieldTransform = {
71
71
  type: Exclude<CustomFieldFormatType, 'relationList' | 'constant'>;
72
72
  /** フォーマット文字列(例: "YYYY年MM月DD日", "#,###円") */
73
73
  format?: string;
74
+ /** date 整形時の出力タイムゾーン(オフセット表記: +09:00 / -05:00 / Z)。issue #92 */
75
+ timezone?: string;
74
76
  /** truncate用の文字数 */
75
77
  length?: number;
76
78
  /** truncate用の末尾文字列(デフォルト: "...") */
@@ -342,6 +344,12 @@ type FrelioBuildDataRecipe = {
342
344
  version: '1.0';
343
345
  /** コンテンツタイプ別レシピ */
344
346
  contentTypes: Record<string, ContentTypeRecipe>;
347
+ /**
348
+ * 既定の出力タイムゾーン(issue #92)。
349
+ * customFields の date 整形でフィールド単位の timezone が無い場合のフォールバック。
350
+ * オフセット表記(例 "+09:00")。未設定は UTC。
351
+ */
352
+ outputTimezone?: string;
345
353
  /** 固定ページレシピ */
346
354
  staticPages?: StaticPageRecipe[];
347
355
  /** テンプレートパーツ依存関係 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c-time/frelio-data-json-recipe",
3
- "version": "1.4.6",
3
+ "version": "1.4.7",
4
4
  "description": "Type definitions for frelio data JSON recipe",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",