@mtdt/observeops-ds-elements 0.1.149 → 0.1.151

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/README.md CHANGED
@@ -52,6 +52,38 @@ Vue-emitted events deliver the value in `event.detail` as an **array** — unwra
52
52
  el.addEventListener('change', e => { const value = Array.isArray(e.detail) ? e.detail[0] : e.detail })
53
53
  ```
54
54
 
55
+ ## Breaking changes
56
+
57
+ - **`obs-filters` `change` payload — `0.1.150`.** The `bar` kind's `change` event now delivers
58
+ **`{ conditions, match }`** (was a bare `conditions` array). This is a **silent** break: a handler doing
59
+ `Array.isArray(e.detail[0])` / reading the detail as an array gets no conditions and **fails with no error**.
60
+ Update your handler:
61
+
62
+ ```js
63
+ el.addEventListener('change', e => {
64
+ const d = Array.isArray(e.detail) ? e.detail[0] : e.detail
65
+ const conditions = Array.isArray(d) ? d : d.conditions // accept both shapes
66
+ const match = d && d.match // 'all' | 'any' (new)
67
+ })
68
+ ```
69
+
70
+ `el.value` still reflects the conditions JSON, so value round-tripping is unchanged. (Fixes the vanishing-chip
71
+ and inert-Match bugs in `0.1.143`–`0.1.146`.)
72
+
73
+ ## Troubleshooting — a fix isn't showing up after `npm update`?
74
+
75
+ Bundlers cache pre-bundled deps, so an updated version can keep serving the **old** one and look "still broken."
76
+ If a published fix doesn't appear:
77
+
78
+ ```bash
79
+ rm -rf node_modules/.vite # Vite (also .parcel-cache / webpack cache for those bundlers)
80
+ npm run dev -- --force # force a fresh pre-bundle
81
+ ```
82
+
83
+ Confirm the loaded version with `import pkg from '@mtdt/observeops-ds-elements/package.json'` (or check
84
+ `node_modules/@mtdt/observeops-ds-elements/package.json`). Verify against the DS *after* clearing the cache — a
85
+ stale bundle will report fixed items as still broken.
86
+
55
87
  ## Verify your render
56
88
 
57
89
  Check that what you built matches the DS (tokens · components · variants · layout) with the shipped conformance
@@ -932,6 +932,13 @@
932
932
  "attribute": "value",
933
933
  "type": "[String,Array]",
934
934
  "note": "active conditions [{ field, operator, value }] — array or JSON string"
935
+ },
936
+ {
937
+ "prop": "match",
938
+ "attribute": "match",
939
+ "type": "String",
940
+ "default": "'all'",
941
+ "note": "the Match toggle mode: 'all' (AND) | 'any' (OR). Emitted in `change` as {conditions, match}."
935
942
  }
936
943
  ],
937
944
  "events": [