Skip to content

2.0 Major Release

Compare
Choose a tag to compare
@mattpilott mattpilott released this 19 Jul 22:20
· 37 commits to main since this release

New

  • Clamp module (Returns a clamped value between two points)
  • Cookie module (set, get and unset browser cookies)
  • Nice type module (transforms strings into sentence or title case)
  • Overscroll module (Detects when browser is scrolled to the bottom)
  • Query module (Converts and object to a url query string or vice-versa)
  • To Base64 module (Converts a file/blob to base64 string)
  • Tristate module (returns 1, 0 or -1 based on input being true, false or undefined)
  • Zero dependencies

Breaking

  • Removed WordPress modules
  • Removed svelte/lazy in favour of vanilla/lazy
  • Replaced sentenceCase and titleCase with niceType that does both
  • Removed dayjs integration module
  • Rebuilt niceDay new API
  • Renamed package from @neuekit/utilities to @neuekit/utils

Improvements

  • Modules are importable via top-level import import { getIndex } from '@neuekit/utils'
  • Added tests to most modules (uvu)
  • Added benchmarks to most modules (benchmark.js)
  • Improved niceDate (dependency free and faster implementation)
  • Improved hex module (accepts length as an arg)
  • Improved leadZero module (faster implementation)
  • Improved svelte/storable (ability to reset)
  • Setup github action for tests and code coverage
  • Added new badges
  • Simplified project structure
  • Moved from Rollup to Vite