Skip to content

v0.4.0

Choose a tag to compare

@0xdhrv 0xdhrv released this 16 Oct 12:19
· 44 commits to main since this release
v0.4.0
2e25e51

Your cat has more to do.

Play

  • grabbable: pick the cat up and toss it. It spins, bounces off the edges, and lands on its feet. A click without dragging pets it.
  • treats: double-click empty space to drop a fish. The nearest cat runs over and eats it.
  • data-oneko-knockable: now and then a resting cat walks up to the element, stares at you, and paws it off the screen. It comes back a few seconds later.
  • data-oneko-box: if it fits, it sits. A resting cat naps in the box for a while.

Tour cat

  • goTo, say, sit, follow, pet, and dropTreat on the React ref, createOneko(), <oneko-cat>, and the Vue, Svelte, and Solid components.
  • data-oneko-say="…" makes the nearest cat comment on whatever the pointer rests on or keyboard focus reaches.
  • New events: onPet, onCatchCursor, onSleep, onToss, and onTreat. <oneko-cat> dispatches pet, catchcursor, sleep, toss, and treat.

Seasons and moods

  • seasonal (on by default): a witch hat Oct 20–31, a Santa hat Dec 18–29, and a party hat Dec 30–Jan 2, plus a few themed thoughts. Set seasonal={false} to opt out, or pass "halloween" to preview.
  • timeOfDay: zoomies at dawn and dusk, drowsy after lunch, asleep late at night.
  • affection: remembers pets and treats and greets returning visitors.

Every new option except seasonal is off by default. Update with npm install oneko@0.4.0, or for the registry component run npx shadcn@latest add https://oneko.dhrv.pw/r/oneko.json again. The Chrome extension zip is attached below.

Full changelog: v0.3.1...v0.4.0