Skip to content

Releases: lukeed/tinydate

v1.3.0

29 Jun 17:42
Compare
Choose a tag to compare

Features

Chores

v1.2.0

29 Jul 21:52
Compare
Choose a tag to compare

Features

  • Allow custom patterns (#7, #8): 65a64e5

    You may optionally add new patterns or override existing patterns through tinydate's second parameter. You will still receive a render function – now with your customized functionality!

    Important: Each item of your custom dictionary must be a function~!

    const today = new Date('2019-07-04, 5:30:00 PM');
    
    // Example custom dictionary:
    //   - Adds {MMMM}
    //   - Overrides {DD}
    const stamp = tinydate('Today is: {MMMM} {DD}, {YYYY}', {
    	MMMM: d => d.toLocaleString('default', { month: 'long' }),
    	DD: d => d.getDate()
    });
    
    stamp(today);
    //=> 'Today is: July 4, 2019'

Chores

  • Update and lock devDepdencies versions: fa606ab
  • Update module size (+9 bytes): ac24991

v1.1.0

04 Jun 00:24
Compare
Choose a tag to compare

Features

  • Add millisecond support via the {fff} pattern (#5): 22ada81

Chores

v1.0.1

25 Jan 21:44
Compare
Choose a tag to compare

Features!

  • Now available as a UMD module thru unpkg.com, for easy browser compatibility~!
<script src="https://unpkg.com/tinydate"></script>
  • The module entry is now correctly a .mjs extension

Chores

  • Update build tools
  • Update benchmark results
  • Fix .gitignore list