Skip to content

Commit

Permalink
Prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
mnater committed May 4, 2020
1 parent 361b16f commit fa90cbd
Show file tree
Hide file tree
Showing 16 changed files with 323 additions and 180 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Version History

## Version 4.4.0 (2020-05-04)
### Changed
* convert objects to maps (no API changes)

### Fixed
* bumb devDependencies
* simplify webpack example

## Version 4.3.0 (2020-04-17)
### Fixed
* Hyphenators handle subtags with different lang consistently (issue #108)
Expand Down
2 changes: 1 addition & 1 deletion Hyphenopoly.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Hyphenopoly 4.3.0 - client side hyphenation for webbrowsers
* @license Hyphenopoly 4.4.0 - client side hyphenation for webbrowsers
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down
2 changes: 1 addition & 1 deletion Hyphenopoly_Loader.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Hyphenopoly_Loader 4.3.0 - client side hyphenation
* @license Hyphenopoly_Loader 4.4.0 - client side hyphenation
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
Hyphenopoly.js is a __JavaScript-polyfill for hyphenation in HTML__: it hyphenates text if the user agent does not support CSS-hyphenation at all or not for the required languages and it is a __Node.js-module__.

The package consists of the following parts:
- _Hyphenopoly_Loader.js_ (~12KB unpacked, ~2KB minified and compressed): feature-checks the client and loads other resources if necessary.
- _Hyphenopoly.js_ (~37KB unpacked, ~4KB minified and compressed): does the whole DOM-foo and wraps wasm.
- _Hyphenopoly_Loader.js_ (~11KB unpacked, ~2KB minified and compressed): feature-checks the client and loads other resources if necessary.
- _Hyphenopoly.js_ (~38KB unpacked, ~5KB minified and compressed): does the whole DOM-foo and wraps wasm.
- _wasm-Modules_ (sizes differ! e.g. en-us.wasm: ~24KB uncompressed, ~15KB compressed): core hyphenation functions and hyphenation patterns in a space saving binary format (including pattern license).
- _hyphenopoly.module.js_: the node module

Expand Down
4 changes: 2 additions & 2 deletions docs/min/Hyphenopoly.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/min/Hyphenopoly_Loader.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/min/testsuite/test1.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
var lang = "";
while (i <= tests) {
lang = document.getElementById("test" + i).lang;
if (Hyphenopoly.cf.langs[lang] === "CSS") {
if (Hyphenopoly.cf.get("langs").get(lang) === "CSS") {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed (CSS)</p>";
result = result && true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion docs/min/testsuite/test24.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
var lang = "";
while (i <= tests) {
lang = document.getElementById("test" + i).lang;
if (Hyphenopoly.cf.langs[lang] === "CSS") {
if (Hyphenopoly.cf.get("langs").get(lang) === "CSS") {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed (CSS)</p>";
result = result && true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion docs/min/testsuite/test33.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
var lang = "";
while (i <= tests) {
lang = document.getElementById("test" + i).lang;
if (Hyphenopoly.cf.langs[lang] === "CSS") {
if (Hyphenopoly.cf.get("langs").get(lang) === "CSS") {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed (CSS)</p>";
result = result && true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion docs/min/testsuite/test34.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
var lang = "";
while (i <= tests) {
lang = document.getElementById("test" + i).lang;
if (Hyphenopoly.cf.langs[lang] === "CSS") {
if (Hyphenopoly.cf.get("langs").get(lang) === "CSS") {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed (CSS)</p>";
result = result && true;
} else {
Expand Down
4 changes: 2 additions & 2 deletions docs/min/testsuite/test38.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
window.onload = function () {
if (window.Promise) {
function hyphenate_en(text) {
Hyphenopoly.hyphenators["en"].then(
Hyphenopoly.hyphenators.en.then(
function (enhyph) {
document.getElementById("test1").innerText = enhyph(text);
assertAll();
Expand All @@ -37,7 +37,7 @@
});
}
function hyphenate_de(text) {
Hyphenopoly.hyphenators["de"].then(
Hyphenopoly.hyphenators.de.then(
function (dehyph) {
document.getElementById("test2").innerText = dehyph(text);
assertAll();
Expand Down
2 changes: 1 addition & 1 deletion docs/min/testsuite/test44.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
var lang = "";
while (i <= tests) {
lang = document.getElementById("test" + i).lang;
if (Hyphenopoly.cf.langs[lang] === "CSS") {
if (Hyphenopoly.cf.get("langs").get(lang) === "CSS") {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed (CSS)</p>";
result = result && true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion docs/min/testsuite/test45.html
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
var lang = "";
while (i <= tests) {
lang = document.getElementById("test" + i).lang;
if (Hyphenopoly.cf.langs[lang] === "CSS") {
if (Hyphenopoly.cf.get("langs").get(lang) === "CSS") {
document.getElementById("result").innerHTML += "<p style=\"background-color: #d6ffd6\">" + i + " passed (CSS)</p>";
result = result && true;
} else {
Expand Down
2 changes: 1 addition & 1 deletion hyphenopoly.module.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @license Hyphenopoly.module.js 4.3.0 - hyphenation for node
* @license Hyphenopoly.module.js 4.4.0 - hyphenation for node
* ©2020 Mathias Nater, Güttingen (mathiasnater at gmail dot com)
* https://github.com/mnater/Hyphenopoly
*
Expand Down
Loading

0 comments on commit fa90cbd

Please sign in to comment.