v1.0.3
1.0.3 (2023-11-22)
⚠ BREAKING CHANGES
This release will make ESM be the default for .js
files, and change all CommonJS (CJS) to use .cjs
, this is following Vite's Deprecate CJS Node API recommendations while staying hybrid (CJS/ESM). Below is the list of changes included in this release:
- bump build target to ES2021
- changes in the hybrid mode CJS/ESM support
- move legacy
<script>
loading fromdist/
root todist/browser/multiple-select.{js,cjs}
("browser" is meant for legacy script loading)- ESM:
<script type="module" src="https://cdn.jsdelivr.net/npm/multiple-select-vanilla@1.0.0/dist/browser/multiple-select.js"></script>
- CJS:
<script src="https://cdn.jsdelivr.net/npm/multiple-select-vanilla@1.0.0/dist/browser/multiple-select.cjs"></script>
- ESM:
- move all locales bundle from
dist/
todist/locales/multiple-select-all-locales.{js,cjs}
Provenance
I'm also toying with the possibility of publishing with npm --provenance
when publishing through CI with a GitHub Action (see blog post). After a few trials and errors, I think I finally got it working, now and you should be able to see something like below on the npm registry.
⚠ Breaking Changes
- default
.js
as ESM, CJS to.cjs
& build target ES2021 (#171)
Features
- default
.js
as ESM, CJS to.cjs
& build target ES2021 (#171) (5e99b03) - by @ghiscoding