All Versions
13
Latest Version
Avg Release Cycle
107 days
Latest Release
593 days ago

Changelog History
Page 1

  • v4.2.0 Changes

    March 03, 2020

    ➕ Added isoDate and isoDateTime masks

  • v4.1.0 Changes

    February 10, 2020
    • ➕ Added Z format token. See readme for more info. Big thanks to @fer22f for writing the code.
    • 🛠 Fixed a strange issue when Peru changed timezones in 1990. See #78
  • v4.0.0 Changes

    January 17, 2020

    Major Features and Breaking changes in this version

    👌 Improvements

    • 📜 Valid date parsing - By default fecha will check validity of dates. Previously 2019-55-01 or 2019-01-42 would parse correctly, since Javascript can handle it. Now invalid dates will return null instead
    • 👍 ES Module and Tree Shaking Support - You can now import fecha parse or format independently ```js import {format, parse} from 'fecha';

    format(...); parse(...)

    
    #### 💥 Breaking changes
    - 👀 `parseDate` may return `null` when previously returned a `Date`. See improvements above, but invalid dates will return `null` now
    - 🔄 Change to how to set masks and i18n
    Previously
    ```js
    import fecha from 'fecha';
    
    fecha.i18n = { ... }
    fecha.masks.myMask = 'DD , MM, YYYY' 
    

    🆕 New

    import {parse, format, setGlobalDateI18n, setGlobalDateMasks} from 'fecha';
    
    setGlobalDateI18n({
        // ...
    })
    setGlobalDateMasks({
      myMask: 'DD , MM, YYYY'
    });
    
  • v4.0.0-alpha.1 Changes

    January 06, 2020

    Major Features and Breaking changes in this version

    👌 Improvements

    • 📜 Valid date parsing - By default fecha will check validity of dates. Previously 2019-55-01 or 2019-01-42 would parse correctly, since Javascript can handle it. Now invalid dates will return null instead
    • 👍 ES Module and Tree Shaking Support - You can now import fecha parse or format independently

      import {format, parse} from 'fecha';format(...);parse(...)

    💥 Breaking changes

    • 👀 parseDate may return null when previously returned a Date. See improvements above, but invalid dates will return null now
    • 🔄 Change to how to set masks and i18n
      Previously

      import fecha from 'fecha';fecha.i18n = { ... }fecha.masks.myMask = 'DD , MM, YYYY'

    🆕 New

    import {parse, format, setGlobalDateI18n, setGlobalDateMasks} from 'fecha';setGlobalDateI18n({ // ...})setGlobalDateMasks({ myMask: 'DD , MM, YYYY'});
    
  • v3.0.3 Changes

    April 16, 2019
    • 🛠 Fixed bug when using brackets when parsing dates
  • v3.0.2 Changes

    December 02, 2018
    • 🛠 Fixed issue where src files are not included correctly in npm
  • v3.0.0 Changes

    • 🚚 Moved to ES modules
    • 🔄 Changed invalid date from false to null
  • v2.3.3 Changes

    February 21, 2018

    🛠 Fixed bug with year 999 not having leading zero

  • v2.3.2 Changes

    ➕ Added typescript definitions to NPM

  • v2.3.1

    May 09, 2017