All Versions
15
Latest Version
Avg Release Cycle
107 days
Latest Release
-

Changelog History
Page 1

  • v4.2.3 Changes

    • ๐Ÿ›  Fixed bug with UTC date on daylights savings time #94
  • v4.2.1 Changes

    • ๐Ÿ›  Fixed missing source map
    • ๐Ÿ›  Fixed security y18n
  • 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