Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wanakana

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wanakana - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

125

CHANGELOG.md

@@ -27,48 +27,58 @@ # Change Log

## [4.0.1] - 2017-04-30
## [4.0.2] - 2018-04-30
### Added
- react-native field in lib package.json
### Fixed
* stripOkurigana(): If the input has the same kana at different locations, such as '申し申し', the inner kana was stripped instead
- corrected recent dates in changelog (2017 -> 2018)
## [4.0.0] - 2017-04-26
## [4.0.1] - 2018-04-30
### Fixed
- stripOkurigana(): If the input has the same kana at different locations, such as '申し申し', the inner kana was stripped instead
## [4.0.0] - 2018-04-26
### Changed
* stripOkurigana() options are now `{ leading: Boolean, matchKanji: String }`
- stripOkurigana() options are now `{ leading: Boolean, matchKanji: String }`
### Removed
* stripOkurigana() "all" option has been removed but can be easily reproduced via `[...text].filter(isKana)`
- stripOkurigana() "all" option has been removed but can be easily reproduced via `[...text].filter(isKana)`
## [3.1.1] - 2017-03-26
## [3.1.1] - 2018-03-26
### Fixed
* some versions of Android GBoard English keyboard entering 'n' followed by a consonant would block further conversion
- some versions of Android GBoard English keyboard entering 'n' followed by a consonant would block further conversion
## [3.1.0] - 2017-03-01
## [3.1.0] - 2018-03-01
### Changed
* bind() now sets necessary attributes automatically (autocomplete, spellcheck etc)
* toKana() no longer converts zenkaku latin toKana now: ('imi imi' => 'imi いみ')
* toRomaji() extends vowels for katakana chōonpu, IE: ゲーム => geemu, toHiragana() converts to hyphen => ge-mu
* toKana() **without** IME mode converts lone 'n' => 'ん', 'nn' => 'んん' _if no other chars present_
* isJapanese() now returns false for latin numbers (201) (still true for zenkaku 201)
* tokenize() splits into finer categories, view API documentation and tests for full details
* rewrite of conversion methods to allow custom mapping adapters
- bind() now sets necessary attributes automatically (autocomplete, spellcheck etc)
- toKana() no longer converts zenkaku latin toKana now: ('imi imi' => 'imi いみ')
- toRomaji() extends vowels for katakana chōonpu, IE: ゲーム => geemu, toHiragana() converts to hyphen => ge-mu
- toKana() **without** IME mode converts lone 'n' => 'ん', 'nn' => 'んん' _if no other chars present_
- isJapanese() now returns false for latin numbers (201) (still true for zenkaku 201)
- tokenize() splits into finer categories, view API documentation and tests for full details
- rewrite of conversion methods to allow custom mapping adapters
### Added
* isJapanese and isRomaji now accept a second param, a regexp that will also pass the check
* global option romanization for toRomaji() (currently only 'hepburn' however)
* global option customKanaMapping for toKana()
* global option customRomajiMapping for toRomaji()
- isJapanese and isRomaji now accept a second param, a regexp that will also pass the check
- global option romanization for toRomaji() (currently only 'hepburn' however)
- global option customKanaMapping for toKana()
- global option customRomajiMapping for toRomaji()
### Fixed
* inserting text between already existing characters in a bind() IME input field now properly sets cursor to correct position after conversion
* toRomaji() little ヶヵ used in words like 一ヶ月 are no longer converted since they are used as symbols (like the kanji) and do not actually denote kana. Previous behaviour: 一ヶ月 => 一 ke 月
* toRomaji() no longer incorrectly duplicates non-glottal stops following っ. Previous behaviour: あっ、 -> a,,
- inserting text between already existing characters in a bind() IME input field now properly sets cursor to correct position after conversion
- toRomaji() little ヶヵ used in words like 一ヶ月 are no longer converted since they are used as symbols (like the kanji) and do not actually denote kana. Previous behaviour: 一ヶ月 => 一 ke 月
- toRomaji() no longer incorrectly duplicates non-glottal stops following っ. Previous behaviour: あっ、 -> a,,

@@ -79,3 +89,3 @@ ## [2.3.4] - 2017-12-16

* _Uppercase_ input with toHiragana() including a double consonant was incorrectly producing a katakana ッ instead of っ
- _Uppercase_ input with toHiragana() including a double consonant was incorrectly producing a katakana ッ instead of っ

@@ -86,3 +96,3 @@ ## [2.3.3] - 2017-12-12

* Add https to unpkg link
- Add https to unpkg link

@@ -93,3 +103,3 @@ ## [2.3.2] - 2017-12-12

* Specify minified bundle in package.json for easy use with unpkg
- Specify minified bundle in package.json for easy use with unpkg

@@ -100,3 +110,3 @@ ## [2.3.1] - 2017-10-17

* Set cursor in IME mode to the current position after conversion (rather than the end of all input)
- Set cursor in IME mode to the current position after conversion (rather than the end of all input)

@@ -107,3 +117,3 @@ ## [2.3.0] - 2017-08-28

* Increase character coverage for isJapanese to include numbers and hankaku katakana
- Increase character coverage for isJapanese to include numbers and hankaku katakana

@@ -114,3 +124,3 @@ ## [2.2.4] - 2017-08-24

* Pass through long vowel conversion using toHiragana with odd/mixed input
- Pass through long vowel conversion using toHiragana with odd/mixed input

@@ -121,3 +131,3 @@ ## [2.2.3] - 2017-08-05

