Releases Tags
-
v2.0.0
released this 5 months ago | 0 commits to main since this release
Added
-
BREAKING: new (auto-)init behaviour, inspired by petite-vue
-
require
,import
, or use<script>
to include Shareon without
initialization -
use exported
initializeShareon
function in Node to initialize Shareon -
use
init
attribute inscript
to initialize Shareon in-browser<script src="path/to/shareon.js" init>
-
-
CSS export for use in Webpack/Rollup/etc. (#35)
import "shareon/css";
require("shareon/css");
Changed
- BREAKING: default version of the package doesn't auto-initialize buttons
- BREAKING: instead of default export, named exports are now used. If IIFE
is used, the global object's name is nowShareon
, and it has oneinit()
method - updated logos and colours for some social networks
- removed mixins, defining the code/styles directly in the files
- use Vite for building, reducing the devDependencies
tree and build times drastically- BREAKING: newly built files offer worse browser support
- change code style to Prettier
Removed
- BREAKING:
noinit
version of the package is removed
Downloads
- Source Code (ZIP)
- Source Code (TAR.GZ)
- 2.2 KiB shareon.es.js
- 5.8 KiB shareon.es.js.map
- 2.3 KiB shareon.iife.js
- 6.4 KiB shareon.iife.js.map
- 13 KiB shareon.min.css
- 16 KiB shareon.min.css.map
- 2.5 KiB shareon.umd.js
- 6.4 KiB shareon.umd.js.map
-