Skip to content

Commit b62fefe

Browse files
kevingorskiclaude
andcommitted
Modernize for Deno 2: drop kv_insights, migrate kv_oauth + std to JSR
- Drop `kv_insights` plugin (beta, Fresh-1-only admin convenience): remove the plugin registration in main.ts, delete `routes/kv-insights/`, delete the three islands that only re-exported its UI. - Migrate `kv_oauth` from `deno.land/x/deno_kv_oauth@v0.10.0` to `jsr:@deno/kv-oauth@^0.11`. API surface is unchanged; only the `kv_oauth/mod.ts` subpath import sites needed updating to `kv_oauth`. - Migrate every `std/` import to scoped `@std/*` JSR packages (`@std/assert`, `@std/http`, `@std/collections`, `@std/ulid`, `@std/datetime`, `@std/dotenv`). - `deno.json`: add `"nodeModulesDir": "none"` to be explicit about the npm-specifier-without-node_modules setup (silences the Deno 2 default change), drop `"lock": false` so Deno 2 manages and we commit `deno.lock`. - Regenerate `fresh.gen.ts` to drop the removed kv-insights route and islands; rebuild `static/styles.gen.css`. All 12 unit/integration tests still pass; production build succeeds; preview server returns 200 for /, /signin, /about. Still on Fresh 1.7.3 — framework upgrade is the next commit. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5a6ef51 commit b62fefe

31 files changed

Lines changed: 816 additions & 58 deletions

deno.json

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,20 @@
66
"@/": "./",
77
"$fresh/": "https://deno.land/x/fresh@1.7.3/",
88
"$gfm": "https://deno.land/x/gfm@0.2.4/mod.ts",
9+
"@std/assert": "jsr:@std/assert@^1.0",
10+
"@std/collections": "jsr:@std/collections@^1.1",
11+
"@std/datetime": "jsr:@std/datetime@^0.225",
12+
"@std/dotenv": "jsr:@std/dotenv@^0.225",
13+
"@std/http": "jsr:@std/http@^1.1",
14+
"@std/ulid": "jsr:@std/ulid@^1.0",
915
"basic_auth": "https://deno.land/x/basic_auth@v1.1.1/mod.ts",
1016
"browserslist": "npm:browserslist@^4.24.4",
1117
"case": "https://deno.land/x/case@2.1.1/mod.ts",
1218
"chart.js": "https://esm.sh/stable/chart.js@4.3.0/auto?target=es2022",
1319
"countries": "https://deno.land/x/countries@v1.1.2/mod.ts",
1420
"fast-blurhash": "npm:fast-blurhash@^1.1.4",
1521
"gravatar": "npm:gravatar@^1.8.2",
16-
"kv_insights": "https://deno.land/x/deno_kv_insights@v0.8.4-beta/mod.ts",
17-
"kv_insights/": "https://deno.land/x/deno_kv_insights@v0.8.4-beta/",
18-
"kv_oauth": "https://deno.land/x/deno_kv_oauth@v0.10.0/mod.ts",
19-
"kv_oauth/": "https://deno.land/x/deno_kv_oauth@v0.10.0/",
22+
"kv_oauth": "jsr:@deno/kv-oauth@^0.11",
2023
"lightningcss": "npm:lightningcss@^1.29.1",
2124
"marked": "npm:marked@^15.0.6",
2225
"preact": "https://esm.sh/preact@10.22.0",
@@ -27,11 +30,10 @@
2730
"react": "https://esm.sh/preact@10.19.2/compat",
2831
"react-dom": "https://esm.sh/preact@10.19.2/compat",
2932
"react/jsx-runtime": "https://esm.sh/preact@10.19.2/compat",
30-
"std/": "https://deno.land/std@0.208.0/",
3133
"stripe": "./stripe.ts"
3234
},
3335
"lint": { "rules": { "tags": ["fresh", "recommended"] } },
34-
"lock": false,
36+
"nodeModulesDir": "none",
3537
"pkgx": "deno.land^2.1.1 github.com/evilmartians/lefthook^1.5.0",
3638
"tasks": {
3739
"db:dump": "deno run --allow-read --allow-env tools/dump_kv.ts",

0 commit comments

Comments
 (0)