@ingram-tech/nk-dev 0.12.0 → 0.12.2
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/guide.md +4 -1
- package/lib/run.js +5 -0
- package/package.json +1 -1
package/guide.md
CHANGED
|
@@ -80,7 +80,10 @@ the UI/page tree, and never expose internal plumbing under `/api/`.
|
|
|
80
80
|
installed in PGlite automatically and in prod by one custom migration). So no
|
|
81
81
|
`ids.x.decode(param)` before a query and no `ids.x.encode(row.id)` after one
|
|
82
82
|
— `nextkit/no-id-codec-in-app-code` flags both; validate input with
|
|
83
|
-
`ids.x.is(param)` instead.
|
|
83
|
+
`ids.x.is(param)` instead. Session ids come in the same form from
|
|
84
|
+
`createAuthHelpers(auth, { ids })` (and `backendJwtOptions({ ids })`), and
|
|
85
|
+
`withRls*` decode a public `sub` before it reaches `auth.uid()`. At the
|
|
86
|
+
shell, `bunx id758 decode inv_…`.
|
|
84
87
|
- **Migrations don't auto-apply on deploy.** Code ships ahead of the prod schema
|
|
85
88
|
unless someone runs the migration against the target DB — a page that reads a
|
|
86
89
|
newly-added column 500s in prod until then. Apply migrations with
|
package/lib/run.js
CHANGED
|
@@ -33,6 +33,11 @@ export function run(tool, args = [], opts = {}) {
|
|
|
33
33
|
export function runCapture(tool, args = [], opts = {}) {
|
|
34
34
|
const res = spawnSync("bun", ["x", tool, ...args], {
|
|
35
35
|
encoding: "utf8",
|
|
36
|
+
// Node's default is 1 MiB, after which the child is killed with ENOBUFS
|
|
37
|
+
// and the caller sees a crash instead of the tool's output. A tsc run
|
|
38
|
+
// with a few thousand errors is well past that — exactly the run whose
|
|
39
|
+
// output matters most. 256 MiB is far beyond any real checker output.
|
|
40
|
+
maxBuffer: 256 * 1024 * 1024,
|
|
36
41
|
...opts,
|
|
37
42
|
});
|
|
38
43
|
if (res.error) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ingram-tech/nk-dev",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.2",
|
|
4
4
|
"description": "The nextkit dev toolchain in one package: the `nk` CLI plus shared oxlint/oxfmt, TypeScript, and Vitest config, the format-on-commit hook, and the AI agent guide. `nk init` scaffolds a site to use it.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|