Skip to content

Commit

Permalink
Project update. [p][robotic]
Browse files Browse the repository at this point in the history
  • Loading branch information
jaswrks committed Apr 8, 2024
1 parent 8944ed0 commit a5dbe7f
Show file tree
Hide file tree
Showing 14 changed files with 67 additions and 70 deletions.
2 changes: 1 addition & 1 deletion .browserslistrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 8, 2024 12:42 PM UTC.
# Last generated Apr 8, 2024 2:19 PM UTC.

[production]
node >= 20.9.0
Expand Down
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 8, 2024 12:42 PM UTC.
# Last generated Apr 8, 2024 2:19 PM UTC.

# Locals

Expand Down
8 changes: 4 additions & 4 deletions .env.vault
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ DOTENV_VAULT_MAIN="7GW98NfL4hM4N6HbfeDXCKreVxKvcVPupFRnZ8XJ+pomaQ=="
DOTENV_VAULT_MAIN_VERSION=1

# dev
DOTENV_VAULT_DEV="sWY4hDxZZotrpFBuYWd2le3Wl9K7u99hGj42uo1GpQkRY61euuSvtZMOkJ6N1t84ftzag1DOlUdvnALYbQWVbShUmUmWXXoi+RqGgmU7/mMTW5pv1vQYNiaU+5aU7WGIWi0/vNC1OuyLsVifoZXHdWoiqPQJTLhxI283CoYYj/6y07eZUMsZGJsgjQSazzBfHMuFjsbUR+7ZpbHwzhwOWXYuGQa6imRywR2KLafzhn8VTxCKcH3MLRZSESJ4+jT8RQ=="
DOTENV_VAULT_DEV_VERSION=519
DOTENV_VAULT_DEV="T6lcbJN7DBvLCpphBlGltyXfxY2uVStOCy+y/TPmASrMpgXFOpmTURdwezSL94qwT58deJUm7zQdltU7UEt4BUdB1qcaCNPpcVT1109buG9mwR2mC3c/8JV9ZTNG9+LDCtvLlvzhSBer42ymWa1u0vG8wmosdgLFJFHUJx0uVpshpuRSCjHIQu54xRAMYUddrSus43soamaY2qAIc1IqV46uz4XsWvMFs0AfBtQQcoVY9HM54O0upstnoqHybT/83Q=="
DOTENV_VAULT_DEV_VERSION=521

# ci
DOTENV_VAULT_CI="I1+jAQYobcSf0RV9PKqVGT3zCGkE8mhYe/RpC+U+H9DWK7hEtujosvUsP9jZGvCnXpTQ18Zi2y3nJLKDjmcdYDetbwCRsFrQlOp043vB8baq/idTfwJgdN2fcPCn2YESIo81gef9ISH1KUe4GMP5tUZsSqzMp9qX95U9IU9mIg=="
DOTENV_VAULT_CI_VERSION=519
DOTENV_VAULT_CI="rHFWDINIJlhQv+cXz6WzFgECpPOTsxplfNv11xcftwn0JQ+p/T3ee52v5eaF0EFXK3XcLadeYFpne93dz811qEy+s3mt2qAKtI1iLh8KNebHbhNdyMpun/d3MTJzO8Wf1dmxQtFtp7mUt3jh4FjoeYlXx5sIKfmO2h5oEwl/xA=="
DOTENV_VAULT_CI_VERSION=521

# stage
DOTENV_VAULT_STAGE="aRP8su2YV4jZu3w1HZ/SLaots0IwJDFw75TCpvXEFeNp7tw="
Expand Down
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 8, 2024 12:42 PM UTC.
# Last generated Apr 8, 2024 2:19 PM UTC.

# Default

Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 8, 2024 12:42 PM UTC.
# Last generated Apr 8, 2024 2:19 PM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 8, 2024 12:42 PM UTC.
# Last generated Apr 8, 2024 2:19 PM UTC.

# Locals

