|
1 | | -### 2.2.0 |
| 1 | +# Changelog |
2 | 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 |
| 3 | +## 2.4.0 |
7 | 4 |
|
8 | | -### 2.1.0 |
| 5 | +- Modernized toolchain: migrated from Rollup/Babel to tsup/Bun for faster builds |
| 6 | +- Added comprehensive test suites with 100% code coverage |
| 7 | +- Fixed slugify to collapse consecutive separators (e.g., `hello---world` → `hello-world`) |
| 8 | +- Fixed slugify to properly strip leading/trailing separators |
| 9 | +- Replaced TSLint/Prettier with Biome for linting |
| 10 | +- Minimum Node.js requirement is now v20.0.0 |
| 11 | +- Refactored utilities and added edge case handling |
| 12 | +- Added Vitest as modern test runner with jsdom environment for browser tests |
9 | 13 |
|
10 | | -- Add `transliterate` as a global variable for browser builds. Keep `transl` for backward compatibility. |
| 14 | +## 2.2.0 |
11 | 15 |
|
12 | | -### 2.0.0 |
| 16 | +- Fixed data issue (#229) |
| 17 | +- Added `fixChineseSpacing` option for improving performance with non-Chinese languages |
| 18 | +- Fixed replace-related issues (#202) |
| 19 | +- Updated dependencies |
13 | 20 |
|
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 | +## 2.1.0 |
21 | 22 |
|
22 | | -### 1.6.6 |
| 23 | +- Added `transliterate` as a global variable for browser builds (kept `transl` for backward compatibility) |
23 | 24 |
|
24 | | -- Added support for `TypeScript`. #77 |
| 25 | +## 2.0.0 |
25 | 26 |
|
26 | | -### 1.5.0 |
| 27 | +- **Breaking**: CDN file structure changed — see [jsDelivr](https://www.jsdelivr.com/package/npm/transliteration) |
| 28 | +- Refactored entire module in TypeScript with significant performance improvements and reduced package size |
| 29 | +- Improved code quality with 100% unit test coverage |
| 30 | +- Dropped `bower` support — use CDN or bundlers like webpack/rollup instead |
| 31 | +- Per RFC 3986, more characters (`a-zA-Z0-9-_.~`) are now allowed in `slugify` output (configurable) |
| 32 | +- Added `uppercase` option for `slugify` to convert output to uppercase |
| 33 | +- Unknown characters are now transliterated as empty string by default (previously `[?]`) |
27 | 34 |
|
28 | | -- Minimum node requirement: 6.0+ |
| 35 | +## 1.6.6 |
29 | 36 |
|
30 | | -### 1.0.0 |
| 37 | +- Added TypeScript support (#77) |
31 | 38 |
|
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. |
| 39 | +## 1.5.0 |
| 40 | + |
| 41 | +- Minimum Node.js requirement: v6.0+ |
| 42 | + |
| 43 | +## 1.0.0 |
| 44 | + |
| 45 | +- **Breaking**: Entire codebase refactored — upgrade carefully from v0.1.x or v0.2.x |
| 46 | +- The `options` parameter of `transliterate` is now an object (previously a string for `unknown`) |
| 47 | +- Added `transliterate.config()` and `slugify.config()` methods |
| 48 | +- Unknown characters are now transliterated as `[?]` instead of `?` |
| 49 | +- Browser global variables changed to `window.transl` and `window.slugify` (other globals removed) |
0 commit comments