Releases: joeleisner/purejs-mousetip
Security Vulnerability Fixes
This patch includes updates dependencies due to security vulnerabilities:
- Updated
@babel/core
and@babel/preset-env
to their latest versions - Updated
gulp-header
to its latest version
Minor upgrades
This patch update includes updated dependencies and a new setting for MouseTip:
- Added npm scripts to alleviate the need for Gulp CLI to be installed globally
- Updated Babel core/preset-env and Gulp to their latest versions
- Replaced gulp-uglifyes with gulp-terser
- Added the ability to set a default message within MouseTip's constructor function
Security Vulnerability Fixes
This patch update includes updated dependencies due to isses with Lodash < 4.17.11. Here's the details:
- Updated gulp-babel, gulp-header, gulp-inject-string, gulp-rename, gulp-uglify, and gulp-uglifyes to their latest versions
- Swapped babel-core and babel-preset-env with @babel/core @babel/preset-env, which required updating the Babel RC file
Gulp Watch Fix
Another minor update in the same day? Yeah, I made a mistake; Here's what I fixed:
- The build-system's
gulp watch
task is now working
Security Vulnerability Fixes
This minor update includes some fixes related to security vulnerabilities! Here's the details:
- Gulp was updated to 4.0 to fix security vulnerabilities
- The build-system was restructured to work with the new version of Gulp
CommonJS & ES2015 Modules
This version now includes CommonJS & ES2015 modules to more easily include Pure JS MouseTip into your projects! Here's the details:
- Modules can be found in the
dist/modules
directory - The CommonJS module exports the class as:
module.exports = MouseTip;
- The ES2015 module exports the class as:
export default MouseTip;
Bug Fixes & Optimizations
This version is a minor update to fix/optimize a few things:
- Fixed a bug that would break mousetip positions set in element attributes when hovering over a child element of the target.
- Changed the constructor's mousetip state to store a DOM reference to the mousetip itself, removing two
document.getElementById(this.selector)
calls.
ES2015 Rebuild & New Features
Version 2.0.0 was rebuilt from the ground up to add new features. Here's some of the changes:
- The main MouseTip constructor function is now an ES2015 class, making for easier code management and shifting towards more modern JS engines. While the default scripts (
mousetip.js
andmousetip.min.js
) are still compatible with older browsers (using Babel.js), the ES2015 versions (mousetip.es2015.js
andmousetip.es2015.min.js
) will become the default in a later release. - A bug was fixed where certain user-set CSS settings were not mapped properly to the constructor's settings.
- The
run()
method was renamed tostart()
to make more sense with the new method addition below - A new
stop()
method was added to stop all mousetip functionality at any time - A new
stylesheet
constructor setting was added (false by default). This allows you to specify not to include inline styles on the mousetip element, and instead expect the styling to be included in a stylesheet on the page. Element attributes will still work in this mode. - The build system has been reworked, include upgraded/new dependencies and a change of structure. The most noticeable change is that the default scripts are now built with Babel.js; While this leads to larger file sizes, it allows for future-proofing our script and ensures more browser support with less testing.
NPM Publish Issues
This release is exactly the same as 1.2.2, except with the version number incremented up by one. Unfortunately, I had mistakenly published a version 1.2.2 a while back and cannot overwrite this unpublished version. Instead of letting release versions get out of sync between the repo and the NPM package, I'm pushing this change to set things straight again.
Build System Improvements
This update includes some build-system improvements:
- All build-system javascript now utilizes ES2015 (ES6) syntax
- Removed the
clean
task from Gulp