Skip to content

2.6.1

Compare
Choose a tag to compare
@zcohan zcohan released this 26 Mar 21:06

Places

  • Added new properties country and city on Place. These will return the associated country for a City, and the capital city of a Country. It will also return the associated city with an Airport place
  • Added some additional places: Mauritius, French Guiana, Martinique, La Réunion, & Guadeloupe

Units

  • Support for generic custom units (defined not in terms of an existing unit)
  • Use undefined as your equivalentUnitIdentifier

Linear growth functions

  • Linear growth functions can now omit the starting quantity (it will be assumed to be 0)
  • For instance "time to $100 at $4 every hour" (= 25 hours)

Misc

  • CSS units (em, rem & px) will now always be formatted using a standard US decimal character (.) so they can be immediately pasted into CSS files.
  • Phrases like "days left in 2024" now use round numbers
  • Fixed an issue with a spaceless compound quantity of time not being correctly recognized, like "2hr1min"
  • You can now convert timespans into "months and days"