From fa353a315c8f83049205ea46210028c7e7a2546c Mon Sep 17 00:00:00 2001 From: ideacatlab Date: Wed, 17 May 2023 09:30:24 +0300 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=94=A8=20=F0=9F=9A=A7=20=F0=9F=94=92?= =?UTF-8?q?=EF=B8=8F=20=E2=9A=A1=EF=B8=8F=20Gulp=20to=20Vite=20&=20Refacto?= =?UTF-8?q?red=20JavaScript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CHANGELOG.md | 15 ++++ LICENSE | 4 +- bower.json | 5 +- demo/index.html | 2 +- dist/headhesive.js | 150 -------------------------------- dist/headhesive.min.js | 7 -- dist/headhesive.mjs | 96 +++++++++++++++++++++ dist/headhesive.umd.js | 1 + gulpfile.js | 72 ---------------- package.json | 56 ++++-------- src/headhesive.js | 138 ++++++++++++------------------ src/helpers.js | 48 ++++++----- vite.config.js | 19 +++++ yarn.lock | 188 +++++++++++++++++++++++++++++++++++++++++ 14 files changed, 418 insertions(+), 383 deletions(-) delete mode 100644 dist/headhesive.js delete mode 100644 dist/headhesive.min.js create mode 100644 dist/headhesive.mjs create mode 100644 dist/headhesive.umd.js delete mode 100644 gulpfile.js create mode 100644 vite.config.js create mode 100644 yarn.lock diff --git a/CHANGELOG.md b/CHANGELOG.md index 45044ba..a715d55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,20 +1,32 @@ # Headhesive changelog +## v2.0.0 + +- Transitioned from Gulp to Vite build system. +- Refactored JavaScript codebase for improved efficiency and readability. +- Conducted backward compatibility testing. +- Updated the Readme file to reflect changes and provide up-to-date information. + ## v1.2.4 + - Fix resize event when using numerical offset - Fix destroy method for resize event - Changelog corrections ## v1.2.3 + - Readme correction ## v1.2.2 + - Fix UMD support ## v1.2.1 + - Bump version to publish to npm ## v1.2.0 + - Add UMD support - Allow to select either the top or bottom of the offset element - Update the offset position on browser resize @@ -23,11 +35,14 @@ - Make the clone version lower z-index than original. Prevents visual overlap of both when scrolling quickly ## v1.1.1 + - Fix class naming ## v1.1.0 + - Call the init method internally on instance creation - Destroy method to only destroy it's instance ## v1.0.0 + - Initial diff --git a/LICENSE b/LICENSE index 420d665..db99813 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,4 @@ -The MIT License (MIT) - -Copyright (c) 2015 Jim Cowart +# The MIT License (MIT) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/bower.json b/bower.json index 28d9986..5494880 100644 --- a/bower.json +++ b/bower.json @@ -1,11 +1,12 @@ { "name": "Headhesive.js", - "version": "1.2.4", + "version": "2.0.0", "homepage": "http://markgoodyear.com/labs/headhesive/", "authors": [ + "Răzvan Gheorghe (https://ideacat.ro)", "Mark Goodyear (http://markgoodyear.com)" ], - "description": "An on-demand sticky header", + "description": "An on-demand sticky header. 2023 refreshed using Vite", "main": "dist/headhesive.js", "keywords": [ "header", diff --git a/demo/index.html b/demo/index.html index 0f19d8d..3839334 100644 --- a/demo/index.html +++ b/demo/index.html @@ -59,7 +59,7 @@

Scroll to see it in action

- +