From 9d477967e79a6fdf34a6904b069900193efb159c Mon Sep 17 00:00:00 2001 From: wenx5853 Date: Fri, 27 Oct 2023 09:36:51 -0700 Subject: [PATCH 1/2] prepare for js-v4.0.2 release --- OtherLanguages/js/CHANGELOG.md | 7 +++++-- OtherLanguages/js/dist/LercDecode.js | 1 + OtherLanguages/js/package-lock.json | 4 ++-- OtherLanguages/js/package.json | 2 +- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/OtherLanguages/js/CHANGELOG.md b/OtherLanguages/js/CHANGELOG.md index 1812452..99b7ae9 100755 --- a/OtherLanguages/js/CHANGELOG.md +++ b/OtherLanguages/js/CHANGELOG.md @@ -7,10 +7,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased][HEAD] -## [4.0.1][HEAD] - 2022-07-19 +## [4.0.2] - 2023-10-27 +* Fixed a small memory leak when nDepth is more than 1 and when noData value is actually used in one or more bands. + +## [4.0.1] - 2022-07-19 * Export typings. -## [4.0.0][HEAD] - 2022-07-15 +## [4.0.0] - 2022-07-15 Now uses web assembly, as a result: * The existing Javascript decoder ```js/LercDecode.js``` is deprecated. It will be removed in next major release. diff --git a/OtherLanguages/js/dist/LercDecode.js b/OtherLanguages/js/dist/LercDecode.js index 2c0bec8..305892e 100644 --- a/OtherLanguages/js/dist/LercDecode.js +++ b/OtherLanguages/js/dist/LercDecode.js @@ -176,6 +176,7 @@ Contributors: Thomas Maurer, Wenxue Ju bandCountWithNoData }; if (bandCountWithNoData) { + _free(ptr); return headerInfo; } if (depthCount === 1 && bandCount === 1) { diff --git a/OtherLanguages/js/package-lock.json b/OtherLanguages/js/package-lock.json index f27f42f..d11ecba 100644 --- a/OtherLanguages/js/package-lock.json +++ b/OtherLanguages/js/package-lock.json @@ -1,12 +1,12 @@ { "name": "lerc", - "version": "4.0.1", + "version": "4.0.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "lerc", - "version": "4.0.1", + "version": "4.0.2", "license": "Apache-2.0", "devDependencies": { "@typescript-eslint/eslint-plugin": "~5.33.1", diff --git a/OtherLanguages/js/package.json b/OtherLanguages/js/package.json index 669aeba..5b95a3f 100755 --- a/OtherLanguages/js/package.json +++ b/OtherLanguages/js/package.json @@ -1,6 +1,6 @@ { "name": "lerc", - "version": "4.0.1", + "version": "4.0.2", "browser": "LercDecode.js", "bugs": { "url": "https://github.com/esri/lerc/issues" From c8d45c308a801e893e61ac7cf07e4deb35132d15 Mon Sep 17 00:00:00 2001 From: wenx5853 Date: Fri, 27 Oct 2023 10:02:10 -0700 Subject: [PATCH 2/2] update JS copyright year --- HOWTO-RELEASE.md | 2 +- OtherLanguages/js/Gruntfile.js | 2 +- OtherLanguages/js/README.md | 2 +- OtherLanguages/js/dist/LercDecode.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/HOWTO-RELEASE.md b/HOWTO-RELEASE.md index cc3d3f9..e22eabd 100644 --- a/HOWTO-RELEASE.md +++ b/HOWTO-RELEASE.md @@ -6,7 +6,7 @@ Update version numbers in src/LercLib/include/Lerc_c_api.h and CMakeLists.txt - Config build environment. For 4.0 release: Node.js v16 LTS, npm 8.11 - Update the following files in OtherLanguages/js - - Update version numbers in package.json + - Run npm version xxx to update version numbers in package.json - Update CHANGELOG.md - Update copyright year in Gruntfile.js, README.md and README.hbs - If applicable, update usage in README.md and README.hbs diff --git a/OtherLanguages/js/Gruntfile.js b/OtherLanguages/js/Gruntfile.js index 5489f8d..7250427 100644 --- a/OtherLanguages/js/Gruntfile.js +++ b/OtherLanguages/js/Gruntfile.js @@ -1,5 +1,5 @@ const copyright = `/*! Lerc 4.0 -Copyright 2015 - 2022 Esri +Copyright 2015 - 2023 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at diff --git a/OtherLanguages/js/README.md b/OtherLanguages/js/README.md index 407c01f..527b3db 100644 --- a/OtherLanguages/js/README.md +++ b/OtherLanguages/js/README.md @@ -107,7 +107,7 @@ A function for decoding both LERC1 and LERC2 byte streams capable of handling mu ## Licensing -Copyright © 2017-2022 Esri +Copyright © 2017-2023 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/OtherLanguages/js/dist/LercDecode.js b/OtherLanguages/js/dist/LercDecode.js index 305892e..a7281fe 100644 --- a/OtherLanguages/js/dist/LercDecode.js +++ b/OtherLanguages/js/dist/LercDecode.js @@ -1,5 +1,5 @@ /*! Lerc 4.0 -Copyright 2015 - 2022 Esri +Copyright 2015 - 2023 Esri Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at