v2.0.0: new auto-init, CSS export, smaller bundle
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