Releases: Tokimon/vanillajs-helpers
Releases · Tokimon/vanillajs-helpers
Index file build
Remove accidental dependency on `npm-upgrade`
v3.1.2 v3.1.2 (#38)
Workflow fixes
- Corrected publishing to github packages (I hope)
- Ignored github actions workflow files for the npm package
Test refactor
- Funcitons added:
- minMax
- popIndex
- randomInt
- Renamed
dashed
tokebabCase
- Minor improvements to various functions
Improved `is` functions
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
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 usedArray.isArray
, so it made no sense to keep itindexLoop
: 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 simplestr.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
- 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
- All methods (including test files) now written in TypeScript
- Automated documentation published to https://tokimon.github.io/vanillajs-helpers
- Few additions to the library pool
- Improved Readme
leftPad + more hex convertion methods
Added methods:
- leftPad
- rightPad
- hexToNumber
- numberToHex
- repeatString
- hexToRGB