Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: ashtuchkin/iconv-lite
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: efbbb0937ca8dda1c14e0b69958b9d6f20771f7a
Choose a base ref
...
head repository: ashtuchkin/iconv-lite
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: efbad0a92edf1b09c111278abb104d935c6c0482
Choose a head ref

Commits on Jun 26, 2019

  1. Update README.md (#217)

    Fixed the incorrect link address.
    oldj authored and ashtuchkin committed Jun 26, 2019
    Copy the full SHA
    c4a4f0f View commit details
  2. Update README.md

    ashtuchkin authored Jun 26, 2019
    Copy the full SHA
    d184d14 View commit details
  3. Update README.md

    ashtuchkin authored Jun 26, 2019
    Copy the full SHA
    f2d7ba8 View commit details
  4. Add support for UTF-32 (#216)

    kshetline authored and ashtuchkin committed Jun 26, 2019
    Copy the full SHA
    841031f View commit details
  5. Update .travis.yml

    ashtuchkin authored Jun 26, 2019
    Copy the full SHA
    d01d0a0 View commit details
  6. Copy the full SHA
    2b4125d View commit details

Commits on Jan 18, 2020

  1. Added cp720 encoding (Persian/Farsi)

    amoiseev authored and ashtuchkin committed Jan 18, 2020
    Copy the full SHA
    fa594b1 View commit details
  2. Copy the full SHA
    c60e647 View commit details

Commits on Jan 21, 2020

  1. fix: semver fix version to 6.1.2

    tanandara authored and ashtuchkin committed Jan 21, 2020
    Copy the full SHA
    7664804 View commit details

Commits on Jun 8, 2020

  1. Copy the full SHA
    5dec724 View commit details
  2. Copy the full SHA
    eed6018 View commit details
  3. Copy the full SHA
    e54536c View commit details
  4. Copy the full SHA
    5148f43 View commit details
  5. Removed extendNodeEncodings mechanism. It didn't work in Node v4+ a…

    …nd was deprecated 5 years ago in v0.4.12.
    ashtuchkin committed Jun 8, 2020
    Copy the full SHA
    b7288df View commit details
  6. Reworked Streaming API behavior in browser environments to fix #204.

    I removed conditional requires that were causing problems described in #204, so it shouldn't be a problem now.
    
    The reasoning behind these conditions was to avoid bloating browser bundles that usually don't require Streaming API.
    Streaming API is built upon 'streams' Node.js module that can grow the bundles up to ~100 Kb.
    
    To still keep this benefit while allowing users to explicitly enable Streaming API on the browser, I restructured the dependencies:
     1. In package.json 'browser.stream' module is set to false, thus ignored by default (require('stream') returns empty object).
     2. In index.js we check if require('stream') returns non-empty object and enable Streaming API by dependency-injecting this module
        to streams.js.
     3. Otherwise, we create small shims for 'encodeStream' and 'decodeStream' functions that throw exceptions when called,
        with a message that helps users to explicitly enable Streaming APIs using 'iconv.enableStreamingAPI'. The idea is that this
        should be a very rare case.
    
    Also add tests for browser streaming behaviors with webpack/karma setup
    ashtuchkin committed Jun 8, 2020
    Copy the full SHA
    be44a2e View commit details
  7. Remove Buffer constructor usage in tests (#197)

    Gabriel Schulhof authored and ashtuchkin committed Jun 8, 2020
    Copy the full SHA
    4114d6f View commit details
  8. Copy the full SHA
    5ceabd4 View commit details
  9. Copy the full SHA
    bd3cd35 View commit details
  10. Copy the full SHA
    0fccd6f View commit details
  11. Copy the full SHA
    7cf4c2e View commit details
  12. Release 0.6.0: Support Electron environment (#204); Remove extendNode…

    …Encodings; Update gb18030 to :2005 edition.
    ashtuchkin committed Jun 8, 2020
    Copy the full SHA
    b106faa View commit details

Commits on Jun 9, 2020

  1. Create dependabot.yml

    ashtuchkin authored Jun 9, 2020
    Copy the full SHA
    245db46 View commit details
  2. Update dependabot.yml

    ashtuchkin authored Jun 9, 2020
    Copy the full SHA
    0e5377a View commit details

Commits on Jun 14, 2020

  1. Copy the full SHA
    148b6bc View commit details

Commits on Jun 28, 2020

  1. Fix minor issue in UTF-32 decoder.

    In streaming mode, if the first chunk is < 32 bytes, but there are more
    chunks written with total size of the stream > 32 bytes, then we were
    losing initial chunk. This looks like an unlikely scenario, so not a
    major issue.
    
    Note, this is happening only in UTF-32 decoder, not UTF-32LE or BE,
    as the problem was in the code that detects encoding.
    ashtuchkin committed Jun 28, 2020
    Copy the full SHA
    3331bbc View commit details
  2. Copy the full SHA
    dd72d9d View commit details
  3. Copy the full SHA
    724829e View commit details

Commits on Jun 29, 2020

  1. Copy the full SHA
    21004dd View commit details

Commits on Jul 8, 2020

  1. Copy the full SHA
    efbad0a View commit details
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Please see the documentation for all configuration options:
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
allow:
- dependency-type: production
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Node.js stuff
node_modules
wiki
package-lock.json

# Editors
*~
*sublime-*
coverage
/.idea

# Development environment
/coverage
/benchmarks/node_envs
/generation/source-data
40 changes: 18 additions & 22 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
sudo: false
language: node_js
node_js:
- "0.10"
- "0.11"
- "0.12"
- "iojs"
- "4"
- "6"
- "8"
- "node"


env:
- CXX=g++-4.8
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- gcc-4.8
- g++-4.8
language: node_js
node_js:
- "0.10"
- "0.11"
- "0.12"
- "iojs"
- "4"
- "6"
- "8"
- "10"
- "12"
- "node"

jobs:
include:
- name: webpack
node_js: "12"
install: cd test/webpack; npm install
script: npm test
96 changes: 71 additions & 25 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,50 +1,96 @@
# 0.4.24 / 2018-08-22
## 0.6.2 / 2020-07-08
* Support Uint8Array-s decoding without conversion to Buffers, plus fix an edge case.


## 0.6.1 / 2020-06-28
* Support Uint8Array-s directly when decoding (#246, by @gyzerok)
* Unify package.json version ranges to be strictly semver-compatible (#241)
* Fix minor issue in UTF-32 decoder's endianness detection code.


## 0.6.0 / 2020-06-08
* Updated 'gb18030' encoding to :2005 edition (see https://github.com/whatwg/encoding/issues/22).
* Removed `iconv.extendNodeEncodings()` mechanism. It was deprecated 5 years ago and didn't work
in recent Node versions.
* Reworked Streaming API behavior in browser environments to fix #204. Streaming API will be
excluded by default in browser packs, saving ~100Kb bundle size, unless enabled explicitly using
`iconv.enableStreamingAPI(require('stream'))`.
* Updates to development environment & tests:
* Added ./test/webpack private package to test complex new use cases that need custom environment.
It's tested as a separate job in Travis CI.
* Updated generation code for the new EUC-KR index file format from Encoding Standard.
* Removed Buffer() constructor in tests (#197 by @gabrielschulhof).


## 0.5.2 / 2020-06-08
* Added `iconv.getEncoder()` and `iconv.getDecoder()` methods to typescript definitions (#229).
* Fixed semver version to 6.1.2 to support Node 8.x (by @tanandara).
* Capped iconv version to 2.x as 3.x has dropped support for older Node versions.
* Switched from instanbul to c8 for code coverage.


## 0.5.1 / 2020-01-18

* Added cp720 encoding (#221, by @kr-deps)
* (minor) Changed Changelog.md formatting to use h2.


## 0.5.0 / 2019-06-26

* Added UTF-32 encoding, both little-endian and big-endian variants (UTF-32LE, UTF32-BE). If endianness
is not provided for decoding, it's deduced automatically from the stream using a heuristic similar to
what we use in UTF-16. (great work in #216 by @kshetline)
* Several minor updates to README (#217 by @oldj, plus some more)
* Added Node versions 10 and 12 to Travis test harness.


## 0.4.24 / 2018-08-22

* Added MIK encoding (#196, by @Ivan-Kalatchev)


# 0.4.23 / 2018-05-07
## 0.4.23 / 2018-05-07

* Fix deprecation warning in Node v10 due to the last usage of `new Buffer` (#185, by @felixbuenemann)
* Switched from NodeBuffer to Buffer in typings (#155 by @felixfbecker, #186 by @larssn)


# 0.4.22 / 2018-05-05
## 0.4.22 / 2018-05-05

* Use older semver style for dependencies to be compatible with Node version 0.10 (#182, by @dougwilson)
* Fix tests to accomodate fixes in Node v10 (#182, by @dougwilson)


# 0.4.21 / 2018-04-06
## 0.4.21 / 2018-04-06

* Fix encoding canonicalization (#156)
* Fix the paths in the "browser" field in package.json (#174 by @LMLB)
* Removed "contributors" section in package.json - see Git history instead.


# 0.4.20 / 2018-04-06
## 0.4.20 / 2018-04-06

* Updated `new Buffer()` usages with recommended replacements as it's being deprecated in Node v10 (#176, #178 by @ChALkeR)


# 0.4.19 / 2017-09-09
## 0.4.19 / 2017-09-09

* Fixed iso8859-1 codec regression in handling untranslatable characters (#162, caused by #147)
* Re-generated windows1255 codec, because it was updated in iconv project
* Fixed grammar in error message when iconv-lite is loaded with encoding other than utf8


# 0.4.18 / 2017-06-13
## 0.4.18 / 2017-06-13

* Fixed CESU-8 regression in Node v8.


# 0.4.17 / 2017-04-22
## 0.4.17 / 2017-04-22

* Updated typescript definition file to support Angular 2 AoT mode (#153 by @larssn)


# 0.4.16 / 2017-04-22
## 0.4.16 / 2017-04-22

* Added support for React Native (#150)
* Changed iso8859-1 encoding to usine internal 'binary' encoding, as it's the same thing (#147 by @mscdex)
@@ -53,12 +99,12 @@
* Added a warning if iconv-lite is loaded not as utf-8 (see #142)


# 0.4.15 / 2016-11-21
## 0.4.15 / 2016-11-21

* Fixed typescript type definition (#137)


# 0.4.14 / 2016-11-20
## 0.4.14 / 2016-11-20

* Preparation for v1.0
* Added Node v6 and latest Node versions to Travis CI test rig
@@ -68,31 +114,31 @@
* Add ms prefix to dbcs windows encodings (@rokoroku)


# 0.4.13 / 2015-10-01
## 0.4.13 / 2015-10-01

* Fix silly mistake in deprecation notice.


# 0.4.12 / 2015-09-26
## 0.4.12 / 2015-09-26

* Node v4 support:
* Added CESU-8 decoding (#106)
* Added deprecation notice for `extendNodeEncodings`
* Added Travis tests for Node v4 and io.js latest (#105 by @Mithgol)


# 0.4.11 / 2015-07-03
## 0.4.11 / 2015-07-03

* Added CESU-8 encoding.


# 0.4.10 / 2015-05-26
## 0.4.10 / 2015-05-26

* Changed UTF-16 endianness heuristic to take into account any ASCII chars, not
just spaces. This should minimize the importance of "default" endianness.


# 0.4.9 / 2015-05-24
## 0.4.9 / 2015-05-24

* Streamlined BOM handling: strip BOM by default, add BOM when encoding if
addBOM: true. Added docs to Readme.
@@ -104,53 +150,53 @@
* Use strict mode in all files.


# 0.4.8 / 2015-04-14
## 0.4.8 / 2015-04-14

* added alias UNICODE-1-1-UTF-7 for UTF-7 encoding (#94)


# 0.4.7 / 2015-02-05
## 0.4.7 / 2015-02-05

* stop official support of Node.js v0.8. Should still work, but no guarantees.
reason: Packages needed for testing are hard to get on Travis CI.
* work in environment where Object.prototype is monkey patched with enumerable
props (#89).


# 0.4.6 / 2015-01-12
## 0.4.6 / 2015-01-12

* fix rare aliases of single-byte encodings (thanks @mscdex)
* double the timeout for dbcs tests to make them less flaky on travis


# 0.4.5 / 2014-11-20
## 0.4.5 / 2014-11-20

* fix windows-31j and x-sjis encoding support (@nleush)
* minor fix: undefined variable reference when internal error happens


# 0.4.4 / 2014-07-16
## 0.4.4 / 2014-07-16

* added encodings UTF-7 (RFC2152) and UTF-7-IMAP (RFC3501 Section 5.1.3)
* fixed streaming base64 encoding


# 0.4.3 / 2014-06-14
## 0.4.3 / 2014-06-14

* added encodings UTF-16BE and UTF-16 with BOM


# 0.4.2 / 2014-06-12
## 0.4.2 / 2014-06-12

* don't throw exception if `extendNodeEncodings()` is called more than once


# 0.4.1 / 2014-06-11
## 0.4.1 / 2014-06-11

* codepage 808 added


# 0.4.0 / 2014-06-10
## 0.4.0 / 2014-06-10

* code is rewritten from scratch
* all widespread encodings are supported
Loading