shareon becomes a rather small, yet breaking update. I was not pleased with the dev infrastructure and the abundance of files, so I decided to make the project slightly more opinionated. The changes include:
BREAKING: shareon supports only modern browsers now. The code I write is mostly ES6, and no transpiling is being done.
BREAKING: main distribution format is now ESM, even for browsers. CJS is gone.
BREAKING:noinit variant is gone. shareon will always auto-init
switched from a clunky Rollup config to esbuild and PostCSS
switched from many source files to just two: vanilla CSS and JS
added type definitions for the shareon() function (it's abundant, but brings good PR)
Even with those additions, shareon still works in 95% of the browsers used nowadays, and this number is expected to grow. As a bonus, I don't get burned out trying to figure out how to build libraries for web.
I will test the package before releasing it (expected date: Aug-Sep 2021). After the release, v1 will get no updates.
shareon becomes a rather small, yet breaking update. I was not pleased with the dev infrastructure and the abundance of files, so I decided to make the project slightly more opinionated. The changes include:
noinit
variant is gone. shareon will always auto-initshareon()
function (it's abundant, but brings good PR)Even with those additions, shareon still works in 95% of the browsers used nowadays, and this number is expected to grow. As a bonus, I don't get burned out trying to figure out how to build libraries for web.
I will test the package before releasing it (expected date: Aug-Sep 2021). After the release, v1 will get no updates.