What's Changed
Include TypeScript definitions (index.d.ts) migrated from DefinitelyTyped. Installing @types/encoding-japanese separately is no longer required. Thanks to DefinitelyTyped contributors!
Features
- feat(types): bundle TypeScript definitions (migrated from DefinitelyTyped) in #68
- Add
index.d.tsand the"types"field topackage.json - The definitions are imported unchanged from
@types/encoding-japanese2.2.1.
- Add
- feat(convert): support Unicode characters that differ between CP932 and JIS X 0208 mappings when converting to
SJIS,EUCJPandJISin #67
Bug Fixes
- Fix
U+301C(〜) being mapped to JIS X 0212 instead of JIS X 0208 when converting toEUCJPandJIS(e.g.,0x8FA1C1instead of0xA1C1inEUCJP) in #67 - Fix invalid SJIS trail byte
0x7Fbeing converted as0x7Einstead of falling back to?on conversion fromSJIS(b848595)
CI
- Update GitHub Actions and split linting from tests in #66
Maintenance
- Add type tests adapted from DefinitelyTyped to run with
tsc, and include them innpm test(#68) - Upgrade ESLint to v10 and migrate from
.eslintrc.jsonto flat config with@stylistic/eslint-plugin(#66)
Full Changelog: 2.3.0...2.4.0