@soleil-se/config-svelte 1.27.6 → 1.27.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -7,6 +7,10 @@ All notable changes to this project will be documented in this file.
7
7
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
8
8
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
9
9
 
10
+ ## [1.27.7] - 2024-11-12
11
+
12
+ - Handle single values in `CustomSelector` without throwing an error.
13
+
10
14
  ## [1.27.6] - 2024-11-08
11
15
 
12
16
  - Call `window.sv.setValues` in `createConfigApp` to set values outside of the app, for example widget size.
@@ -53,7 +53,7 @@
53
53
  }
54
54
 
55
55
  function getValuesFromOptions(val) {
56
- return val.map((v) => {
56
+ return (Array.isArray(val) ? val : [val]).map((v) => {
57
57
  // Need to use == instead of === because of loose comparison of types.
58
58
  // eslint-disable-next-line eqeqeq
59
59
  const option = options.find((o) => (o.value ?? o) == v);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soleil-se/config-svelte",
3
- "version": "1.27.6",
3
+ "version": "1.27.7",
4
4
  "main": "./index.js",
5
5
  "module": "./index.js",
6
6
  "svelte": "./index.js",