Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d746f451dd | |||
| 5a7936aac4 | |||
| 64a4fa5383 |
44
CHANGELOG.md
44
CHANGELOG.md
@ -1,6 +1,50 @@
|
||||
# Changelog
|
||||
|
||||
|
||||
## v1.0.5
|
||||
|
||||
[compare changes](https://github.com/arashsheyda/nuxt-mongoose/compare/v1.0.4...v1.0.5)
|
||||
|
||||
### 🩹 Fixes
|
||||
|
||||
- Replace consola with logger ([5a7936a](https://github.com/arashsheyda/nuxt-mongoose/commit/5a7936a))
|
||||
|
||||
### 🏡 Chore
|
||||
|
||||
- **release:** V1.0.4 ([64a4fa5](https://github.com/arashsheyda/nuxt-mongoose/commit/64a4fa5))
|
||||
|
||||
### ❤️ Contributors
|
||||
|
||||
- Arash <arashi.sheyda@gmail.com>
|
||||
|
||||
## v1.0.4
|
||||
|
||||
[compare changes](https://github.com/arashsheyda/nuxt-mongoose/compare/v1.0.3...v1.0.5)
|
||||
|
||||
### 💅 Refactors
|
||||
|
||||
- Split services into individual files ([d6b8e91](https://github.com/arashsheyda/nuxt-mongoose/commit/d6b8e91))
|
||||
|
||||
### 📖 Documentation
|
||||
|
||||
- Update dependencies ([12d62d8](https://github.com/arashsheyda/nuxt-mongoose/commit/12d62d8))
|
||||
- Update dependencies ([7183742](https://github.com/arashsheyda/nuxt-mongoose/commit/7183742))
|
||||
|
||||
### 🏡 Chore
|
||||
|
||||
- Test bundler module resolution ([#36](https://github.com/arashsheyda/nuxt-mongoose/pull/36))
|
||||
- Update dependencies ([#38](https://github.com/arashsheyda/nuxt-mongoose/pull/38))
|
||||
- Update dependencies ([bdab2c5](https://github.com/arashsheyda/nuxt-mongoose/commit/bdab2c5))
|
||||
- Update playground ([42b3b83](https://github.com/arashsheyda/nuxt-mongoose/commit/42b3b83))
|
||||
- Update cover ([61cc323](https://github.com/arashsheyda/nuxt-mongoose/commit/61cc323))
|
||||
- Update cover ([bf7f9db](https://github.com/arashsheyda/nuxt-mongoose/commit/bf7f9db))
|
||||
|
||||
### ❤️ Contributors
|
||||
|
||||
- Arash
|
||||
- Amir H. Moayeri
|
||||
- Daniel Roe <daniel@roe.dev>
|
||||
|
||||
## v1.0.3
|
||||
|
||||
[compare changes](https://github.com/arashsheyda/nuxt-mongoose/compare/v1.0.2...v1.0.3)
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "nuxt-mongoose",
|
||||
"type": "module",
|
||||
"version": "1.0.3",
|
||||
"version": "1.0.5",
|
||||
"private": false,
|
||||
"packageManager": "pnpm@8.7.4",
|
||||
"description": "Nuxt 3 module for MongoDB with Mongoose",
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import type { ConnectOptions } from 'mongoose'
|
||||
import { logger } from '@nuxt/kit'
|
||||
import { consola } from 'consola'
|
||||
import { colors } from 'consola/utils'
|
||||
import mongoose from 'mongoose'
|
||||
|
||||
// @ts-ignore
|
||||
@ -12,9 +13,9 @@ export async function defineMongooseConnection({ uri, options }: { uri?: string;
|
||||
|
||||
try {
|
||||
await mongoose.connect(mongooseUri, { ...mongooseOptions })
|
||||
logger.success('Connected to `MongoDB`')
|
||||
consola.success('Connected to MongoDB')
|
||||
}
|
||||
catch (err) {
|
||||
logger.error('Error connecting to `MongoDB`', err)
|
||||
consola.error(colors.red(`Error connecting to MongoDB: ${err}`))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user