- Fix #229 data issue
- Add an option
fixChineseSpacing
option for improving performance for none-Chinese languages - Fix #202 replace related issues.
- Update dependencies
- Add
transliterate
as a global variable for browser builds. Keeptransl
for backward compatibility.
- CDN file structure changed: https://www.jsdelivr.com/package/npm/transliteration
- The entire module had been refactored in Typescript, with big performance improvements as well as a reduced package size.
- Better code quality. 100% unit tested.
bower
support was dropped. Please use CDN orwebpack
/rollup
.- As according to RFC 3986, more characters(
/a-zA-Z0-9-_.~/
) are kept as allowed characters in the result forslugify
, and it is configurable. - Added
uppercase
as an option forslugify
, if is set totrue
then the generated slug will be converted to uppercase letters. - Unknown characters will be transliterated as empty string by default, instead of a meaningless
[?]
.
- Added support for
TypeScript
. #77
- Minimum node requirement: 6.0+
- Code had been entirely refactored since version 1.0.0. Be careful when you plan to upgrade from v0.1.x or v0.2.x to v1.0.x
- The
options
parameter oftransliterate
now is anObject
(In 0.1.x it's a stringunknown
). - Added
transliterate.config
andslugify.config
. - Unknown string will be transliterated as
[?]
instead of?
. - In the browser, global variables have been changed to
window.transl
andwindnow.slugify
. Other global variables are removed.