Skip to content

Track clean-main PocketJS naming cleanup #8

Description

@doodlewind

Context

The naming cleanup was previously mixed into the renderer experiment branch. It should be tracked independently from a clean main base so the renderer investigation remains separate.

Scope

  • Move the public frame hook module from psp-ui/hooks to psp-ui/lifecycle.
  • Rename app-facing lifecycle APIs:
    • useFrame -> onFrame
    • useButtonPress -> onButtonPress
    • useSpriteAnimation -> createSpriteAnimation
  • Update demos, docs, and tests to use lifecycle callback names.
  • Add app-facing @pocketjs/* import aliases while preserving existing internal psp-ui package/build identity.

Non-goals

  • Do not include the React/Vue renderer experiment.
  • Do not rename internal package metadata, PSP packaging names, or existing psp-ui build/error prefixes in this cleanup.

Draft PR

Validation Captured In The PR

  • All demos compile: cards hero launcher library music notifications settings stats.
  • bun run test passes.
  • bunx tsc --noEmit passes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions