Skip to content

v1.3.2 — measurementUnit now optional (non-breaking)

Choose a tag to compare

@WillWYQ WillWYQ released this 17 Jun 02:29
· 351 commits to release since this release

Bug fix

Root cause: measurementUnit was introduced in v1.3.0 as a required field in SiteConfig. Downstream installations running pnpm update-site received the new type definition but their existing content/config.ts (which update-site never touches) lacked the field, causing a TS2741 type error and aborting the update.

Fix:

  • lib/config/types.ts — measurementUnit is now optional (measurementUnit?: "metric" | "imperial")
  • lib/utils/units.ts — resolveMeasurementUnit falls back to "metric" when the field is absent

No action required for downstream sellers — pnpm update-site will now complete successfully without any changes to content/config.ts. Sellers who want a unit system other than the default "metric" can still set measurementUnit: "imperial" in their config.