From 54de73d146075658080e4aea8642787260570b54 Mon Sep 17 00:00:00 2001 From: Jason Caldwell Date: Wed, 13 Sep 2023 11:33:59 -0400 Subject: [PATCH] Project update. [p][robotic] --- dev/.files/eslint/config.mjs | 12 -- package-lock.json | 312 ++++++++++++++++++----------------- package.json | 40 ++--- src/preact/apis/iso.tsx | 4 +- tsconfig.d.ts | 2 - 5 files changed, 179 insertions(+), 191 deletions(-) diff --git a/dev/.files/eslint/config.mjs b/dev/.files/eslint/config.mjs index ec02401c..2c4183e5 100644 --- a/dev/.files/eslint/config.mjs +++ b/dev/.files/eslint/config.mjs @@ -83,19 +83,7 @@ export default async () => { ...esVersion.globals, - // Declares Vite global app constants. - // @note Also in `../../../tsconfig.d.ts`. - // These are needed only to satisfy the `no-undef` rule. - - $$__APP_PKG_NAME__$$: 'readonly', - $$__APP_PKG_VERSION__$$: 'readonly', - $$__APP_PKG_REPOSITORY__$$: 'readonly', - $$__APP_PKG_HOMEPAGE__$$: 'readonly', - $$__APP_PKG_BUGS__$$: 'readonly', - $$__APP_BUILD_TIME_YMD__$$: 'readonly', - // Declares globals based on target environment(s). - // These are needed only to satisfy the `no-undef` rule. // For docs on our target environments; {@see https://o5p.me/nCnEkQ}. ...(targetEnv // Globals for target environment. diff --git a/package-lock.json b/package-lock.json index 15b9dd80..76aed2da 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@clevercanyon/utilities", - "version": "1.0.229", + "version": "1.0.230", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@clevercanyon/utilities", - "version": "1.0.229", + "version": "1.0.230", "cpu": [ "x64", "arm64" @@ -17,7 +17,7 @@ "linux" ], "devDependencies": { - "@clevercanyon/dev-deps": "^1.0.199" + "@clevercanyon/dev-deps": "^1.0.201" }, "engines": { "node": "^19.1.0 || ^20.5.1", @@ -27,11 +27,11 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/preact-iso.fork": "^2.3.55", + "@clevercanyon/preact-iso.fork": "^2.3.57", "fast-equals": "^4.0.3", "ignore": "^5.2.4", "luxon": "^3.4.3", - "micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.52", + "micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.54", "moize": "^6.1.6", "preact": "^10.17.1", "preact-render-to-string": "^6.2.1", @@ -736,9 +736,9 @@ "dev": true }, "node_modules/@clevercanyon/dev-deps": { - "version": "1.0.199", - "resolved": "https://registry.npmjs.org/@clevercanyon/dev-deps/-/dev-deps-1.0.199.tgz", - "integrity": "sha512-6qjRrVX6aWsDTSBgSobjY7iu34DqvT3+wXXFYCEQ5e6qdGcVJoFn6vg7k1CgyhGD+LddVqttsAn+yvLsaAe2bw==", + "version": "1.0.201", + "resolved": "https://registry.npmjs.org/@clevercanyon/dev-deps/-/dev-deps-1.0.201.tgz", + "integrity": "sha512-8oRq0db0t50AjPJzfPY/A2g/0modmqiRFM5FB0nJpbw5XZFh3SqWglW8N2gmPl+WnKGXmP8NP6m8pgKuUEcaDw==", "cpu": [ "x64", "arm64" @@ -749,10 +749,10 @@ "linux" ], "dependencies": { - "@clevercanyon/madrun": "^1.0.89", - "@clevercanyon/utilities": "^1.0.228", - "@clevercanyon/utilities.cfp": "^1.0.86", - "@clevercanyon/utilities.node": "^1.0.95", + "@clevercanyon/madrun": "^1.0.91", + "@clevercanyon/utilities": "^1.0.230", + "@clevercanyon/utilities.cfp": "^1.0.87", + "@clevercanyon/utilities.node": "^1.0.96", "@cloudflare/workers-types": "^4.20230904.0", "@eslint/js": "^8.48.0", "@octokit/core": "^4.2.4", @@ -785,7 +785,7 @@ "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-prettier": "^5.0.0", "globals": "^13.21.0", - "jest": "^29.6.4", + "jest": "^29.7.0", "jsdom": "^21.1.2", "libsodium-wrappers": "^0.7.11", "madge": "^6.1.0", @@ -830,9 +830,9 @@ } }, "node_modules/@clevercanyon/madrun": { - "version": "1.0.89", - "resolved": "https://registry.npmjs.org/@clevercanyon/madrun/-/madrun-1.0.89.tgz", - "integrity": "sha512-Z3omgt65LqhSazqN2NRlG8r4BGGIADZ8Iq1tfuZHEPg0x2rSV8spmPaaIKurXzs+zEtLZE2FoWMoznVGaNq89g==", + "version": "1.0.92", + "resolved": "https://registry.npmjs.org/@clevercanyon/madrun/-/madrun-1.0.92.tgz", + "integrity": "sha512-q9uq5VFL1C3JuElg2Eq6oAT/8He658h+BSkm8/Fy01ZBGgElDK+Xz8qnMR1riBqXVG3fueYGPZxlP/6YcG+wcw==", "cpu": [ "x64", "arm64" @@ -843,8 +843,8 @@ "linux" ], "dependencies": { - "@clevercanyon/utilities": "^1.0.227", - "@clevercanyon/utilities.node": "^1.0.91" + "@clevercanyon/utilities": "^1.0.230", + "@clevercanyon/utilities.node": "^1.0.96" }, "bin": { "madrun": "dist/bin/cli.js" @@ -858,9 +858,9 @@ } }, "node_modules/@clevercanyon/preact-iso.fork": { - "version": "2.3.55", - "resolved": "https://registry.npmjs.org/@clevercanyon/preact-iso.fork/-/preact-iso.fork-2.3.55.tgz", - "integrity": "sha512-lfShznt1IEgxWrRYWE8sapwLY3LcwGrdK3n5GXB5gKvms5nM0qSillMp0MBe0hkxj5d11NxTfAEGG4oyCCUgoA==", + "version": "2.3.57", + "resolved": "https://registry.npmjs.org/@clevercanyon/preact-iso.fork/-/preact-iso.fork-2.3.57.tgz", + "integrity": "sha512-FwBML2sH2nJPKwDZHuuB+7ANXCWaV2lDoZcfM9FXwP1xI5rMd5L4S3mwFRLtr5oY8seJSN6JDdoUu+oo8Kxo4g==", "cpu": [ "x64", "arm64" @@ -883,9 +883,9 @@ } }, "node_modules/@clevercanyon/split-cmd.fork": { - "version": "1.0.50", - "resolved": "https://registry.npmjs.org/@clevercanyon/split-cmd.fork/-/split-cmd.fork-1.0.50.tgz", - "integrity": "sha512-fKgu3s7XWsZtFRVf+7hPyfeHY0NKIvi5h8dpmzP2wUeoDcCNWRny1YPxN6A26BF+orvN43j5ahtZQiIEvieFyQ==", + "version": "1.0.52", + "resolved": "https://registry.npmjs.org/@clevercanyon/split-cmd.fork/-/split-cmd.fork-1.0.52.tgz", + "integrity": "sha512-aED1w9+ke+meQZNYZG1+nuH2joc92BGnbS3dDSX0lscfSi7BqqBkOHMtzOSWOstdfTcLNJUyok+NMQOB6gWtaQ==", "cpu": [ "x64", "arm64" @@ -905,9 +905,9 @@ } }, "node_modules/@clevercanyon/utilities": { - "version": "1.0.228", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.228.tgz", - "integrity": "sha512-wJcniYfqOG2T6UUchmphioIE5DwBxDQR7MD7z/3/u7LvvMky0mFtlxCrsjnYTe6eefiHZBwYbKdb8/wajHw6Qg==", + "version": "1.0.230", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.230.tgz", + "integrity": "sha512-3kQ/M4+WspYS0t62eZ3ui6oU86UuvFrA5kmacZNClPNdGZBtIuS0TaWB/ZgWGktKmfNFj+ZarTvO40b+A6gO4Q==", "cpu": [ "x64", "arm64" @@ -928,7 +928,7 @@ "@clevercanyon/preact-iso.fork": "^2.3.55", "fast-equals": "^4.0.3", "ignore": "^5.2.4", - "luxon": "^3.4.2", + "luxon": "^3.4.3", "micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.52", "moize": "^6.1.6", "preact": "^10.17.1", @@ -939,9 +939,9 @@ } }, "node_modules/@clevercanyon/utilities.cfp": { - "version": "1.0.86", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.86.tgz", - "integrity": "sha512-rDlK8348R/blYmcj80yW5NjA+KlpLJfbWMaiXlic4LPvw5C195o4rtiNAnh5XBoIbzqTkaHIT8/dryprxxIghA==", + "version": "1.0.87", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.87.tgz", + "integrity": "sha512-dtVeJqDWSUoK+kxKtNA2mAxlm3xq8wWLBpuDqAVSNOfyZQLxSY6+P3zc1YnwDbfnhdD5qxQM04pkTZERU9B8kg==", "cpu": [ "x64", "arm64" @@ -959,15 +959,15 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.228", - "@clevercanyon/utilities.cfw": "^1.0.94", + "@clevercanyon/utilities": "^1.0.230", + "@clevercanyon/utilities.cfw": "^1.0.95", "@clevercanyon/utilities.web": "^1.0.66" } }, "node_modules/@clevercanyon/utilities.cfw": { - "version": "1.0.94", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.94.tgz", - "integrity": "sha512-iYF/iIOGakPSTQFhQM9TatLMrf4kNRbf7qxmQ7xHHx8UN9jL08YSgBGXgfy1v4QO69RXUpGUhNmtO1F4nVe+GQ==", + "version": "1.0.95", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.95.tgz", + "integrity": "sha512-1JDjRkzzXHwA9+iQZp4msd/eKrklmXHxSJ8BmG/h0YarpPHE5q2CPlSw7VHicVZPerFhNIn5xnf7BfnTo5TN9g==", "cpu": [ "x64", "arm64" @@ -986,14 +986,14 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.228", + "@clevercanyon/utilities": "^1.0.230", "@cloudflare/kv-asset-handler": "^0.2.0" } }, "node_modules/@clevercanyon/utilities.node": { - "version": "1.0.95", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.95.tgz", - "integrity": "sha512-EHBjfWpq3W0s4IwceENBqnSipgYvRsQzNnJQPonO4//+qyWHW8kQElNJ8/WRLL2nQyRg4NmlPdKz7SgoP8he+w==", + "version": "1.0.96", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.96.tgz", + "integrity": "sha512-l5I+qtvb6MdIE2NPo+XNbm1oUnDvCUxp9g002K782KDgj5eTf+yfUojcddqet4LpDXieE7JT9Fx2VwGhjEhk5Q==", "cpu": [ "x64", "arm64" @@ -1012,7 +1012,7 @@ }, "peerDependencies": { "@clevercanyon/split-cmd.fork": "^1.0.50", - "@clevercanyon/utilities": "^1.0.228", + "@clevercanyon/utilities": "^1.0.230", "archiver": "^5.3.2", "boxen": "^7.1.1", "chalk": "^5.3.0", @@ -1029,9 +1029,9 @@ } }, "node_modules/@clevercanyon/utilities.web": { - "version": "1.0.66", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.66.tgz", - "integrity": "sha512-0ZtkgvRan6kpaiVJZW9FLSxu/0TuAui75p4Vlwwp7x998NiUXlCTT8Top/CRJq6D9tdTHbD6VGlRaFcsNEX/kg==", + "version": "1.0.67", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.67.tgz", + "integrity": "sha512-PQ8mkaLm5kGO9YAHGnFMiHOEQKGNZ1moi3H84zHR+22mrYIKn+0xOnTUU+TN6+1zM1sW7wnkTP1BIGvScwm9ng==", "cpu": [ "x64", "arm64" @@ -1050,7 +1050,7 @@ "url": "https://github.com/sponsors/clevercanyon" }, "peerDependencies": { - "@clevercanyon/utilities": "^1.0.228" + "@clevercanyon/utilities": "^1.0.230" } }, "node_modules/@cloudflare/kv-asset-handler": { @@ -5666,9 +5666,9 @@ } }, "node_modules/@wdio/config/node_modules/hosted-git-info": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.0.tgz", - "integrity": "sha512-ICclEpTLhHj+zCuSb2/usoNXSVkxUSIopre+b1w8NDY9Dntp9LO4vLdHYI336TH8sAqwrRgnSfdkBG2/YpisHA==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.1.tgz", + "integrity": "sha512-+K84LB1DYwMHoHSgaOY/Jfhw3ucPmSET5v98Ke/HdNSw4a0UktWzyW1mjhjpuxxTqOOsfWT/7iVshHmVZ4IpOA==", "dev": true, "dependencies": { "lru-cache": "^10.0.1" @@ -6843,9 +6843,9 @@ }, "node_modules/braces": { "name": "@clevercanyon/braces.fork", - "version": "3.0.48", - "resolved": "https://registry.npmjs.org/@clevercanyon/braces.fork/-/braces.fork-3.0.48.tgz", - "integrity": "sha512-uK0Q7uwYWo/nu+2J9c4EwPLLMfWQnKYcjqDTiOflwPMO37qz0v/brSszvVDhfjk/4KVI1dWav+uMNJ7C4Dzd+w==", + "version": "3.0.50", + "resolved": "https://registry.npmjs.org/@clevercanyon/braces.fork/-/braces.fork-3.0.50.tgz", + "integrity": "sha512-f7Vg6fzlDw96xomcD4gRxXd5GFgnD4KVGmPLWS5z47z4i3+RFM3/bpZ8YHBsfa+x7A8lGb2HPYG95xgz9J3G1g==", "cpu": [ "x64", "arm64" @@ -6855,7 +6855,7 @@ "linux" ], "dependencies": { - "fill-range": "npm:@clevercanyon/fill-range.fork@^7.0.47" + "fill-range": "npm:@clevercanyon/fill-range.fork@^7.0.49" }, "engines": { "node": "^19.1.0 || ^20.5.1", @@ -8414,9 +8414,9 @@ } }, "node_modules/define-data-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.0.1.tgz", - "integrity": "sha512-22M+6zEspQHx10bfFQl2ET39IvfuQ7+rZIH7+ard8fCC4hPmkOSy+8JhKxBRLaWUziJ0O63NTYT97LR8zUfPTw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.0.tgz", + "integrity": "sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==", "dev": true, "dependencies": { "get-intrinsic": "^1.2.1", @@ -10440,9 +10440,9 @@ }, "node_modules/fill-range": { "name": "@clevercanyon/fill-range.fork", - "version": "7.0.47", - "resolved": "https://registry.npmjs.org/@clevercanyon/fill-range.fork/-/fill-range.fork-7.0.47.tgz", - "integrity": "sha512-1vlEtYiaLyUNov00KokNrr6ESoUf4tFWBLVFVhHdmQ9h5MX17VpWnQdBtdilad2nAg3/LV6P9MFVbMC/B7XqTQ==", + "version": "7.0.49", + "resolved": "https://registry.npmjs.org/@clevercanyon/fill-range.fork/-/fill-range.fork-7.0.49.tgz", + "integrity": "sha512-bgIznWDJ4piPPaNTmtmhdCK/8i1gAovfsdZufGfhysHngnyoefTeevpJW5mu8JOPSMYuj+DeMQgTPdy4sg5dbg==", "cpu": [ "x64", "arm64" @@ -10452,7 +10452,7 @@ "linux" ], "dependencies": { - "to-regex-range": "npm:@clevercanyon/to-regex-range.fork@^5.0.47" + "to-regex-range": "npm:@clevercanyon/to-regex-range.fork@^5.0.49" }, "engines": { "node": "^19.1.0 || ^20.5.1", @@ -12043,9 +12043,9 @@ }, "node_modules/is-number": { "name": "@clevercanyon/is-number.fork", - "version": "7.0.50", - "resolved": "https://registry.npmjs.org/@clevercanyon/is-number.fork/-/is-number.fork-7.0.50.tgz", - "integrity": "sha512-quPKiEFYc/hxS2KNxI8z74gZ4g7Co8tLvJ/ShZ/+7LRJLwyBAD4lYJ9Mwzv5kBRfXT9oKX01hkSU68ENI203dA==", + "version": "7.0.52", + "resolved": "https://registry.npmjs.org/@clevercanyon/is-number.fork/-/is-number.fork-7.0.52.tgz", + "integrity": "sha512-2Mc2ZPR7VrH38mcJzEq2zlSuYC/QgDFCpVhig6nVHkEUR9qqva9fT7o1vYLSzVVP+iAB0V25YP91/8EQOVKG7g==", "cpu": [ "x64", "arm64" @@ -15148,9 +15148,9 @@ }, "node_modules/micromatch": { "name": "@clevercanyon/micromatch.fork", - "version": "4.0.52", - "resolved": "https://registry.npmjs.org/@clevercanyon/micromatch.fork/-/micromatch.fork-4.0.52.tgz", - "integrity": "sha512-Ipya3iRFIXXUGqtFgDZqRVZmMZ3gte1/lSuqWr1TFvv9k5CaCBKU5LLCbM1HJpEwne/1Ojr96sCj6M6XS6CmSw==", + "version": "4.0.54", + "resolved": "https://registry.npmjs.org/@clevercanyon/micromatch.fork/-/micromatch.fork-4.0.54.tgz", + "integrity": "sha512-krRR4lMhhibNmLRP0Kn1QmyQata2aMLITmIcXU9PcSgFW3X4hmhyvMT80eRY6+Qpx+CIFdsQFNMWObN3W7Cskg==", "cpu": [ "x64", "arm64" @@ -15160,8 +15160,8 @@ "linux" ], "dependencies": { - "braces": "npm:@clevercanyon/braces.fork@^3.0.48", - "picomatch": "npm:@clevercanyon/picomatch.fork@^2.3.47" + "braces": "npm:@clevercanyon/braces.fork@^3.0.50", + "picomatch": "npm:@clevercanyon/picomatch.fork@^2.3.49" }, "engines": { "node": "^19.1.0 || ^20.5.1", @@ -15173,9 +15173,9 @@ }, "node_modules/micromatch/node_modules/picomatch": { "name": "@clevercanyon/picomatch.fork", - "version": "2.3.47", - "resolved": "https://registry.npmjs.org/@clevercanyon/picomatch.fork/-/picomatch.fork-2.3.47.tgz", - "integrity": "sha512-Tw+NuZNSFB7kkGh53XWNvaldABrlh9Ngp/rO2r8i0qnW9f1X91U409qwogq3TprZjaVNkhWcb0ajHYcvFkapxw==", + "version": "2.3.49", + "resolved": "https://registry.npmjs.org/@clevercanyon/picomatch.fork/-/picomatch.fork-2.3.49.tgz", + "integrity": "sha512-Oikh85ejSgAiE1eUyaNGmPWgzxrGUWcYa3EPe0F7pYAQw0QeCK9HbZGK72U8CAXBJsCXan/AmCZChBpDgME/eg==", "cpu": [ "x64", "arm64" @@ -19603,12 +19603,13 @@ "dev": true }, "node_modules/set-function-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.0.tgz", - "integrity": "sha512-WmS8UHojv5s1eSoRSmzO5zzgDq8PE1/X/ij0k+9fMYmINCc6+j+SF3Om8YyucKn2yjnK4ItNZOoQycNnHsZJTw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", "dev": true, "dependencies": { "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", "has-property-descriptors": "^1.0.0" }, "engines": { @@ -19672,9 +19673,9 @@ }, "node_modules/shescape": { "name": "@clevercanyon/shescape.fork", - "version": "1.6.44", - "resolved": "https://registry.npmjs.org/@clevercanyon/shescape.fork/-/shescape.fork-1.6.44.tgz", - "integrity": "sha512-F+8ae2u2jnV71hUSh0SK9BSKJvvSkU6km1jveAMfKAAulEL+HtEDLUPa6U7/IwxvdnuY59i2SeJm/6YBggS9rw==", + "version": "1.6.46", + "resolved": "https://registry.npmjs.org/@clevercanyon/shescape.fork/-/shescape.fork-1.6.46.tgz", + "integrity": "sha512-4jDNz8tAi6kWaR+1qnQAH1l/wPo59ODp83kqu4Ofyty8JV5IDlB6PvFft6Eo5Q5FjqqsHU79Usmh87cf5IfCnA==", "cpu": [ "x64", "arm64" @@ -19910,9 +19911,9 @@ }, "node_modules/spawn-please": { "name": "@clevercanyon/spawn-please.fork", - "version": "2.0.44", - "resolved": "https://registry.npmjs.org/@clevercanyon/spawn-please.fork/-/spawn-please.fork-2.0.44.tgz", - "integrity": "sha512-4BJ4HidE1HsK6TCC7eUhUxFbVrWJtbPsYvTkz2TVSkx2UlvD0WQZ3W15q61wYWEwk9x2JYCiU8wfh4wXfIqW/g==", + "version": "2.0.46", + "resolved": "https://registry.npmjs.org/@clevercanyon/spawn-please.fork/-/spawn-please.fork-2.0.46.tgz", + "integrity": "sha512-NkMbq5npXDRE0Zj4V38yI4I7Ena0uc0hO8l8hDfkjOvqN5YrYq0mK1C+vWZcbiO6as1wzPWxOowQxR14zioabw==", "cpu": [ "x64", "arm64" @@ -21163,9 +21164,9 @@ }, "node_modules/to-regex-range": { "name": "@clevercanyon/to-regex-range.fork", - "version": "5.0.47", - "resolved": "https://registry.npmjs.org/@clevercanyon/to-regex-range.fork/-/to-regex-range.fork-5.0.47.tgz", - "integrity": "sha512-Y0LbidQsk8VzaLORgBbD8YczbbMqqwQCt5GKCUs3oLmSiT0L8KbsK2PA/WSBylZfp1QUm4xL9NI8Tg5nFkJ3fg==", + "version": "5.0.49", + "resolved": "https://registry.npmjs.org/@clevercanyon/to-regex-range.fork/-/to-regex-range.fork-5.0.49.tgz", + "integrity": "sha512-M3IPLN71f2RBjVkqRp6TgCIW5OzA0VtYvAt/0Tdk8xhA+EcKH65b2eLEya48wos95tNxCyXJVeaWjaFw7V+xuw==", "cpu": [ "x64", "arm64" @@ -21175,7 +21176,7 @@ "linux" ], "dependencies": { - "is-number": "npm:@clevercanyon/is-number.fork@^7.0.50" + "is-number": "npm:@clevercanyon/is-number.fork@^7.0.52" }, "engines": { "node": "^19.1.0 || ^20.5.1", @@ -23900,15 +23901,15 @@ "dev": true }, "@clevercanyon/dev-deps": { - "version": "1.0.199", - "resolved": "https://registry.npmjs.org/@clevercanyon/dev-deps/-/dev-deps-1.0.199.tgz", - "integrity": "sha512-6qjRrVX6aWsDTSBgSobjY7iu34DqvT3+wXXFYCEQ5e6qdGcVJoFn6vg7k1CgyhGD+LddVqttsAn+yvLsaAe2bw==", + "version": "1.0.201", + "resolved": "https://registry.npmjs.org/@clevercanyon/dev-deps/-/dev-deps-1.0.201.tgz", + "integrity": "sha512-8oRq0db0t50AjPJzfPY/A2g/0modmqiRFM5FB0nJpbw5XZFh3SqWglW8N2gmPl+WnKGXmP8NP6m8pgKuUEcaDw==", "dev": true, "requires": { - "@clevercanyon/madrun": "^1.0.89", - "@clevercanyon/utilities": "^1.0.228", - "@clevercanyon/utilities.cfp": "^1.0.86", - "@clevercanyon/utilities.node": "^1.0.95", + "@clevercanyon/madrun": "^1.0.91", + "@clevercanyon/utilities": "^1.0.230", + "@clevercanyon/utilities.cfp": "^1.0.87", + "@clevercanyon/utilities.node": "^1.0.96", "@cloudflare/workers-types": "^4.20230904.0", "@eslint/js": "^8.48.0", "@octokit/core": "^4.2.4", @@ -23941,7 +23942,7 @@ "eslint-plugin-jsx-a11y": "^6.7.1", "eslint-plugin-prettier": "^5.0.0", "globals": "^13.21.0", - "jest": "^29.6.4", + "jest": "^29.7.0", "jsdom": "^21.1.2", "libsodium-wrappers": "^0.7.11", "madge": "^6.1.0", @@ -23979,62 +23980,62 @@ } }, "@clevercanyon/madrun": { - "version": "1.0.89", - "resolved": "https://registry.npmjs.org/@clevercanyon/madrun/-/madrun-1.0.89.tgz", - "integrity": "sha512-Z3omgt65LqhSazqN2NRlG8r4BGGIADZ8Iq1tfuZHEPg0x2rSV8spmPaaIKurXzs+zEtLZE2FoWMoznVGaNq89g==", + "version": "1.0.92", + "resolved": "https://registry.npmjs.org/@clevercanyon/madrun/-/madrun-1.0.92.tgz", + "integrity": "sha512-q9uq5VFL1C3JuElg2Eq6oAT/8He658h+BSkm8/Fy01ZBGgElDK+Xz8qnMR1riBqXVG3fueYGPZxlP/6YcG+wcw==", "dev": true, "requires": { - "@clevercanyon/utilities": "^1.0.227", - "@clevercanyon/utilities.node": "^1.0.91" + "@clevercanyon/utilities": "^1.0.230", + "@clevercanyon/utilities.node": "^1.0.96" } }, "@clevercanyon/preact-iso.fork": { - "version": "2.3.55", - "resolved": "https://registry.npmjs.org/@clevercanyon/preact-iso.fork/-/preact-iso.fork-2.3.55.tgz", - "integrity": "sha512-lfShznt1IEgxWrRYWE8sapwLY3LcwGrdK3n5GXB5gKvms5nM0qSillMp0MBe0hkxj5d11NxTfAEGG4oyCCUgoA==", + "version": "2.3.57", + "resolved": "https://registry.npmjs.org/@clevercanyon/preact-iso.fork/-/preact-iso.fork-2.3.57.tgz", + "integrity": "sha512-FwBML2sH2nJPKwDZHuuB+7ANXCWaV2lDoZcfM9FXwP1xI5rMd5L4S3mwFRLtr5oY8seJSN6JDdoUu+oo8Kxo4g==", "peer": true, "requires": {} }, "@clevercanyon/split-cmd.fork": { - "version": "1.0.50", - "resolved": "https://registry.npmjs.org/@clevercanyon/split-cmd.fork/-/split-cmd.fork-1.0.50.tgz", - "integrity": "sha512-fKgu3s7XWsZtFRVf+7hPyfeHY0NKIvi5h8dpmzP2wUeoDcCNWRny1YPxN6A26BF+orvN43j5ahtZQiIEvieFyQ==", + "version": "1.0.52", + "resolved": "https://registry.npmjs.org/@clevercanyon/split-cmd.fork/-/split-cmd.fork-1.0.52.tgz", + "integrity": "sha512-aED1w9+ke+meQZNYZG1+nuH2joc92BGnbS3dDSX0lscfSi7BqqBkOHMtzOSWOstdfTcLNJUyok+NMQOB6gWtaQ==", "dev": true, "peer": true }, "@clevercanyon/utilities": { - "version": "1.0.228", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.228.tgz", - "integrity": "sha512-wJcniYfqOG2T6UUchmphioIE5DwBxDQR7MD7z/3/u7LvvMky0mFtlxCrsjnYTe6eefiHZBwYbKdb8/wajHw6Qg==", + "version": "1.0.230", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.230.tgz", + "integrity": "sha512-3kQ/M4+WspYS0t62eZ3ui6oU86UuvFrA5kmacZNClPNdGZBtIuS0TaWB/ZgWGktKmfNFj+ZarTvO40b+A6gO4Q==", "dev": true, "requires": {} }, "@clevercanyon/utilities.cfp": { - "version": "1.0.86", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.86.tgz", - "integrity": "sha512-rDlK8348R/blYmcj80yW5NjA+KlpLJfbWMaiXlic4LPvw5C195o4rtiNAnh5XBoIbzqTkaHIT8/dryprxxIghA==", + "version": "1.0.87", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfp/-/utilities.cfp-1.0.87.tgz", + "integrity": "sha512-dtVeJqDWSUoK+kxKtNA2mAxlm3xq8wWLBpuDqAVSNOfyZQLxSY6+P3zc1YnwDbfnhdD5qxQM04pkTZERU9B8kg==", "dev": true, "requires": {} }, "@clevercanyon/utilities.cfw": { - "version": "1.0.94", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.94.tgz", - "integrity": "sha512-iYF/iIOGakPSTQFhQM9TatLMrf4kNRbf7qxmQ7xHHx8UN9jL08YSgBGXgfy1v4QO69RXUpGUhNmtO1F4nVe+GQ==", + "version": "1.0.95", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.cfw/-/utilities.cfw-1.0.95.tgz", + "integrity": "sha512-1JDjRkzzXHwA9+iQZp4msd/eKrklmXHxSJ8BmG/h0YarpPHE5q2CPlSw7VHicVZPerFhNIn5xnf7BfnTo5TN9g==", "dev": true, "peer": true, "requires": {} }, "@clevercanyon/utilities.node": { - "version": "1.0.95", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.95.tgz", - "integrity": "sha512-EHBjfWpq3W0s4IwceENBqnSipgYvRsQzNnJQPonO4//+qyWHW8kQElNJ8/WRLL2nQyRg4NmlPdKz7SgoP8he+w==", + "version": "1.0.96", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.node/-/utilities.node-1.0.96.tgz", + "integrity": "sha512-l5I+qtvb6MdIE2NPo+XNbm1oUnDvCUxp9g002K782KDgj5eTf+yfUojcddqet4LpDXieE7JT9Fx2VwGhjEhk5Q==", "dev": true, "requires": {} }, "@clevercanyon/utilities.web": { - "version": "1.0.66", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.66.tgz", - "integrity": "sha512-0ZtkgvRan6kpaiVJZW9FLSxu/0TuAui75p4Vlwwp7x998NiUXlCTT8Top/CRJq6D9tdTHbD6VGlRaFcsNEX/kg==", + "version": "1.0.67", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities.web/-/utilities.web-1.0.67.tgz", + "integrity": "sha512-PQ8mkaLm5kGO9YAHGnFMiHOEQKGNZ1moi3H84zHR+22mrYIKn+0xOnTUU+TN6+1zM1sW7wnkTP1BIGvScwm9ng==", "dev": true, "peer": true, "requires": {} @@ -27199,9 +27200,9 @@ } }, "hosted-git-info": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.0.tgz", - "integrity": "sha512-ICclEpTLhHj+zCuSb2/usoNXSVkxUSIopre+b1w8NDY9Dntp9LO4vLdHYI336TH8sAqwrRgnSfdkBG2/YpisHA==", + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-7.0.1.tgz", + "integrity": "sha512-+K84LB1DYwMHoHSgaOY/Jfhw3ucPmSET5v98Ke/HdNSw4a0UktWzyW1mjhjpuxxTqOOsfWT/7iVshHmVZ4IpOA==", "dev": true, "requires": { "lru-cache": "^10.0.1" @@ -28104,11 +28105,11 @@ } }, "braces": { - "version": "npm:@clevercanyon/braces.fork@3.0.48", - "resolved": "https://registry.npmjs.org/@clevercanyon/braces.fork/-/braces.fork-3.0.48.tgz", - "integrity": "sha512-uK0Q7uwYWo/nu+2J9c4EwPLLMfWQnKYcjqDTiOflwPMO37qz0v/brSszvVDhfjk/4KVI1dWav+uMNJ7C4Dzd+w==", + "version": "npm:@clevercanyon/braces.fork@3.0.50", + "resolved": "https://registry.npmjs.org/@clevercanyon/braces.fork/-/braces.fork-3.0.50.tgz", + "integrity": "sha512-f7Vg6fzlDw96xomcD4gRxXd5GFgnD4KVGmPLWS5z47z4i3+RFM3/bpZ8YHBsfa+x7A8lGb2HPYG95xgz9J3G1g==", "requires": { - "fill-range": "npm:@clevercanyon/fill-range.fork@^7.0.47" + "fill-range": "npm:@clevercanyon/fill-range.fork@^7.0.49" } }, "browserslist": { @@ -29167,9 +29168,9 @@ "dev": true }, "define-data-property": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.0.1.tgz", - "integrity": "sha512-22M+6zEspQHx10bfFQl2ET39IvfuQ7+rZIH7+ard8fCC4hPmkOSy+8JhKxBRLaWUziJ0O63NTYT97LR8zUfPTw==", + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/define-data-property/-/define-data-property-1.1.0.tgz", + "integrity": "sha512-UzGwzcjyv3OtAvolTj1GoyNYzfFR+iqbGjcnBEENZVCpM4/Ng1yhGNvS3lR/xDS74Tb2wGG9WzNSNIOS9UVb2g==", "dev": true, "requires": { "get-intrinsic": "^1.2.1", @@ -30592,11 +30593,11 @@ } }, "fill-range": { - "version": "npm:@clevercanyon/fill-range.fork@7.0.47", - "resolved": "https://registry.npmjs.org/@clevercanyon/fill-range.fork/-/fill-range.fork-7.0.47.tgz", - "integrity": "sha512-1vlEtYiaLyUNov00KokNrr6ESoUf4tFWBLVFVhHdmQ9h5MX17VpWnQdBtdilad2nAg3/LV6P9MFVbMC/B7XqTQ==", + "version": "npm:@clevercanyon/fill-range.fork@7.0.49", + "resolved": "https://registry.npmjs.org/@clevercanyon/fill-range.fork/-/fill-range.fork-7.0.49.tgz", + "integrity": "sha512-bgIznWDJ4piPPaNTmtmhdCK/8i1gAovfsdZufGfhysHngnyoefTeevpJW5mu8JOPSMYuj+DeMQgTPdy4sg5dbg==", "requires": { - "to-regex-range": "npm:@clevercanyon/to-regex-range.fork@^5.0.47" + "to-regex-range": "npm:@clevercanyon/to-regex-range.fork@^5.0.49" } }, "find-up": { @@ -31738,9 +31739,9 @@ "dev": true }, "is-number": { - "version": "npm:@clevercanyon/is-number.fork@7.0.50", - "resolved": "https://registry.npmjs.org/@clevercanyon/is-number.fork/-/is-number.fork-7.0.50.tgz", - "integrity": "sha512-quPKiEFYc/hxS2KNxI8z74gZ4g7Co8tLvJ/ShZ/+7LRJLwyBAD4lYJ9Mwzv5kBRfXT9oKX01hkSU68ENI203dA==" + "version": "npm:@clevercanyon/is-number.fork@7.0.52", + "resolved": "https://registry.npmjs.org/@clevercanyon/is-number.fork/-/is-number.fork-7.0.52.tgz", + "integrity": "sha512-2Mc2ZPR7VrH38mcJzEq2zlSuYC/QgDFCpVhig6nVHkEUR9qqva9fT7o1vYLSzVVP+iAB0V25YP91/8EQOVKG7g==" }, "is-number-object": { "version": "1.0.7", @@ -33985,18 +33986,18 @@ "dev": true }, "micromatch": { - "version": "npm:@clevercanyon/micromatch.fork@4.0.52", - "resolved": "https://registry.npmjs.org/@clevercanyon/micromatch.fork/-/micromatch.fork-4.0.52.tgz", - "integrity": "sha512-Ipya3iRFIXXUGqtFgDZqRVZmMZ3gte1/lSuqWr1TFvv9k5CaCBKU5LLCbM1HJpEwne/1Ojr96sCj6M6XS6CmSw==", + "version": "npm:@clevercanyon/micromatch.fork@4.0.54", + "resolved": "https://registry.npmjs.org/@clevercanyon/micromatch.fork/-/micromatch.fork-4.0.54.tgz", + "integrity": "sha512-krRR4lMhhibNmLRP0Kn1QmyQata2aMLITmIcXU9PcSgFW3X4hmhyvMT80eRY6+Qpx+CIFdsQFNMWObN3W7Cskg==", "requires": { - "braces": "npm:@clevercanyon/braces.fork@^3.0.48", - "picomatch": "npm:@clevercanyon/picomatch.fork@^2.3.47" + "braces": "npm:@clevercanyon/braces.fork@^3.0.50", + "picomatch": "npm:@clevercanyon/picomatch.fork@^2.3.49" }, "dependencies": { "picomatch": { - "version": "npm:@clevercanyon/picomatch.fork@2.3.47", - "resolved": "https://registry.npmjs.org/@clevercanyon/picomatch.fork/-/picomatch.fork-2.3.47.tgz", - "integrity": "sha512-Tw+NuZNSFB7kkGh53XWNvaldABrlh9Ngp/rO2r8i0qnW9f1X91U409qwogq3TprZjaVNkhWcb0ajHYcvFkapxw==" + "version": "npm:@clevercanyon/picomatch.fork@2.3.49", + "resolved": "https://registry.npmjs.org/@clevercanyon/picomatch.fork/-/picomatch.fork-2.3.49.tgz", + "integrity": "sha512-Oikh85ejSgAiE1eUyaNGmPWgzxrGUWcYa3EPe0F7pYAQw0QeCK9HbZGK72U8CAXBJsCXan/AmCZChBpDgME/eg==" } } }, @@ -37002,12 +37003,13 @@ "dev": true }, "set-function-name": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.0.tgz", - "integrity": "sha512-WmS8UHojv5s1eSoRSmzO5zzgDq8PE1/X/ij0k+9fMYmINCc6+j+SF3Om8YyucKn2yjnK4ItNZOoQycNnHsZJTw==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/set-function-name/-/set-function-name-2.0.1.tgz", + "integrity": "sha512-tMNCiqYVkXIZgc2Hnoy2IvC/f8ezc5koaRFkCjrpWzGpCd3qbZXPzVy9MAZzK1ch/X0jvSkojys3oqJN0qCmdA==", "dev": true, "requires": { "define-data-property": "^1.0.1", + "functions-have-names": "^1.2.3", "has-property-descriptors": "^1.0.0" } }, @@ -37051,9 +37053,9 @@ } }, "shescape": { - "version": "npm:@clevercanyon/shescape.fork@1.6.44", - "resolved": "https://registry.npmjs.org/@clevercanyon/shescape.fork/-/shescape.fork-1.6.44.tgz", - "integrity": "sha512-F+8ae2u2jnV71hUSh0SK9BSKJvvSkU6km1jveAMfKAAulEL+HtEDLUPa6U7/IwxvdnuY59i2SeJm/6YBggS9rw==", + "version": "npm:@clevercanyon/shescape.fork@1.6.46", + "resolved": "https://registry.npmjs.org/@clevercanyon/shescape.fork/-/shescape.fork-1.6.46.tgz", + "integrity": "sha512-4jDNz8tAi6kWaR+1qnQAH1l/wPo59ODp83kqu4Ofyty8JV5IDlB6PvFft6Eo5Q5FjqqsHU79Usmh87cf5IfCnA==", "dev": true, "peer": true, "requires": { @@ -37210,9 +37212,9 @@ "dev": true }, "spawn-please": { - "version": "npm:@clevercanyon/spawn-please.fork@2.0.44", - "resolved": "https://registry.npmjs.org/@clevercanyon/spawn-please.fork/-/spawn-please.fork-2.0.44.tgz", - "integrity": "sha512-4BJ4HidE1HsK6TCC7eUhUxFbVrWJtbPsYvTkz2TVSkx2UlvD0WQZ3W15q61wYWEwk9x2JYCiU8wfh4wXfIqW/g==", + "version": "npm:@clevercanyon/spawn-please.fork@2.0.46", + "resolved": "https://registry.npmjs.org/@clevercanyon/spawn-please.fork/-/spawn-please.fork-2.0.46.tgz", + "integrity": "sha512-NkMbq5npXDRE0Zj4V38yI4I7Ena0uc0hO8l8hDfkjOvqN5YrYq0mK1C+vWZcbiO6as1wzPWxOowQxR14zioabw==", "dev": true, "peer": true, "requires": { @@ -38157,11 +38159,11 @@ "dev": true }, "to-regex-range": { - "version": "npm:@clevercanyon/to-regex-range.fork@5.0.47", - "resolved": "https://registry.npmjs.org/@clevercanyon/to-regex-range.fork/-/to-regex-range.fork-5.0.47.tgz", - "integrity": "sha512-Y0LbidQsk8VzaLORgBbD8YczbbMqqwQCt5GKCUs3oLmSiT0L8KbsK2PA/WSBylZfp1QUm4xL9NI8Tg5nFkJ3fg==", + "version": "npm:@clevercanyon/to-regex-range.fork@5.0.49", + "resolved": "https://registry.npmjs.org/@clevercanyon/to-regex-range.fork/-/to-regex-range.fork-5.0.49.tgz", + "integrity": "sha512-M3IPLN71f2RBjVkqRp6TgCIW5OzA0VtYvAt/0Tdk8xhA+EcKH65b2eLEya48wos95tNxCyXJVeaWjaFw7V+xuw==", "requires": { - "is-number": "npm:@clevercanyon/is-number.fork@^7.0.50" + "is-number": "npm:@clevercanyon/is-number.fork@^7.0.52" } }, "totalist": { diff --git a/package.json b/package.json index 71a08fb2..2fc683d2 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.0.230", + "version": "1.0.231", "license": "GPL-3.0-or-later", "name": "@clevercanyon/utilities", "description": "Utilities for JavaScript apps running in any environment.", @@ -136,15 +136,10 @@ "require": "./dist/version.cjs", "types": "./dist/types/version.d.ts" }, - "./preact/apis/iso": { - "import": "./dist/preact/apis/iso.js", - "require": "./dist/preact/apis/iso.cjs", - "types": "./dist/types/preact/apis/iso.d.ts" - }, - "./preact/apis/ssr": { - "import": "./dist/preact/apis/ssr.js", - "require": "./dist/preact/apis/ssr.cjs", - "types": "./dist/types/preact/apis/ssr.d.ts" + "./preact/routes/404": { + "import": "./dist/preact/routes/404.js", + "require": "./dist/preact/routes/404.cjs", + "types": "./dist/types/preact/routes/404.d.ts" }, "./preact/components/body": { "import": "./dist/preact/components/body.js", @@ -171,10 +166,15 @@ "require": "./dist/preact/components/router.cjs", "types": "./dist/types/preact/components/router.d.ts" }, - "./preact/routes/404": { - "import": "./dist/preact/routes/404.js", - "require": "./dist/preact/routes/404.cjs", - "types": "./dist/types/preact/routes/404.d.ts" + "./preact/apis/iso": { + "import": "./dist/preact/apis/iso.js", + "require": "./dist/preact/apis/iso.cjs", + "types": "./dist/types/preact/apis/iso.d.ts" + }, + "./preact/apis/ssr": { + "import": "./dist/preact/apis/ssr.js", + "require": "./dist/preact/apis/ssr.cjs", + "types": "./dist/types/preact/apis/ssr.d.ts" } }, "sideEffects": [ @@ -201,14 +201,14 @@ "./src/type.ts", "./src/url.ts", "./src/version.ts", - "./src/preact/apis/iso.tsx", - "./src/preact/apis/ssr.tsx", + "./src/preact/routes/404.tsx", "./src/preact/components/body.tsx", "./src/preact/components/data.tsx", "./src/preact/components/head.tsx", "./src/preact/components/html.tsx", "./src/preact/components/router.tsx", - "./src/preact/routes/404.tsx" + "./src/preact/apis/iso.tsx", + "./src/preact/apis/ssr.tsx" ], "module": "./dist/index.js", "main": "./dist/index.cjs", @@ -222,11 +222,11 @@ }, "dependencies": {}, "peerDependencies": { - "@clevercanyon/preact-iso.fork": "^2.3.55", + "@clevercanyon/preact-iso.fork": "^2.3.57", "fast-equals": "^4.0.3", "ignore": "^5.2.4", "luxon": "^3.4.3", - "micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.52", + "micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.54", "moize": "^6.1.6", "preact": "^10.17.1", "preact-render-to-string": "^6.2.1", @@ -238,7 +238,7 @@ "optionalDependencies": {}, "bundleDependencies": [], "devDependencies": { - "@clevercanyon/dev-deps": "^1.0.199" + "@clevercanyon/dev-deps": "^1.0.201" }, "overrides": {}, "cpu": ["x64", "arm64"], diff --git a/src/preact/apis/iso.tsx b/src/preact/apis/iso.tsx index f229fff5..f40fc440 100644 --- a/src/preact/apis/iso.tsx +++ b/src/preact/apis/iso.tsx @@ -16,7 +16,6 @@ import type { HTTPState as $preactꓺcomponentsꓺdataꓺHTTPState } from '../co import { useHTTP as $preactꓺcomponentsꓺdataꓺuseHTTP } from '../components/data.tsx'; import type { RouteContextAsProps as $preactꓺcomponentsꓺrouterꓺRouteContextAsProps, Props as $preactꓺcomponentsꓺrouterꓺRouterProps } from '../components/router.tsx'; import { default as $preactꓺcomponentsꓺRouter, Route as $preactꓺcomponentsꓺrouterꓺRoute, lazyRoute as $preactꓺcomponentsꓺrouterꓺlazyRoute } from '../components/router.tsx'; -import { StandAlone as $preactꓺroutesꓺ404ꓺStandAlone } from '../routes/404.tsx'; import { renderToString as $preactꓺapisꓺssrꓺrenderToString } from './ssr.tsx'; /** @@ -103,8 +102,9 @@ export const prerenderSPA = async (opts: PrerenderSPAOptions): Promise) : prerendered.html; + const html = !prerendered.html ? $preactꓺapisꓺssrꓺrenderToString(<$preactꓺroutesꓺ404.StandAlone classes={'default-prerender'} />) : prerendered.html; const linkURLs = [...prerendered.links]; // Converts link URLs into array. return { httpState, docType: '', html, linkURLs }; diff --git a/tsconfig.d.ts b/tsconfig.d.ts index b4496089..1518ddea 100644 --- a/tsconfig.d.ts +++ b/tsconfig.d.ts @@ -10,8 +10,6 @@ /** * Declares Vite global app constants. - * - * @note Also in `./dev/.files/eslint/config.mjs`. */ declare const $$__APP_PKG_NAME__$$: string; declare const $$__APP_PKG_VERSION__$$: string;