@juspay/svelte-ui-components 3.5.1 → 4.0.0

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.
Files changed (2) hide show
  1. package/README.md +24 -15
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -38,15 +38,25 @@ This library takes a different approach: **components are unstyled by default**
38
38
 
39
39
  ---
40
40
 
41
- ## Coming in 4.0.0: one breaking change
42
-
43
- Advance notice, not a change in this release. **Nothing below has happened yet**
44
- the current 3.x line still accepts everything it always did.
45
-
46
- In 4.0.0, `children` stops being a declared property on `sui-chat-bubble`,
47
- `sui-draggable` and `sui-resizable`. Assigning it will set an inert expando and
48
- the content will silently disappear. Pass the content as light-DOM children
49
- instead, which those wrappers will forward through their default slot:
41
+ ## Breaking changes, and the release they actually shipped in
42
+
43
+ **Both changes below shipped in 3.5.1, which went out as a patch by mistake.**
44
+ The release workflow picks the version from the newest commit alone, and the
45
+ commit that made the build green was a `fix:` — so the breaking commit beneath
46
+ it was never seen. 4.0.0 is that same content under the version number it
47
+ should have carried. A `^3.5.0` range already resolves to it; **3.5.0 is the
48
+ last release without these changes.**
49
+
50
+ **Every deprecated event-prop spelling is gone.** The 190 camelCase and
51
+ mixed-case event props that 3.x accepted as aliases are now unknown props,
52
+ which Svelte drops without an error — the handler simply stops running.
53
+ `npx sui-codemod ./src` rewrites them, and
54
+ [`docs/MIGRATION_4.0.md`](docs/MIGRATION_4.0.md) lists every pair.
55
+
56
+ **`children` is no longer a declared property** on `sui-chat-bubble`,
57
+ `sui-draggable` and `sui-resizable`. Assigning it sets an inert expando and the
58
+ content silently disappears. Pass the content as light-DOM children instead,
59
+ which those wrappers forward through their default slot:
50
60
 
51
61
  ```js
52
62
  el.children = mySnippet; // before — no longer works
@@ -58,13 +68,12 @@ el.children = mySnippet; // before — no longer works
58
68
  ```
59
69
 
60
70
  **Reading `element.children` is what the change fixes.** Declaring the property
61
- replaces the inherited accessor, so on those three elements `element.children`
62
- returns `undefined` rather than an `HTMLCollection` today and
63
- `el.children.length` throws. That is why the declaration has to go, and why it
64
- cannot go before a major.
71
+ replaced the inherited accessor, so up to 3.5.0 `element.children` returned
72
+ `undefined` on those three elements rather than an `HTMLCollection`, and
73
+ `el.children.length` threw. Removing the declaration gives the collection back.
65
74
 
66
- You can find affected call sites now, well before the major — this reports and
67
- writes nothing:
75
+ You can find affected call sites with a dry run — this reports and writes
76
+ nothing:
68
77
 
69
78
  ```sh
70
79
  npx sui-codemod --dry-run ./src
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juspay/svelte-ui-components",
3
- "version": "3.5.1",
3
+ "version": "4.0.0",
4
4
  "description": "A themeable Svelte 5 UI component library with CSS custom property driven styling",
5
5
  "keywords": [
6
6
  "svelte",