Update all dependencies

This takes part of the work being done in #96 that was reverted but still useful.

Note Tailwind and Fresh weren't upgraded because there's no security vulnerability in either, and I have found the new versions to be worse in performance. Thos will likely stay at those fixed versions going forward.
This commit is contained in:
Bruno Bernardino
2025-09-27 19:39:09 +01:00
parent ba2103afa9
commit 6734e9557b
45 changed files with 11027 additions and 127 deletions

View File

@@ -1,5 +1,4 @@
import { assert } from 'std/assert/assert.ts';
import { assertEquals } from 'std/assert/assert_equals.ts';
import { assertEquals } from '@std/assert';
import { createHandler, ServeHandlerInfo } from 'fresh/server.ts';
import manifest from './fresh.gen.ts';
@@ -21,14 +20,14 @@ Deno.test('Basic routes', async (testContext) => {
await testContext.step('#2 GET /login', async () => {
const response = await handler(new Request('http://127.0.0.1/login'), CONN_INFO);
const text = await response.text();
assert(text.includes('bewCloud'));
assertEquals(text.includes('bewCloud'), true);
assertEquals(response.status, 200);
});
await testContext.step('#3 GET /blah', async () => {
const response = await handler(new Request('http://127.0.0.1/blah'), CONN_INFO);
const text = await response.text();
assert(text.includes('404 - Page not found'));
assertEquals(text.includes('404 - Page not found'), true);
assertEquals(response.status, 404);
});
@@ -41,7 +40,7 @@ Deno.test('Basic routes', async (testContext) => {
});
const response = await handler(request, CONN_INFO);
const text = await response.text();
assert(text.includes('Error: Password is too short'));
assertEquals(text.includes('Error: Password is too short'), true);
assertEquals(response.status, 200);
});
});