Skip to content

fix: bugs, type definitions, and test coverage#71

Open
rililive wants to merge 2 commits into
mainfrom
claude/modernize-inherited-dependency-gRVdt
Open

fix: bugs, type definitions, and test coverage#71
rililive wants to merge 2 commits into
mainfrom
claude/modernize-inherited-dependency-gRVdt

Conversation

@rililive
Copy link
Copy Markdown

@rililive rililive commented Apr 2, 2026

  • Fix null reference crash in PhoneInput.updateValue when countryData is undefined
  • Fix Android back button not closing country picker modal (onRequestClose)
  • Replace deprecated substr() with substring() in PhoneInput and PhoneNumber
  • Remove componentDidUpdate anti-pattern; use props.disabled directly
  • Use nullish coalescing (??) for priority in country.tsx
  • Fix type definitions: cancelTextStyle optional, getAllCountries/getPickerData return arrays
  • Remove unused prop-types dependency
  • Remove console.log from production code in PhoneNumber.parse
  • Add comprehensive tests for PhoneNumber and Country classes (3 → 42 tests)
  • Add eslint override for no-unused-expressions in test files

https://claude.ai/code/session_015viBaeA5T6gX1bKKNty4hV

claude added 2 commits April 2, 2026 11:26
- Fix null reference crash in PhoneInput.updateValue when countryData is undefined
- Fix Android back button not closing country picker modal (onRequestClose)
- Replace deprecated substr() with substring() in PhoneInput and PhoneNumber
- Remove componentDidUpdate anti-pattern; use props.disabled directly
- Use nullish coalescing (??) for priority in country.tsx
- Fix type definitions: cancelTextStyle optional, getAllCountries/getPickerData return arrays
- Remove unused prop-types dependency
- Remove console.log from production code in PhoneNumber.parse
- Add comprehensive tests for PhoneNumber and Country classes (3 → 42 tests)
- Add eslint override for no-unused-expressions in test files

https://claude.ai/code/session_015viBaeA5T6gX1bKKNty4hV
- Use specific lodash imports (first, findKey) instead of full library import
- Remove unused countries.json import from PhoneNumber.tsx
- Remove dead picker ref and unused index param from CountryPicker.tsx
- Fix renderFlag type to use React.ReactElement and ImageRequireSource
- Update typings header to reference current repo
- Fix README: old repo links, deprecated string ref, function table errors
- Remove onPressCancel/onPressConfirm from Functions table (they are props)
- Add CLAUDE.md with project context and development commands

https://claude.ai/code/session_015viBaeA5T6gX1bKKNty4hV
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.

2 participants