Expand Down
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 8, 2024 12:42 PM UTC.
# Last generated Apr 8, 2024 2:19 PM UTC.

# Packages

Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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` Apr 8, 2024 12:42 PM UTC.
* Last generated using `./settings.mjs` Apr 8, 2024 2:19 PM UTC.
*/
{
"editor.formatOnType": false,
Expand Down
2 changes: 1 addition & 1 deletion .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Generated data.
# <generated:start>

# Last generated Apr 8, 2024 12:42 PM UTC.
# Last generated Apr 8, 2024 2:19 PM UTC.

# Locals

Expand Down
90 changes: 45 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"publishConfig": {
"access": "public"
},
"version": "1.0.946",
"version": "1.0.947",
"license": "GPL-3.0-or-later",
"name": "@clevercanyon/utilities",
"description": "Utilities for JavaScript apps running in any environment.",
Expand Down Expand Up @@ -326,7 +326,7 @@
"ignore": "5.3.0",
"ip-regex": "5.0.0",
"micro-memoize": "4.1.2",
"micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.142",
"micromatch": "npm:@clevercanyon/micromatch.fork@^4.0.143",
"parse-css-color": "0.2.1",
"preact": "10.20.1",
"preact-render-to-string": "6.4.1",
Expand All @@ -337,7 +337,7 @@
"optionalDependencies": {},
"bundleDependencies": [],
"devDependencies": {
"@clevercanyon/dev-deps": "^1.0.377"
"@clevercanyon/dev-deps": "^1.0.378"
},
"overrides": {},
"cpu": ["x64", "arm64"],
Expand Down
13 changes: 5 additions & 8 deletions src/resources/preact/apis/iso.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -202,20 +202,17 @@ export const lazyLoader = <Loader extends LazyComponentLoader>(loader: Loader, r
/**
* Produces a routed component that lazy loads an async function component.
*
* Note: For now, any hooks/contexts needed by an async function component must be passed down as props.
* Note: Any hooks/contexts needed by an async function component must be passed down as props.
*
* Why? The problem is that because this is async, components throw a promise, childDidSuspend(), and Preact moves on.
* Within the promise function `currentComponent` has changed in the eyes of Preact, which means hooks/contexts won’t
* work inside async functions. We are not sure how to fix this. {@see lazyRoute()} doesn’t have this problem because
* promises are connected to imports. Here, what we have is essentially a promise forking itself outside of the Preact
* workflow. For now, any hooks/contexts needed by an async function component must be passed down as props.
* Why? Async components throw a promise, triggering `childDidSuspend()`, and Preact moves on. Within the promise
* function `currentComponent` has changed in the eyes of Preact, which means hooks/contexts won’t work inside async
* functions. Here, what we have is essentially a promise forking itself outside of the Preact workflow. Therefore, any
* hooks/contexts needed by an async function component must be passed down as props.
*
* @param fn Async function component; {@see $preact.AsyncFnComponent}.
* @param routerProps Optional router props; {@see LazyRouterProps}.
*
* @returns A routed component that lazy loads an async function component.
*
* @review: Consider ways to improve this. See notes above regarding `currentComponent`.
*/
export const lazyComponent = <Props extends $preact.AnyProps>(fn: $preact.AsyncFnComponent<Props>, routerProps?: LazyRouterProps): ((props?: Props) => LazyRouterVNode | null) => {
type Context = {
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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` Apr 8, 2024 12:42 PM UTC.
* Last generated using `./tsconfig.mjs` Apr 8, 2024 2:19 PM UTC.
*/
{
"include": ["./src/**/*", "./dev-types.d.ts"],
Expand Down
2 changes: 1 addition & 1 deletion wrangler.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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` Apr 8, 2024 12:42 PM UTC.
# Last generated using `./wrangler.mjs` Apr 8, 2024 2:19 PM UTC.
##

send_metrics = false
Expand Down

0 comments on commit a5dbe7f

Please sign in to comment.