@gjsify/adwaita-react-native 0.55.0 → 0.56.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 +8 -0
  2. package/package.json +5 -5
package/README.md CHANGED
@@ -23,6 +23,14 @@ any more. One widget on its own comes from its subpath —
23
23
  identifier is the widget's only name and not a second one; the prop TYPES keep their flat
24
24
  spelling for the same reason, since `Adw.ClampProps` names nothing libadwaita has.
25
25
 
26
+ **The subpath is also the only shape that tree-shakes.** Importing `Adw` from the root costs
27
+ all 28 widget implementations however many you use — a bundler cannot drop a property out of
28
+ the `Adw` object literal — so a consumer that wants one widget should take that widget's
29
+ subpath. Measured with this repo's pinned `esbuild` against the built `lib/esm`: the root
30
+ keeps 28 widget modules in ~17.9 kB, the subpath keeps 1 in ~0.6 kB, and `export * as Adw`
31
+ — the shape `@gjsify/adwaita-web` uses — keeps 28 as well. That is the price of the one
32
+ spelling, and ADR 0034 § Amendment 24 records it (and what is *not* the cause of it).
33
+
26
34
  ## What this is, honestly
27
35
 
28
36
  **Not a widget set yet.** The table below is the whole of it, and every row carries the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/adwaita-react-native",
3
- "version": "0.55.0",
3
+ "version": "0.56.0",
4
4
  "description": "Adwaita widgets with one API surface and two implementations — the real Adw.* widget on GTK4, React Native primitives on a phone",
5
5
  "type": "module",
6
6
  "module": "lib/esm/index.js",
@@ -182,8 +182,8 @@
182
182
  "design-system"
183
183
  ],
184
184
  "dependencies": {
185
- "@gjsify/adwaita-core": "^0.55.0",
186
- "@gjsify/gtk-host": "^0.55.0"
185
+ "@gjsify/adwaita-core": "^0.56.0",
186
+ "@gjsify/gtk-host": "^0.56.0"
187
187
  },
188
188
  "peerDependencies": {
189
189
  "react": "^19.2.0",
@@ -198,8 +198,8 @@
198
198
  "@girs/adw-1": "5.4.0",
199
199
  "@girs/gjs": "5.4.0",
200
200
  "@girs/gtk-4.0": "5.4.0",
201
- "@gjsify/cli": "^0.55.0",
202
- "@gjsify/unit": "^0.55.0",
201
+ "@gjsify/cli": "^0.56.0",
202
+ "@gjsify/unit": "^0.56.0",
203
203
  "@types/node": "^25.9.2",
204
204
  "@types/react": "^19.2.2",
205
205
  "@types/react-test-renderer": "^19.1.0",