Repository navigation
Releases
v0.9.0
Added
- The published package now ships an
llms.txtdescribing its API for LLM-based tools.
Changed
playOnHovernow only replays on hover for hover-capable, fine pointers
(@media (hover: hover) and (pointer: fine)) in the React component, the
Astro component and<fluent-emoji>. On touch devices a tap no longer leaves
a sticky:hoverthat loops the animation until the user taps elsewhere;
keyboard focus (:focus-visible) playback is unchanged.- Every optional
EmojiOptionsproperty accepts an explicitundefined, so
controller.update({ fallback: undefined })type-checks for consumers that
compile withexactOptionalPropertyTypes. Runtime behavior is unchanged.
Fixed
- A manifest load that failed is no longer fetched a second time when an older load, superseded by
configureEmojis, settles afterwards.onErrorfired twice for one failure in that case.
v0.8.0
Added
- A public files site,
https://animated-fluent-emojis-files.andryore.dev, with
every emoji and skin tone as an animated GIF, an animated WebP and a
poster-frame PNG at stable URLs such as/gif/<slug>.gif, plus an
/index.json. Slugs are frozen in a committed registry. The artwork is
Microsoft's, see ADR 0015. - The emoji lists show a preview and links to the public files of each emoji.
Changed
- The asset site default URL is now
https://animated-fluent-emojis-cdn.andryore.dev. Consumers with a strict
Content Security Policy must allow that host inimg-srcandconnect-src.
The oldpages.devURL keeps working.
v0.7.0
Removed
-
Breaking: the root
Emojiexport, deprecated in 0.6. Change the import
path toanimated-fluent-emojis/react, nothing else; props and behavior are
identical:-import { Emoji } from 'animated-fluent-emojis' +import { Emoji } from 'animated-fluent-emojis/react'
-
Breaking: the
EmojiPropstype at the root. Import it from
animated-fluent-emojis/react.configureEmojis,preloadEmojis,
createEmoji,EmojiId,DiverseEmojiIdandSkinTonestay at the root.
Changed
reactandreact-domare now optional peer dependencies, so Vue, Svelte and
Astro installs no longer get a React peer warning.
v0.6.0
Added
- Multi-framework support behind subpath exports, see
ADR 0014:animated-fluent-emojis/reactexportsEmojiand its types.animated-fluent-emojis/vueexports a native Vue 3Emojiwith a
fallbackslot andload,errorandplaybackEndevents.animated-fluent-emojis/svelteexports a native Svelte 5Emojiwith a
fallbacksnippet.animated-fluent-emojis/astroexports an AstroEmojithat renders at
build time and starts playback with a small client script.animated-fluent-emojis/elementregisters<fluent-emoji>, a Web Component
for Angular, Solid, Preact, Lit, Alpine, htmx and plain HTML. It has a
slot="fallback"and theemoji-load,emoji-errorandplayback-end
events.createEmojiat the root renders an emoji into any DOM node and returns a
controller withupdateanddestroy.
- Install and usage steps for every framework in the
usage guide, how-tos for
Angular,
Solid and
Preact, and a "Works with" table in the
README. vue,svelte,astro,solid-jsandpreactas optional peer
dependencies.
Changed
- The playback logic moved to a framework-free core shared by every adapter, and
one conformance suite checks that they behave alike.
Deprecated
- The root
Emojiexport, removed in 0.7. Migrate by changing the import path
toanimated-fluent-emojis/react, nothing else.configureEmojisand
preloadEmojisstay at the root. In 0.7reactalso becomes an optional peer
dependency.
v0.5.3
Changed
- Relicensed the code from ISC to MIT, see
ADR 0013. Versions up to 0.5.2 stay ISC. - The package description, keywords and README intro describe what the component
does today. The "Exclusive Feature" callout is removed. - Added a brand kit in
docs/brand/and thebun run brand:exportscript that
generates its rasters.
v0.5.2
Fixed
-
Behavior change (lookup):
findEmojiByUnicoderequires the variation
selector (U+FE0F) for text-default symbols such as©and™, which no
longer match as a bare character. -
Behavior change (lookup): a text with mixed skin tones resolves to the
base emoji, with noskinTone. -
Behavior change (lookup):
extractEmojisno longer rejects without
Intl.Segmenter; it falls back to a code point grouper. -
Behavior change (lookup): a
searchEmojislimitthat is not a positive
number means no limit, and0returns nothing. -
The manifest record has no prototype, so ids such as
constructorresolve
like any other, and a load superseded byconfigureEmojisreturns the current
load's result. -
A run that the playback gate blocks mid-run is paused on its frame instead of
restarting. -
onErrorfires once per failure, and a numeric stringsizesuch as"48"
is treated as a number. A stringsizegetssizes="auto". -
Emojishares oneonlinelistener across all instances. -
The sync records
skippedIdsandlimitedinversion.jsonand rebuilds
until the site is complete;--limitmust be a positive whole number. -
Legacy
/sprites/*files are cached for one day instead of a year, since
their URLs are not content-addressed. -
assets:verify-livechecks the live v1 layout and pipeline version, and the
release workflow runs it before publishing. -
The release workflow publishes prereleases under their own dist tag.
-
The sync smoke test waits for the deployed
builtAtand retries its fetches. -
Behavior change (lookup): when several catalog entries share a glyph,
findEmojiByUnicodeandextractEmojisreturn the canonical emoji (the id
prefixed with its code points, otherwise a reviewed override, otherwise the
first in catalog order) instead of the last entry indexed, so❤️no longer
resolves to a variant. A skin tone falls back to an entry sharing the glyph
that has tones. -
Behavior change (lookup): ZWJ sequences match without the variation
selector (minimally qualified), and a fractionalsearchEmojislimitis
rounded down. -
Invalid numeric string sizes such as
"-5"fall back to 100, like numeric
sizes;".5"is 0.5px and"2rem"stays a CSS length. -
preloadEmojissetssizesnext tosrcsetfor HD sheets, and the manifest
load times out after 15 seconds withoutAbortSignal.timeout(Safari before
16). -
skippedIdslists only real failures. An HD frame count mismatch ships the
emoji without HD instead of keeping the site stale, so scheduled syncs no
longer rebuild forever;assets:verify-liveretries its fetch. -
The sync workflow runs its smoke checks on every run, pins Wrangler, times out
after 90 minutes, and its changelog job only looks at[Unreleased]. -
Prereleases are published as GitHub prereleases, never "Latest", and numeric
prereleases publish under thenextdist tag. -
engines.bunis removed from the published package.
Changed
- Renovate manages dependency updates;
@types/nodeis held below 25 and the
npmpin in the workflows is tracked. - The shared manifest chunk has a stable name,
chunks/manifest-[hash].js. - Bumped
eslint-plugin-unicornto 77 and@types/nodeto 24.
v0.5.1
Fixed
- The release workflow passed the tarball to
npm publishwithout a leading
./, so npm read it as a GitHub shorthand and the 0.5.0 publish failed. 0.5.0
was never published to npm; 0.5.1 carries the same changes plus this fix.
v0.4.0
Added
altprop onEmoji: accessible text, defaulting to the emoji description;
an empty string marks the emoji as decorative.configureEmojis({ assetSiteUrl })to serve the manifest and sprite sheets
from your own asset site.- HD (
@2x, 200px) sprite sheets for every emoji with an official counterpart,
served throughsrcSet. playOnHoveralso plays when the emoji sits inside a focused<button>or
<a>.EmojiId,EmojiPropsandSkinToneare exported from the package.- The bundle starts with
"use client";, soEmojiworks from Next.js server
components.
Changed
- Breaking: while the manifest loads,
Emojirenders an emptyaria-hidden
placeholder of the final size instead ofnull. It still rendersnullfor
an unknown id or a failed load. - Breaking: under
prefers-reduced-motion: reduce,autoPlayis ignored
and the emoji rests on its poster frame; withplayOnHover, hover and focus
still play it. - Breaking: images are rendered with
loading="lazy"and
decoding="async", so offscreen emojis load when they approach the viewport. - Breaking: the
idprop is typedEmojiId | (string & {})instead of
string. Known ids autocomplete; any string still compiles. - Breaking: the runtime fetches
manifest.slim.jsoninstead of
manifest.json, on first render instead of at import. Asset sites that mirror
the catalog must publish the slim manifest. - Etags of converted sprites are content hashes that include a pipeline version,
and the animation frame rate is exact instead of rounded. - The asset build validates every animation and sprite sheet and fails on any
problem.
Fixed
- Emojis animate again: no per-emoji
<style>with a
transform: ... !importantrule overrides the keyframe anymore. - A failed manifest fetch is retried on the next render instead of leaving every
emoji blank.
Migration
- Make sure
animated-fluent-emojis/style.cssis imported: it carries the
animation keyframes. - If you styled or tested around
nullwhile loading, handle the placeholder
<span aria-hidden="true">instead. - If you mirror the asset site, publish
manifest.slim.jsonand, optionally,
the@2xsheets, and callconfigureEmojisbefore the first render. - To get type checking against published ids, type your ids as
EmojiId; plain
stringvalues keep compiling.
v0.3.0
Added
skinToneprop onEmojito pick a skin tone for emojis with variants.- The 40 official Fluent animated emojis that Teams does not ship, such as
flags, 😀, 🖕 and the "facing right" variants. - Sprite URLs carry the emoji
etagso updated sprites are never served stale.
Changed
- The manifest and sprites are served from
https://animated-fluent-emojis.pages.devand refreshed automatically each
week.
Fixed
- Emojis no longer fail to load now that
cdn.animated-fluent-emojis.comno
longer exists.
v0.2.0
Added
animated-fluent-emojis/style.cssexport for importing the component styles.- React 19 support in the
reactandreact-dompeer dependency ranges.
Changed
- Breaking: the package is now ESM-only. The UMD and CommonJS builds were
removed.
Fixed
sideEffectsnow declares the stylesheet so bundlers no longer drop the
component styles during tree shaking.