@guren/plugin-vercel 0.6.0 → 0.6.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/README.md CHANGED
@@ -16,7 +16,7 @@ bun run vercel:build
16
16
  vercel deploy --prebuilt
17
17
  ```
18
18
 
19
- Before writing any output, `vercel:build` runs the deploy-runtime checks `guren doctor` reports and warns, without failing, on an in-memory session or OAuth store, a `ScryptHasher`, or filesystem provider discovery — each works locally and breaks across function invocations.
19
+ Before writing any output, `vercel:build` runs the deploy-runtime checks `guren doctor` reports and warns, without failing, on an in-memory session or OAuth store, a Bun-only password hasher (`Argon2Hasher`, `hasher: 'argon2'`, or `new Hash({ algorithm: 'argon2' })`), or filesystem provider discovery — each works locally and breaks across function invocations.
20
20
 
21
21
  ## API
22
22
 
package/dist/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { cpSync, existsSync, mkdirSync, writeFileSync } from "node:fs";
2
2
  import { basename, extname, resolve } from "node:path";
3
3
  import { definePlugin } from "@guren/core";
4
- import { DOCUMENT_ASSET_EXTENSIONS, DOCUMENT_ASSET_HEADERS, MCP_SDK_SUBPATH_PREFIX, appUsesMcpPlugin, assertOutputDirOutsideRoot, clientManifestJson, removeShadowingIndex, renderDevOnlyStub, resetOutputDir, resolveClientAssetEnv, resolvePathLike, resolveSsrEntryFile, ssrRuntimePaths, stubbableDevOnlyModules, unusedSqlClients } from "@guren/core/internal/deploy-build";
4
+ import { DOCUMENT_ASSET_EXTENSIONS, DOCUMENT_ASSET_HEADERS, MCP_SDK_SUBPATH_PREFIX, appUsesMcpPlugin, assertOutputDirOutsideRoot, bundledRuntimeEnv, removeShadowingIndex, renderDevOnlyStub, resetOutputDir, resolveClientAssetEnv, resolvePathLike, resolveSsrEntryFile, ssrRuntimePaths, stubbableDevOnlyModules, unusedSqlClients } from "@guren/core/internal/deploy-build";
5
5
  import { reportDeployRuntimeHazards } from "@guren/core/internal/deploy-check";
6
6
  //#region src/index.ts
7
7
  /** Prefixes every diagnostic this build emits. */
@@ -72,7 +72,7 @@ async function buildVercelOutput(options = {}) {
72
72
  funcDir,
73
73
  root,
74
74
  dialects: options.databaseDialects,
75
- viteManifest: clientManifestJson(publicDir)
75
+ bundledEnv: bundledRuntimeEnv(root, publicDir, LABEL)
76
76
  });
77
77
  if (existsSync(ssrDir)) cpSync(ssrDir, resolve(funcDir, ".guren/ssr"), { recursive: true });
78
78
  if (existsSync(migrationsDir)) cpSync(migrationsDir, resolve(funcDir, "db/migrations"), { recursive: true });
@@ -163,7 +163,7 @@ async function bundleFunction(input) {
163
163
  },
164
164
  define: {
165
165
  "process.env.NODE_ENV": "\"production\"",
166
- ...input.viteManifest ? { "process.env.GUREN_VITE_MANIFEST": JSON.stringify(input.viteManifest) } : {}
166
+ ...Object.fromEntries(Object.entries(input.bundledEnv).map(([key, value]) => [`process.env.${key}`, JSON.stringify(value)]))
167
167
  },
168
168
  plugins: [{
169
169
  name: "guren-vercel-stubs",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@guren/plugin-vercel",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -35,7 +35,7 @@
35
35
  "typecheck": "tsc --noEmit"
36
36
  },
37
37
  "dependencies": {
38
- "@guren/core": "^1.15.0"
38
+ "@guren/core": "^1.19.0"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^20.14.10",