From db46782c224f067a06625d35e62b0a15c504dc25 Mon Sep 17 00:00:00 2001 From: Jason Caldwell Date: Mon, 11 Mar 2024 22:27:41 -0400 Subject: [PATCH] Project update. [p][robotic] --- .browserslistrc | 2 +- .dockerignore | 2 +- .env.vault | 8 ++++---- .gitattributes | 2 +- .gitignore | 2 +- .npmignore | 2 +- .prettierignore | 2 +- .vscode/settings.json | 2 +- .vscodeignore | 2 +- package-lock.json | 10 +++++----- package.json | 2 +- src/http.ts | 2 +- src/resources/classes/fetcher.ts | 6 +++--- src/resources/classes/logger.ts | 4 ++-- src/resources/preact/apis/iso.tsx | 2 +- src/type.ts | 4 ++-- tsconfig.json | 2 +- wrangler.toml | 2 +- 18 files changed, 29 insertions(+), 29 deletions(-) diff --git a/.browserslistrc b/.browserslistrc index eb4c0e31..71e55794 100644 --- a/.browserslistrc +++ b/.browserslistrc @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Mar 12, 2024 1:17 AM UTC. +# Last generated Mar 12, 2024 2:27 AM UTC. [production] node >= 20.9.0 diff --git a/.dockerignore b/.dockerignore index 9ae6bbbc..7bac0e2b 100644 --- a/.dockerignore +++ b/.dockerignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Mar 12, 2024 1:17 AM UTC. +# Last generated Mar 12, 2024 2:27 AM UTC. # Locals diff --git a/.env.vault b/.env.vault index 7dfffe8a..7788ad6c 100644 --- a/.env.vault +++ b/.env.vault @@ -8,12 +8,12 @@ DOTENV_VAULT_MAIN="7GW98NfL4hM4N6HbfeDXCKreVxKvcVPupFRnZ8XJ+pomaQ==" DOTENV_VAULT_MAIN_VERSION=1 # dev -DOTENV_VAULT_DEV="T8rSN5qbcY0ZgaB5btq9+4qMItVIJvw9gBdNX27D2xlbhnUJFGYNMBGbF6J6ZD56KDaltsPWiUYZ0VJvSmLi49fTlgc0esvBaCKYzDk1huzdPguvJ388Sz5rYqX3uJ9gl+69BAlPZTrISC3eTQUKE2LSOQJYjnuVXscy40gcLd83BKOo7Rx2AQqUcFnmdGLcx6NrXN5LU2FkNNWI4cape0BLP/TY1ZTCFcO22o8fmlac86GJjLZyZJvvhclGMQuKSg==" -DOTENV_VAULT_DEV_VERSION=421 +DOTENV_VAULT_DEV="DoiK93mmKKFsGxzykINeXU0D9HaSFIaVregVRTY8cMePOZPNer3k9eUDNAV74AKxiW/R3cXsIaVMnTFdAdbBP5jrv0BgPVR98frDCa0/sZyJMTjb4MVdKTuQq8aK7m+sV7BBwyLXzy5QNx8Ov5A4pEaaTJWYGARaPBK+Gv2ZMgqVT7TBT17uf6jGuz1a+LwcNyvSH69+63JlsxngxsBfBZT87Ylj/Vfvc8QF7NprJKCGiMWISjIHy2lL0sNU3SqTiQ==" +DOTENV_VAULT_DEV_VERSION=423 # ci -DOTENV_VAULT_CI="zp8n09ei2l8rslZdpqJQUehbmMiw74bKjDRkh5ETfa3r/04cVg9CLy+wnfDJwPUfEGrlCULanh1aTMdmxKo0MyqxvWKyQTDComsxW76N322biwu3CJl/tTUpzxQPtzBw3NQ0C0bgHBOa//oxcklGQXC+qN+5n9zaGYMtYT8sIA==" -DOTENV_VAULT_CI_VERSION=421 +DOTENV_VAULT_CI="1nFr9+WS7Hy+5wKxR1qoqLFIHqPAZAWpnT9CX2KXMVAUloEfnjivxjvTfCIZFDg3BQaDh8JF7jJL8Mzxcd4cJPOZkwQN+lhl2HiPDPo/FXH69O3iFeD7DXqA6KfLxuQpn9g3dthab46yJs3GZlVgmuYa4rw4kXad8b9Tn7fESA==" +DOTENV_VAULT_CI_VERSION=423 # stage DOTENV_VAULT_STAGE="aRP8su2YV4jZu3w1HZ/SLaots0IwJDFw75TCpvXEFeNp7tw=" diff --git a/.gitattributes b/.gitattributes index 9447ae0f..e0ba61cb 100644 --- a/.gitattributes +++ b/.gitattributes @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Mar 12, 2024 1:17 AM UTC. +# Last generated Mar 12, 2024 2:27 AM UTC. # Default diff --git a/.gitignore b/.gitignore index 2e0d299b..89abd8d7 100644 --- a/.gitignore +++ b/.gitignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Mar 12, 2024 1:17 AM UTC. +# Last generated Mar 12, 2024 2:27 AM UTC. # Locals diff --git a/.npmignore b/.npmignore index a710ca7d..97a068a0 100644 --- a/.npmignore +++ b/.npmignore @@ -25,7 +25,7 @@ # Generated data. # -# Last generated Mar 12, 2024 1:17 AM UTC. +# Last generated Mar 12, 2024 2:27 AM UTC. # Locals diff --git a/.prettierignore b/.prettierignore index b183b3c0..d4483b26 100644 --- a/.prettierignore +++ b/.prettierignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Mar 12, 2024 1:17 AM UTC. +# Last generated Mar 12, 2024 2:27 AM UTC. # Packages diff --git a/.vscode/settings.json b/.vscode/settings.json index 44348d7a..542a3f4b 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,7 +7,7 @@ * @note This entire file will be updated automatically. * @note Instead of editing here, please review `./settings.mjs`. * - * Last generated using `./settings.mjs` Mar 12, 2024 1:17 AM UTC. + * Last generated using `./settings.mjs` Mar 12, 2024 2:27 AM UTC. */ { "editor.formatOnType": false, diff --git a/.vscodeignore b/.vscodeignore index e53f4ce4..8124220b 100644 --- a/.vscodeignore +++ b/.vscodeignore @@ -17,7 +17,7 @@ # Generated data. # -# Last generated Mar 12, 2024 1:17 AM UTC. +# Last generated Mar 12, 2024 2:27 AM UTC. # Locals diff --git a/package-lock.json b/package-lock.json index 6c6a20cb..d6680fbd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@clevercanyon/utilities", - "version": "1.0.896", + "version": "1.0.897", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@clevercanyon/utilities", - "version": "1.0.896", + "version": "1.0.897", "cpu": [ "x64", "arm64" @@ -1026,9 +1026,9 @@ } }, "node_modules/@clevercanyon/utilities": { - "version": "1.0.896", - "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.896.tgz", - "integrity": "sha512-kcZD0mFy2c6a3jokVXPOg95JEyPBzLz/UloSs04Zy+HFxlIML1cTRHpdaueoViM+rhAYvC7dIMfhTPYtesIymg==", + "version": "1.0.897", + "resolved": "https://registry.npmjs.org/@clevercanyon/utilities/-/utilities-1.0.897.tgz", + "integrity": "sha512-K+OZZPfu6rGhEZZTEK9Un/nnKPQWhp8+RQnRVHjjNKzATLR+iUJhYzmxIfwOPaxq3K4EIr6oZPQQTuYz/5aENg==", "cpu": [ "x64", "arm64" diff --git a/package.json b/package.json index 87ac5337..c948a961 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "publishConfig": { "access": "public" }, - "version": "1.0.897", + "version": "1.0.898", "license": "GPL-3.0-or-later", "name": "@clevercanyon/utilities", "description": "Utilities for JavaScript apps running in any environment.", diff --git a/src/http.ts b/src/http.ts index 00cd8209..f89b9a13 100644 --- a/src/http.ts +++ b/src/http.ts @@ -37,7 +37,7 @@ export type ResponseConfig = { encodeBody?: 'gzip' | null; }; export type HeartbeatOptions = { - cfw?: $type.cfwꓺstd.RequestContextData; + cfw?: $type.$cfw.RequestContextData; }; export type SecurityHeaderOptions = { cspNonce?: string; diff --git a/src/resources/classes/fetcher.ts b/src/resources/classes/fetcher.ts index 77acc121..453b9f49 100644 --- a/src/resources/classes/fetcher.ts +++ b/src/resources/classes/fetcher.ts @@ -14,7 +14,7 @@ let Fetcher: Constructor; */ export type C9rProps = { globalObp?: $type.ObjectPath; - cfw?: $type.cfwꓺstd.RequestContextData; + cfw?: $type.$cfw.RequestContextData; }; export type Constructor = { new (props?: C9rProps | Class): Class; @@ -23,7 +23,7 @@ export type Class = $type.Utility & ClassInterface; declare class ClassInterface { public readonly globalObp: $type.ObjectPath; - public readonly cfw: $type.cfwꓺstd.RequestContextData | undefined; + public readonly cfw: $type.$cfw.RequestContextData | undefined; public readonly global: Global; public readonly fetch: $type.fetch; @@ -86,7 +86,7 @@ export const getClass = (): Constructor => { /** * Cloudflare worker request context data. */ - public readonly cfw: $type.cfwꓺstd.RequestContextData | undefined; + public readonly cfw: $type.$cfw.RequestContextData | undefined; /** * Global via `globalObp`. diff --git a/src/resources/classes/logger.ts b/src/resources/classes/logger.ts index bfa19056..82e6e159 100644 --- a/src/resources/classes/logger.ts +++ b/src/resources/classes/logger.ts @@ -61,8 +61,8 @@ type ConfigMinutia = { maxRetryFailuresExpiresAfter: number; // In milliseconds. }; type CFWData = { - ctx: $type.cfwꓺstd.ExecutionContext; - subrequestCounter: $type.cfwꓺstd.SubrequestCounter; + ctx: $type.$cfw.ExecutionContext; + subrequestCounter: $type.$cfw.SubrequestCounter; }; type WithContextOptions = { request?: $type.Request; diff --git a/src/resources/preact/apis/iso.tsx b/src/resources/preact/apis/iso.tsx index fd9a3b66..eb32bbc5 100644 --- a/src/resources/preact/apis/iso.tsx +++ b/src/resources/preact/apis/iso.tsx @@ -16,7 +16,7 @@ export type PrerenderSPAOptions = { request: $type.Request; appManifest: AppManifest; App: $preact.AnyComponent; - cfw?: $type.cfwꓺstd.RequestContextData; + cfw?: $type.$cfw.RequestContextData; props?: RootProps; }; export type PrerenderSPAPromise = Promise<{ diff --git a/src/type.ts b/src/type.ts index f7636a3a..a68774f2 100644 --- a/src/type.ts +++ b/src/type.ts @@ -89,9 +89,9 @@ export type DOMEventHandler = ((event: Event) => void) | ((event: CustomEvent) = export type { cfw }; // `cfw` namespace. /** - * Defines standardized Cloudflare types common across workers & functions. + * Defines types common across Cloudflare workers & functions. */ -export namespace cfwꓺstd { +export namespace $cfw { export type ScheduledEvent = Readonly; export type ExecutionContext = Readonly< Pick< diff --git a/tsconfig.json b/tsconfig.json index 05af06ef..84b037a0 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -7,7 +7,7 @@ * @note This entire file will be updated automatically. * @note Instead of editing here, please review `./tsconfig.mjs`. * - * Last generated using `./tsconfig.mjs` Mar 12, 2024 1:17 AM UTC. + * Last generated using `./tsconfig.mjs` Mar 12, 2024 2:27 AM UTC. */ { "include": ["./src/**/*", "./dev-types.d.ts"], diff --git a/wrangler.toml b/wrangler.toml index e47af776..317e68ed 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -7,7 +7,7 @@ # @note This entire file will be updated automatically. # @note Instead of editing here, please review `./wrangler.mjs`. # -# Last generated using `./wrangler.mjs` Mar 12, 2024 1:17 AM UTC. +# Last generated using `./wrangler.mjs` Mar 12, 2024 2:27 AM UTC. ## send_metrics = false