* Mobile input not converting automatically during autosuggest (regression due to 2.2.1)
- Mobile input not converting automatically during autosuggest (regression due to 2.2.1)

@@ -128,3 +138,3 @@ ## [2.2.2] - 2017-07-30

* Keep track of event listeners by generated ids
- Keep track of event listeners by generated ids

@@ -135,3 +145,3 @@ ## [2.2.1] - 2017-07-30

* [Microsoft IME input with 'tt' / っ](https://github.com/WaniKani/WanaKana/issues/48)
- [Microsoft IME input with 'tt' / っ](https://github.com/WaniKani/WanaKana/issues/48)

@@ -142,3 +152,3 @@ ## [2.2.0] - 2017-07-13

* Options object setting `IMEMode` can now accept `'toHiragana'` or `'toKatakana'` to enforce specific conversion on input
- Options object setting `IMEMode` can now accept `'toHiragana'` or `'toKatakana'` to enforce specific conversion on input

@@ -149,14 +159,14 @@ ## [2.1.0] - 2017-07-09

* Set `autocapitalize="none"` on bound input fields
* Handle multiple event listeners with separate options
* Increased test coverage
- Set `autocapitalize="none"` on bound input fields
- Handle multiple event listeners with separate options
- Increased test coverage
### Fixed
* Hold onto merged options for dom utils via closure instead of global
* Keep track of event listeners for removal on unbind
- Hold onto merged options for dom utils via closure instead of global
- Keep track of event listeners for removal on unbind
### Changed
* `bind`, `unbind` are now named exports in 'wanakana/domUtils'
- `bind`, `unbind` are now named exports in 'wanakana/domUtils'

@@ -167,3 +177,3 @@ ## [2.0.4] - 2017-07-07

* Wanakana website address in package.json
- Wanakana website address in package.json

@@ -174,3 +184,3 @@ ## [2.0.3] - 2017-07-07

* Missing description field in package.json
- Missing description field in package.json

@@ -181,7 +191,7 @@ ## [2.0.2] - 2017-06-30

* Documentation regarding recommended use of autocapitalize="none" on input fields
- Documentation regarding recommended use of autocapitalize="none" on input fields
### Changed
* Improve font readability on demo page
- Improve font readability on demo page

@@ -192,4 +202,4 @@ ## [2.0.1] - 2017-06-17

* Fixed some incorrect text references
* Internal build modifications
- Fixed some incorrect text references
- Internal build modifications

@@ -200,22 +210,23 @@ ## [2.0.0] - 2017-06-17

* Changelog!
* Separate bundles for different environments (node, esmodules, browser)
* New method: `stripOkurigana()`
* New method: `tokenize()`
* Default options extended with `passRomaji` and `upcaseKatakana`
* [Extended docs](http://www.wanakana.com/docs)
- Changelog!
- Separate bundles for different environments (node, esmodules, browser)
- New method: `stripOkurigana()`
- New method: `tokenize()`
- Default options extended with `passRomaji` and `upcaseKatakana`
- [Extended docs](http://www.wanakana.com/docs)
### Fixed
* [Ambiguous N](https://github.com/WaniKani/WanaKana/issues/38) thanks to @DTJB
* [Mixed Case toHiragana](https://github.com/WaniKani/WanaKana/issues/39) thanks to @DTJB
* [Katakana Long Vowels](https://github.com/WaniKani/WanaKana/issues/40) thanks to @dianahervascastillo @maesierra @codebar @ladieswhocode
* [Missing Space](https://github.com/WaniKani/WanaKana/issues/50) thanks to @mimshwright
- [Ambiguous N](https://github.com/WaniKani/WanaKana/issues/38) thanks to @DTJB
- [Mixed Case toHiragana](https://github.com/WaniKani/WanaKana/issues/39) thanks to @DTJB
- [Katakana Long Vowels](https://github.com/WaniKani/WanaKana/issues/40) thanks to @dianahervascastillo @maesierra @codebar @ladieswhocode
- [Missing Space](https://github.com/WaniKani/WanaKana/issues/50) thanks to @mimshwright
### Changed
* Transliteration converts major punctuation marks both ways.
* `isJapanese()` & `isRomaji()` check major punctuation.
* `isRomaji()` allows hepburn romanisation long vowels. (IE. Tōkyō)
- Transliteration converts major punctuation marks both ways.
- `isJapanese()` & `isRomaji()` check major punctuation.
- `isRomaji()` allows hepburn romanisation long vowels. (IE. Tōkyō)
[4.0.2]: https://github.com/WaniKani/WanaKana/compare/4.0.1...4.0.2
[4.0.1]: https://github.com/WaniKani/WanaKana/compare/4.0.0...4.0.1

@@ -222,0 +233,0 @@ [4.0.0]: https://github.com/WaniKani/WanaKana/compare/3.1.1...4.0.0

@@ -1,2 +0,2 @@

export const VERSION = '4.0.1';
export const VERSION = '4.0.2';

@@ -3,0 +3,0 @@ export const TO_KANA_METHODS = {

{
"name": "wanakana",
"version": "4.0.1",
"version": "4.0.2",
"license": "MIT",

@@ -31,2 +31,3 @@ "homepage": "http://www.wanakana.com",

"main": "wanakana.js",
"react-native": "wanakana.js",
"module": "es/index.js",

@@ -33,0 +34,0 @@ "browser": "umd/wanakana.min.js",

@@ -59,3 +59,3 @@ 'use strict';

const VERSION = '4.0.1';
const VERSION = '4.0.2';

@@ -62,0 +62,0 @@ const TO_KANA_METHODS = {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc