Skip to content

Releases: ghiscoding/multiple-select-vanilla

v1.2.1

30 Jan 03:00
Compare
Choose a tag to compare

1.2.1 (2024-01-30)

Bug Fixes

v1.2.0

13 Jan 06:32
Compare
Choose a tag to compare

1.2.0 (2024-01-13)

Quick Info

This release removes a diacritic fallback that was part of the code and only keep the modern approach using the normalize() function which is supported by all modern browsers. The fallback implementation was using a long list of unicode mapping with string replacement and that was taking a lot of space, by removing this unnecessary fallback we actually decrease our library size by quite a lot (see below). If for whatever reason removing this causes any problems, users could add their own custom implementation via the diacriticParser option (see new Diacritic Parser Example).

Size Difference

file on disk and uncompressed (final size should be much smaller with gzip)

before after diff notes
956Kb (979,219) 882Kb (903,442) 74Kb (or 7.74% smaller) all bundles uncompressed
51.7Kb (53,037) 46.3Kb (49,152) 3.9Kb (or 7.32% smaller ) ESM+styles (no locale) zipped

Features

v1.1.3

30 Dec 18:31
Compare
Choose a tag to compare

1.1.3 (2023-12-30)

Bug Fixes

v1.1.2

20 Dec 06:57
Compare
Choose a tag to compare

1.1.2 (2023-12-20)

Bug Fixes

v1.1.1

02 Dec 19:03
Compare
Choose a tag to compare

1.1.1 (2023-12-02)

Bug Fixes

v1.1.0

26 Nov 05:00
Compare
Choose a tag to compare

1.1.0 (2023-11-26)

Features

v1.0.3

22 Nov 02:29
Compare
Choose a tag to compare

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

v0.6.3

10 Nov 06:27
Compare
Choose a tag to compare

0.6.3 (2023-11-13)

CSP Compliant

The focus of this release was around CSP (Content Security Policy) compliance, all dynamic html string were replaced by native HTML Element and a lot of code refactoring had to be done to make it all work. There are some exception though, if you still use html string as template, you will not be compliant unless you return TrustedHTML, you can get more info on the main readme homepage.

⚠️ Deprecation

styler is now deprecated and replaced by cssStyler .

  • styler was built around the fact that we use HTML string and we pass any style to the html string but now that we converted html string to native HTML Element, these style are not compatible and need extra work since we need to convert CSS style them to valid CSSStyleDeclaration (i.e.: font-weight: 'bold' should be fontWeight: 'bold') so that we can then pass it to our native HTML Element. Because this is an extra step, we decided to deprecate styler in favor of cssStyler which only accept CSSStyleDeclaration.

Features

Performance Improvements

Bug Fixes

v0.5.0

27 Oct 18:39
Compare
Choose a tag to compare

0.5.0 (2023-10-27)

Bug Fixes

Features

v0.4.11

25 Oct 01:03
Compare
Choose a tag to compare

0.4.11 (2023-10-25)

Bug Fixes