3 Commits

Author SHA1 Message Date
d746f451dd chore(release): v1.0.5 2024-02-01 08:25:28 -07:00
5a7936aac4 fix: replace consola with logger 2024-01-30 08:50:40 -07:00
64a4fa5383 chore(release): v1.0.4 2024-01-17 16:51:24 -07:00
3 changed files with 49 additions and 4 deletions

View File

@ -1,6 +1,50 @@
# Changelog # 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 ## v1.0.3
[compare changes](https://github.com/arashsheyda/nuxt-mongoose/compare/v1.0.2...v1.0.3) [compare changes](https://github.com/arashsheyda/nuxt-mongoose/compare/v1.0.2...v1.0.3)

View File

@ -1,7 +1,7 @@
{ {
"name": "nuxt-mongoose", "name": "nuxt-mongoose",
"type": "module", "type": "module",
"version": "1.0.3", "version": "1.0.5",
"private": false, "private": false,
"packageManager": "pnpm@8.7.4", "packageManager": "pnpm@8.7.4",
"description": "Nuxt 3 module for MongoDB with Mongoose", "description": "Nuxt 3 module for MongoDB with Mongoose",

View File

@ -1,5 +1,6 @@
import type { ConnectOptions } from 'mongoose' import type { ConnectOptions } from 'mongoose'
import { logger } from '@nuxt/kit' import { consola } from 'consola'
import { colors } from 'consola/utils'
import mongoose from 'mongoose' import mongoose from 'mongoose'
// @ts-ignore // @ts-ignore
@ -12,9 +13,9 @@ export async function defineMongooseConnection({ uri, options }: { uri?: string;
try { try {
await mongoose.connect(mongooseUri, { ...mongooseOptions }) await mongoose.connect(mongooseUri, { ...mongooseOptions })
logger.success('Connected to `MongoDB`') consola.success('Connected to MongoDB')
} }
catch (err) { catch (err) {
logger.error('Error connecting to `MongoDB`', err) consola.error(colors.red(`Error connecting to MongoDB: ${err}`))
} }
} }