Sourced from @radix-ui/react-avatar's changelog.
1.2.6
- Reverted breaking changes that caused compatibility issues with React Server Components.
- Updated dependencies:
@radix-ui/react-context@1.2.2,@radix-ui/react-primitive@2.1.10,@radix-ui/react-use-callback-ref@1.1.4,@radix-ui/react-use-is-hydrated@0.1.3,@radix-ui/react-use-layout-effect@1.1.41.2.5
- Updated dependencies:
@radix-ui/react-primitive@2.1.91.2.4
- Republish through CI to attach provenance attestations. The previous versions of these packages were published manually outside of CI and therefore shipped without provenance; this patch re-releases the same code through the CI pipeline so every package includes an attestation.
- Updated dependencies:
@radix-ui/primitive@1.1.7,@radix-ui/react-context@1.2.1,@radix-ui/react-primitive@2.1.8,@radix-ui/react-use-callback-ref@1.1.3,@radix-ui/react-use-is-hydrated@0.1.2,@radix-ui/react-use-layout-effect@1.1.31.2.3
- Improved tree-shaking so bundlers can drop unused components. Component parts are now marked
/* @__PURE__ */and use named render functions instead ofComponent.displayName = ...assignments, which previously prevented dead-code elimination with some bundlers.- Fix dev-only checks with conditional exports to drop dev-warnings from production builds.
- Updated dependencies:
@radix-ui/primitive@1.1.6,@radix-ui/react-context@1.2.0,@radix-ui/react-primitive@2.1.7,@radix-ui/react-use-callback-ref@1.1.2,@radix-ui/react-use-is-hydrated@0.1.1,@radix-ui/react-use-layout-effect@1.1.21.2.2
- Updated dependencies:
@radix-ui/react-context@1.2.01.2.1
- Updated dependencies:
@radix-ui/react-primitive@2.1.71.2.0
- Fixed several edge cases with Avatar's loading state
- An avatar's fallback would not be displayed again if its image component unmounted. This is now fixed.
- Rendering multiple
Avatar.Imagecomponents perAvatar.Rootwas never supported and results in buggy, unpredictable behavior. We now warn about this in development.- Zero-sized images were treated as
loading, meaning thatonLoadingStatusChangeis never called once loaded. A zero-sized image now triggers anerrorstatus on load.Other updates
- Fixed console warnings to show in test environments.
- Updated dependencies:
@radix-ui/react-primitive@2.1.61.1.12
- Added repository.directory to all package.json files
- Updated dependencies:
@radix-ui/react-context@1.1.4,@radix-ui/react-primitive@2.1.5,@radix-ui/react-use-callback-ref@1.1.2,@radix-ui/react-use-is-hydrated@0.1.1,@radix-ui/react-use-layout-effect@1.1.2
This version was pushed to npm by GitHub Actions, a new
releaser for @radix-ui/react-avatar since your current
version.