Skip to content

Commit b904573

Browse files
committed
default auto extend to true and use ohash
1 parent 3c29d0e commit b904573

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

deps.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export { createMiddleware } from 'npm:hono@^4.0.0/factory'
33
export { getCookie, setCookie } from 'npm:hono@^4.0.0/cookie'
44
export type { CookieOptions } from 'npm:hono@^4.0.0/utils/cookie'
55
export * as Iron from 'npm:iron-webcrypto@^1.2.1'
6-
export { default as hash } from 'npm:hash-object@^5'
6+
export { hash } from 'npm:ohash@^2'

src/Middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export function sessionMiddleware(options: SessionOptions): MiddlewareHandler {
1111
const expireAfterSeconds = options.expireAfterSeconds
1212
const cookieOptions = options.cookieOptions
1313
const sessionCookieName = options.sessionCookieName || 'session'
14-
const autoExtendExpiration = options.autoExtendExpiration ?? false
14+
const autoExtendExpiration = options.autoExtendExpiration ?? true
1515

1616
if (options.encryptionKey !== undefined) {
1717
if (typeof options.encryptionKey === 'function') {

0 commit comments

Comments
 (0)