Skip to content

v1.0.3

Compare
Choose a tag to compare
@github-actions github-actions released this 22 Nov 02:29
· 316 commits to main since this release

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 from dist/ root to dist/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>
  • move all locales bundle from dist/ to dist/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.

image


⚠ Breaking Changes

  • default .js as ESM, CJS to .cjs & build target ES2021 (#171)

Features