UNPKG

1.66 kBMarkdownView Raw
1### 2.2.0
2
3- Fix #229 data issue
4- Add an option `fixChineseSpacing` option for improving performance for none-Chinese languages
5- Fix #202 replace related issues.
6- Update dependencies
7
8### 2.1.0
9
10- Add `transliterate` as a global variable for browser builds. Keep `transl` for backward compatibility.
11
12### 2.0.0
13
14- **CDN file structure changed**: [https://www.jsdelivr.com/package/npm/transliteration](https://www.jsdelivr.com/package/npm/transliteration)
15- The entire module had been refactored in Typescript, with big performance improvements as well as a reduced package size.
16- Better code quality. 100% unit tested.
17- `bower` support was dropped. Please use CDN or `webpack`/`rollup`.
18- As according to RFC 3986, more characters(`/a-zA-Z0-9-_.~/`) are kept as allowed characters in the result for `slugify`, and it is configurable.
19- Added `uppercase` as an option for `slugify`, if is set to `true` then the generated slug will be converted to uppercase letters.
20- Unknown characters will be transliterated as empty string by default, instead of a meaningless `[?]`.
21
22### 1.6.6
23
24- Added support for `TypeScript`. #77
25
26### 1.5.0
27
28- Minimum node requirement: 6.0+
29
30### 1.0.0
31
32- 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
33- The `options` parameter of `transliterate` now is an `Object` (In 0.1.x it's a string `unknown`).
34- Added `transliterate.config` and `slugify.config`.
35- Unknown string will be transliterated as `[?]` instead of `?`.
36- In the browser, global variables have been changed to `window.transl` and `windnow.slugify`. Other global variables are removed.