Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add byteLength method and hasState property #258

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Commits on Jul 14, 2020

  1. Introduce the concept of backends

     * Add two backends: node & web
     * Convert core lib files to use the backends (and not use Buffer)
     * Convert utf16 codec as an example
     * Add testing for both node side and webpack
     * Bump Node.js minimal supported version to 4.5.0 and modernize some
       existing code. This will allow us to get rid of
       safer-buffer, our only dependency.
    ashtuchkin committed Jul 14, 2020
    Configuration menu
    Copy the full SHA
    e567849 View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2020

  1. Implement UTF-16LE encoding, update tests, adjust codec interface

    Three major reasons for reimplementing UTF-16 and not use native codec:
     1. We want to remove StringDecoder & Buffer references due to ashtuchkin#235.
     2. StringDecoder is inconsistent with handling surrogates on Node v6-9
     3. NPM module string_decoder gives strange results when processing chunks -
        it sometimes prepends '\u0000', likely due to a bug.
    
    Performance was and is a major concern here. Decoder shouldn't be affected because it uses
    backend methods directly. Encoder is affected due to introducing character-level loop. It's
    still very fast (~450Mb/s), so I'm not too worried. If needed, we can make it about 4x faster
    in Node.js by introducing a dedicated backend method. Browser speeds will be the same.
    ashtuchkin committed Jul 16, 2020
    Configuration menu
    Copy the full SHA
    9aa082f View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2020

  1. Configuration menu
    Copy the full SHA
    228af9c View commit details
    Browse the repository at this point in the history
  2. Added ESLint and Prettier.

    ashtuchkin committed Jul 17, 2020
    Configuration menu
    Copy the full SHA
    141a8dd View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0d01f15 View commit details
    Browse the repository at this point in the history
  4. Apply ESLint to tests

    ashtuchkin committed Jul 17, 2020
    Configuration menu
    Copy the full SHA
    5da0746 View commit details
    Browse the repository at this point in the history
  5. Apply prettier to tests

    ashtuchkin committed Jul 17, 2020
    Configuration menu
    Copy the full SHA
    c16052d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    67f91b9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    9bb9d83 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f49c584 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2be15b0 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2020

  1. Removed dependency on 'iconv' from sbcs-test.js and added it to web s…

    …uite
    
    To do that I've added a generation step and store the data in test/tables/ folder.
    ashtuchkin committed Jul 18, 2020
    Configuration menu
    Copy the full SHA
    a1bd8f7 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2020

  1. Configuration menu
    Copy the full SHA
    5d99a92 View commit details
    Browse the repository at this point in the history

Commits on Jul 29, 2020

  1. Configuration menu
    Copy the full SHA
    1f5c89e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    72517be View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2020

  1. Configuration menu
    Copy the full SHA
    ab95d0a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    191aa2a View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2020

  1. format

    tran-huynh-minh-ngoc committed Sep 16, 2020
    Configuration menu
    Copy the full SHA
    965b5fb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8bbd3e4 View commit details
    Browse the repository at this point in the history