Skip to content

feat: add read-only state getter - #42

Merged
coderwhy merged 1 commit into
mainfrom
readonly-state-getter
Aug 29, 2026
Merged

feat: add read-only state getter#42
coderwhy merged 1 commit into
mainfrom
readonly-state-getter

Conversation

@coderwhy

Copy link
Copy Markdown
Owner

Summary

  • add getState(key) for reading one declared state value without subscribing
  • add runtime and TypeScript regression coverage
  • document shallow read semantics in English and Chinese

Validation

  • npm run test:types
  • npm test (17 passing)
  • npm run test:coverage (100% source coverage)
  • npm audit --omit=dev --audit-level=high
  • git diff --check
  • remote CI will run npm pack --dry-run.

@coderwhy
coderwhy merged commit 0b16ff2 into main Aug 29, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant