From 2c28bc21012a5b54e4a658781b6aa3ade9ddd6b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20dBruxelles?= <18559798+jdbruxelles@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:47:30 +0100 Subject: [PATCH] Mark v1.4.1 --- CHANGELOG.md | 6 ++++++ package.json | 2 +- src/si18n.js | 4 ++-- website/index.html | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4818c4e..f6e1f6e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ > breaking changes and/or new features that you need to implement in your > project. +## 1.4.1 (October, 2023) + +- Ignore `data-si18n` attributes with no value. +- Functions (`translate` and `callback`) are excluded from the result of the + `toJSON` method because they are not necessary. + ## 1.4.0 (March 4, 2023) - Add a `reloadPage` option to reload the page when the language is changed. diff --git a/package.json b/package.json index 4edebe6..e163fe8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "si18n.js", - "version": "1.4.0", + "version": "1.4.1", "description": "A simple and lightweight way to integrate internationalization on a small web site project.", "main": "./si18n.js", "directories": { diff --git a/src/si18n.js b/src/si18n.js index 278f6f8..ee06939 100644 --- a/src/si18n.js +++ b/src/si18n.js @@ -1,5 +1,5 @@ /*! - * @license si18n.js - v1.4.0 + * @license si18n.js - v1.4.1 * Copyright (c) José dBruxelles . * * This source code is licensed under the MIT license found in the @@ -9,7 +9,7 @@ * Make translation management easier and more efficient. */ export default class Si18n { - static version = "1.4.0"; + static version = "1.4.1"; #noop() {} // Empty function to avoid undefined paramaters. #isInitialized = false; #options = { diff --git a/website/index.html b/website/index.html index aedb4a6..818e4e2 100644 --- a/website/index.html +++ b/website/index.html @@ -156,7 +156,7 @@

<!-- (?target=es2015|es2022|esnext) --> <script type="module" src="https://esm.sh/si18n.js@latest"></script> -<script type="module" src="https://cdn.jsdelivr.net/npm/si18n.js@1.4.0/+esm"></script> +<script type="module" src="https://cdn.jsdelivr.net/npm/si18n.js@1.4.1/+esm"></script> <!-- UNPKG --> <script type="module">