Skip to content

Commit

Permalink
Updating meta, testing MongoDb 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanb committed Nov 24, 2023
1 parent e967496 commit 2187746
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "demo",
"version": "0.3.0",
"version": "0.4.0-alpha.1",
"private": true,
"type": "module",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions demo/src/store.mts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const debug = debugM('demo:session-store')

export const store = new MongoSessionStore({
uri: 'mongodb://localhost:27017/express_sessions'
// createTTLIndex: false // uncomment for MongoDb < 5.1
})

store.on('info', debug)
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ version: "3.4"
services:
mongo:
image: mongo:7
# image: mongo:3.6
restart: always
ports:
- "27017:27017"
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@iwsio/mongodb-express-session-root",
"version": "0.3.0",
"version": "0.4.0-alpha.1",
"description": "",
"scripts": {
"prebuild": "tsc --build --clean && npm run prebuild -ws --if-present",
Expand Down
4 changes: 2 additions & 2 deletions package/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@iwsio/mongodb-express-session",
"version": "0.3.0",
"description": "ESM MongoDB session store for Express. Supports TTL and touch.",
"version": "0.4.0-alpha.1",
"description": "An ESM express-session store for MongoDB using the latest MongoDb Node driver v6. Supports TTL and touch. Supports MongoDB v3.6+ (without TTL index), 5.1+ (with TTL Index).",
"main": "dist/index.js",
"module": "dist/index.js",
"type": "module",
Expand Down

0 comments on commit 2187746

Please sign in to comment.