unstale

npm / gettext-parser

gettext-parser

What changed in gettext-parser 2 to 10, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-25.

11 breaking1 security3 new APIs and options5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.2.6 on npm

gettext-parser 103 changes

Breaking changes 1

  • foldLength now represents page width, like msgcat --width, and defaults to 79 instead of 76; 0 or false still disables folding.

    10.0.0release notes

Fixes and other changes 2

  • Folding no longer splits escape sequences such as \t across lines, which could produce an unparsable .po file.

    10.0.0release notes

  • Compiled strings are now wrapped exactly like GNU gettext's msgcat; version-controlled compiled .po files are rewrapped once without content changes.

    10.0.0release notes

gettext-parser 96 changes

Breaking changes 3

  • Validation throws when the multiline format is invalid.

    9.2.0release notes

  • Invalid PO format is no longer silently ignored.

    9.1.1release notes

  • Support for Node.js versions below 20 is dropped.

    9.0.0release notes

Security 1

  • Fixes possible prototype pollution during parsing.

    9.0.2release notes

Fixes and other changes 2

  • Fixes parsing of multiline strings.

    9.2.0release notes

  • Parsing and compilation now handle #~| previous-msgid comments in obsolete entries.

    9.1.0release notes

gettext-parser 82 changes

Breaking changes 2

  • The package switched to ESM; use import instead of require to use gettext-parser.

    8.0.0release notes

  • Support for Node.js versions 17 and below was dropped.

    8.0.0release notes

gettext-parser 73 changes

Breaking changes 2

  • The method signature changes from accepting defaultCharset to accepting options.

    7.0.0release notes

  • The method signature changes from accepting defaultCharset to accepting options; transformOptions remains the second argument.

    7.0.0release notes

New APIs and options 1

  • Adds a validation option to PO parsing; it is disabled by default.

    7.0.0release notes

gettext-parser 62 changes

Breaking changes 1

  • Support for Node versions below 12 is dropped through the readable-stream dependency update.

    6.0.0release notes

Fixes and other changes 1

gettext-parser 52 changes

Breaking changes 1

  • When line folding is disabled by setting it to 0, folding still occurs on newline characters (\n).

    5.0.0release notes

New APIs and options 1

  • Added support for obsolete messages, whose lines start with #~.

    5.0.0release notes

gettext-parser 22 changes

Breaking changes 1

  • The parameter formerly named sortByMsgId was renamed to sort, requiring callers to update their code.

    2.0.0release notes

New APIs and options 1

  • The sort parameter can also accept a custom function.

    2.0.0release notes