Fix Unicode Encode/Decode Process
NOTE: the package.json edits were made by yarn/npm installation
Summary
This pull request normalizes encodings between node and the browser. By doing so we eliminate any malformed data and introduce a stable utf8 encoding/decoding library which improves stability between both environments.
Updates
Codecov Report
Merging #9 into master will increase coverage by
7.14%. The diff coverage isn/a.
@@ Coverage Diff @@
## master #9 +/- ##
========================================
+ Coverage 92.85% 100% +7.14%
========================================
Files 3 1 -2
Lines 42 14 -28
========================================
- Hits 39 14 -25
+ Misses 3 0 -3
| Impacted Files | Coverage Δ | |
|---|---|---|
| src/reshape-ast-to-vdom.js |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact),ø = not affected,? = missing dataPowered by Codecov. Last update bef6e1f...afa4360. Read the comment docs.
The current tests are rather bare and should have included a larger set of Unicode characters from Unicode 6.0.0 standard. The provided solution here does work and is used in a production setting. I'm unable to allocate time to this currently, however, if I wind-up with free time in the future I can revisit this and add more tests.