Skip to content

Releases: Tokimon/vanillajs-helpers

Index file build

04 Jan 00:45
fe0c6c6
Compare
Choose a tag to compare
  • Added index.ts file generation to build script
  • Updated dependencies

Remove accidental dependency on `npm-upgrade`

02 Jul 13:14
a350a40
Compare
Choose a tag to compare

Workflow fixes

23 Jun 23:30
Compare
Choose a tag to compare
  • Corrected publishing to github packages (I hope)
  • Ignored github actions workflow files for the npm package

Test refactor

23 Jun 23:16
Compare
Choose a tag to compare
  • Funcitons added:
    • minMax
    • popIndex
    • randomInt
  • Renamed dashed to kebabCase
  • Minor improvements to various functions

Improved `is` functions

21 Mar 18:12
Compare
Choose a tag to compare

The is functions have been improved to now infer a certain type after call. (eg. isString infers that the given variable is a string after returning true)

Major overhaul of released file structure

16 Mar 23:32
Compare
Choose a tag to compare

New shiny file formats

  • .d.ts: Typescript type definition file
  • .mjs: Module (ESNext) format
  • .cjs: CommonJS (ES2017) format
  • .js: ES 5 format

NOTE: The ./ts folder is no longer being published. The .d.ts files replaces the reason that this directory was included in the first place.

Removed redundant methods

  • isArray: Just used Array.isArray, so it made no sense to keep it
  • indexLoop: Added more complexity than it actually solved. It was just another way of doing a loop, and this library does not focus on speed optimization rather than just having simple helpers fro trivial every day code tasks.
  • eachWord: Added more complexity than it actually solved. A simple str.split(/\s+/).forEach() is just as simple

Other noteworthy updates

  • Switched from the discontinued TSLint to ESLint
  • Updated all dependencies to latest versions

Automated docs

17 May 03:34
Compare
Choose a tag to compare
  • Moved .ts files to ./ts folder as having the .ts files with the .js files caused problems
  • Included automated documentation with TypeDocs (so Wiki is no more)
  • Removed BitHound tags from readme as BitHound is closing down

Converted To TypeScript

09 Apr 15:54
Compare
Choose a tag to compare

leftPad + more hex convertion methods

14 Aug 15:00
Compare
Choose a tag to compare

Added methods:

  • leftPad
  • rightPad
  • hexToNumber
  • numberToHex
  • repeatString
  • hexToRGB

v1.1.7

02 Jan 18:04
Compare
Choose a tag to compare
Add es5 to prepublish