Skip to content

2.4.0

Latest

Choose a tag to compare

@polygonplanet polygonplanet released this 14 Sep 15:36
· 11 commits to master since this release

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.ts and the "types" field to package.json
    • The definitions are imported unchanged from @types/encoding-japanese 2.2.1.
  • feat(convert): support Unicode characters that differ between CP932 and JIS X 0208 mappings when converting to SJIS, EUCJP and JIS in #67

Bug Fixes

  • Fix U+301C (〜) being mapped to JIS X 0212 instead of JIS X 0208 when converting to EUCJP and JIS (e.g., 0x8FA1C1 instead of 0xA1C1 in EUCJP) in #67
  • Fix invalid SJIS trail byte 0x7F being converted as 0x7E instead of falling back to ? on conversion from SJIS (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 in npm test (#68)
  • Upgrade ESLint to v10 and migrate from .eslintrc.json to flat config with @stylistic/eslint-plugin (#66)

Full Changelog: 2.3.0...2.4.0