Skip to content

v2.0.0

Latest

Choose a tag to compare

@wdtamagi wdtamagi released this 02 Mar 00:18
dd1139d

[2.0.0] - 2026-03-01

Added

  • Skeleton loading animation while the avatar image is loading.
  • Named export: import { Avatar } from "svelte-avatar".
  • Netlify configuration (netlify.toml) for deploy previews.
  • Unit tests with Vitest and @testing-library/svelte.
  • GitHub Actions workflow (.github/workflows/publish.yml) to automatically publish the package to NPM with provenance attestation on every v* tag push.

Changed

  • Breaking: Svelte 5 is now required as a peer dependency (svelte >= 5).
  • Breaking: Migrated component to Svelte 5 syntax (uses onerror/onload event handler attributes instead of on: directives).
  • Migrated codebase from JavaScript to TypeScript (utils.ts, index.ts, Avatar.svelte with lang="ts").
  • Replaced jsconfig.json with tsconfig.json with strict mode enabled.
  • Switched bundler from Rollup to Vite.
  • Replaced svelte-kit package tooling with @sveltejs/package.
  • Updated all dev dependencies to their latest versions.
  • Documentation site rebuilt with Vite and svelte-highlight.

Removed

  • Support for Svelte 3 and Svelte 4.
  • Sapper compatibility notes from README.