From efe487117c64d24be026b9bf07139369e4717251 Mon Sep 17 00:00:00 2001 From: Senryoku Date: Sat, 25 Nov 2023 15:13:56 +0100 Subject: [PATCH] Remove former 'Packed' version from www --- www/package-lock.json | 2 +- www/src/components/LibBenchmark.vue | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/www/package-lock.json b/www/package-lock.json index 3eebb15..a88df59 100644 --- a/www/package-lock.json +++ b/www/package-lock.json @@ -3453,7 +3453,7 @@ } }, "node_modules/smol-string": { - "version": "0.1.2-beta", + "version": "0.2.0-beta", "resolved": "file:../ts-lib", "license": "MIT" }, diff --git a/www/src/components/LibBenchmark.vue b/www/src/components/LibBenchmark.vue index d6d5ed5..e858649 100644 --- a/www/src/components/LibBenchmark.vue +++ b/www/src/components/LibBenchmark.vue @@ -41,11 +41,7 @@ ChartJS.defaults.borderColor = '#555' ChartJS.register(Title, Tooltip, Legend, BarElement, CategoryScale, LinearScale, Colors) -// import { compress, decompress } from 'smol-string' -// import { compressPacked, decompressPacked } from 'smol-string/packed' - import { compress, decompress } from 'smol-string/worker' -import { compressPacked, decompressPacked } from 'smol-string/worker/packed' // @ts-expect-error import LZString from '../../lz-string.min.js' @@ -83,7 +79,7 @@ const chartOptions = { const chartSizeOptions = structuredClone(chartOptions) chartSizeOptions.scales.y.title.text = 'Size (%)' -const methods = ['smol-string', 'smol-string-packed', 'LZString', 'LZString UTF-16'] +const methods = ['smol-string', 'LZString', 'LZString UTF-16'] const chartDataCompression = computed(() => { const datasets = [] @@ -173,7 +169,6 @@ for (const { name, input } of usedTests) { for (const { name, input } of usedTests) { await test('smol-string', name, input, compress, decompress) - await test('smol-string-packed', name, input, compressPacked, decompressPacked) await test('LZString', name, input, LZString.compress, LZString.decompress) await test('LZString UTF-16', name, input, LZString.compressToUTF16, LZString.decompressFromUTF16) }