@wwchen/stack 0.9.0 → 0.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/blocks/CLAUDE.md +1 -0
- package/dist/cli/neon.d.ts +1 -1
- package/dist/cli/neon.js +1 -1
- package/package.json +3 -3
package/blocks/CLAUDE.md
CHANGED
|
@@ -45,6 +45,7 @@ Next.js (App Router) · TypeScript · Tailwind CSS v4 (layout only) · LDS, prod
|
|
|
45
45
|
6. No new dependency without a reason in the commit message. Check the standard library first.
|
|
46
46
|
7. Never write a CDN- or vendor-specific client-IP header name in app code; the client IP comes from the stack's one helper.
|
|
47
47
|
8. Never write a `"use server"` module in shared code; the app's own `actions.ts` marks wrappers.
|
|
48
|
+
9. Code, comments, docs and tests describe what is, never what was: no "no longer", "used to", "left over from", "moved from", retired names or the story of a change. History lives in git, commit messages and PRs. A rule's reason is stated as a reason, not as an anecdote. Everything under `docs/superpowers/` is archival: written once, never kept up to date.
|
|
48
49
|
|
|
49
50
|
## Design system
|
|
50
51
|
|
package/dist/cli/neon.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare function findBranch(cli: Cli, name: string): Promise<Branch | und
|
|
|
20
20
|
/** Production: the project's default branch (Neon's `default` flag), not a branch name. */
|
|
21
21
|
export declare function defaultBranch(branches: Branch[]): Branch;
|
|
22
22
|
/**
|
|
23
|
-
*
|
|
23
|
+
* The variables local work needs: `branch`'s URLs, and the host of production (the default branch; `production` when the caller already has it, else listed).
|
|
24
24
|
*/
|
|
25
25
|
export declare function branchEnv(cli: Cli, branch: string, production?: Branch): Promise<Record<string, string>>;
|
|
26
26
|
/** The migrations, run against whatever database `env` names, through the direct endpoint. */
|
package/dist/cli/neon.js
CHANGED
|
@@ -58,7 +58,7 @@ export function defaultBranch(branches) {
|
|
|
58
58
|
return production;
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* The variables local work needs: `branch`'s URLs, and the host of production (the default branch; `production` when the caller already has it, else listed).
|
|
62
62
|
*/
|
|
63
63
|
export async function branchEnv(cli, branch, production) {
|
|
64
64
|
const productionId = (production ?? defaultBranch(await listBranches(cli))).id;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwchen/stack",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"description": "Shared Next.js, Neon, Better Auth, Resend and lew-ds building blocks.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -84,8 +84,8 @@
|
|
|
84
84
|
},
|
|
85
85
|
"dependencies": {
|
|
86
86
|
"@vercel/functions": "3.12.0",
|
|
87
|
-
"@wwchen/stack-auth": "0.9.
|
|
88
|
-
"@wwchen/stack-notify": "0.9.
|
|
87
|
+
"@wwchen/stack-auth": "0.9.1",
|
|
88
|
+
"@wwchen/stack-notify": "0.9.1",
|
|
89
89
|
"pg": "8.23.1",
|
|
90
90
|
"zod": "4.6.7"
|
|
91
91
|
},
|