@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.
- package/README.md +24 -15
- 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
|
-
##
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
the
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
-
|
|
62
|
-
|
|
63
|
-
`el.children.length`
|
|
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
|
|
67
|
-
|
|
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
|