Releases: tomhazledine/picobel
Releases · tomhazledine/picobel
V3
- Changes to class names on generated markup (breaking! but better 👍 ).
- Configure which elements to include (play button, volume slider, etc.) with the new
components
option. - Optional
context
option to allow targeted application of Picobel (a.k.a. only run Picobel on audio tags within a defined parent DOM node) - Improved a11y for pre-made themes (focus visibility and input labels)
Housekeeping
- Switches js transpilation and bundling from webpack to esbuild
- Switches from scss to vanilla css
- Switches build checks from Travic CI to GitHub Actions
- Fixes default export (so will now work correctly as-per the documentation when installing from npm)
- Fixes a bug where nodes would hang in "loading" state indefinitely
Converted to ES6
- Source code moved to
/src
- runningnpm run build
now compiles the ES6 modules into production bundle at/esm
and a Common JS version is added to/cjs
. - Jest has been added for running tests. Test files live in the
/tests
directory, and match the main module files: for example, the/src/helpers.js
file has a corresponding test file called/tests/helpers.tests.js
- Webpack has been added to handle the compilation/transpilation of the module-code into single production-ready vanilla JS files.
Fixing support
- Browser support extend back to "last 2 versions".
- Recent changes added to the
legacy
files.
>60mins time support
The time displays (.songPlayTimer
and .songDuration
) now show correct values for durations greater than 60 minutes.
Published to NPM
Picobel is now available through NPM: npmjs.com/package/picobel
- ESM (ECMAScript module) version now the canonical Picobel:
/esm/picobel.js
. - CJS (Common JS) version included for backwards compatibility. Not stored in repo, but created on upload to NPM registry with
prepublishOnly
script. - "regular" version (for including by linking to a script file) maintained for posterity:
/picobel.legacy.js
New installation process is documented in the /README.md
Rebranded as Picobel
- Cleaned up the docs.
- Removed dev. code from the repo.
- Added screenshots
- More detail on how to install and initialise.