diff --git a/README.md b/README.md
index 8ef4db4..3fbca01 100644
--- a/README.md
+++ b/README.md
@@ -1,103 +1,3 @@
-[](https://vuemail.net)
+we just merged a new project rewrite, please do check the docs and the updated logic https://vuemail.net/
-
-
-[![npm version][npm-version-src]][npm-version-href]
-[![npm downloads][npm-downloads-src]][npm-downloads-href]
-[![JSDocs][jsdocs-src]][jsdocs-href]
-[![License][license-src]][license-href]
-
-
-
-# @vue-email/nuxt
-
-Official Nuxt module for Vue Email. Build email templates with Vue components.
-
-- [✨ Release Notes](https://github.com/vue-email/nuxt/releases)
-- [📖 Documentation](https://vuemail.net/ssr/nuxt)
-
-## Features
-
-- Auto-import Vue Email components and composables
-- `useCompiler` utility to render emails on the server
-- All the DX Magic that comes with Nuxt ✨
-- Vue Email DevTools integration
-
-## Ecosystem
-
-| Package | Version |
-| --------------------------- | :------------------------------------------------------------------------------------------------- |
-| [Vue-Email](https://github.com/vue-email/vue-email) |  |
-| [Nuxt](https://github.com/vue-email/nuxt) |  |
-[SSR Compiler](https://github.com/vue-email/compiler) |  |
-| [CLI](https://github.com/vue-email/cli) |  |
-
-## Quick Setup
-
-1. Add `@vue-email/nuxt` dependency to your project
-
-```bash
-# Using pnpm
-pnpm add -D @vue-email/nuxt
-
-# Using yarn
-yarn add --dev @vue-email/nuxt
-
-# Using npm
-npm install --save-dev @vue-email/nuxt
-```
-
-2. Add `@vue-email/nuxt` to the `modules` section of `nuxt.config.ts`
-
-```js
-export default defineNuxtConfig({
- modules: [
- '@vue-email/nuxt'
- ]
-})
-```
-
-That's it! You can now use My Module in your Nuxt app ✨
-
-## Development
-
-```bash
-# Install dependencies
-npm install
-
-# Generate type stubs
-npm run dev:prepare
-
-# Develop with the playground
-npm run dev
-
-# Build the playground
-npm run dev:build
-
-# Run ESLint
-npm run lint
-
-# Run Vitest
-npm run test
-npm run test:watch
-
-# Release new version
-npm run release
-```
-
-## License
-
-[MIT](./LICENSE) License © 2023-PRESENT [Vue Email](https://vuemail.net/)
-
-
-[npm-version-src]: https://img.shields.io/npm/v/@vue-email/nuxt/latest.svg?style=flat&colorA=18181B&colorB=28CF8D
-[npm-version-href]: https://npmjs.com/package/@vue-email/nuxt
-
-[npm-downloads-src]: https://img.shields.io/npm/dm/@vue-email/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D
-[npm-downloads-href]: https://npmjs.com/package/@vue-email/nuxt
-
-[license-src]: https://img.shields.io/npm/l/@vue-email/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D
-[license-href]: https://npmjs.com/package/@vue-email/nuxt
-
-[jsdocs-src]: https://img.shields.io/badge/jsdocs-reference-080f12?style=flat&colorA=080f12&colorB=1fa669
-[jsdocs-href]: https://www.jsdocs.io/package/@vue-email/nuxt
+Currently there's no need for a nuxt module, as we are not adding anything specific to nuxt.
diff --git a/package.json b/package.json
index 410515c..054a8b8 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "@vue-email/nuxt",
"type": "module",
- "version": "0.8.17",
+ "version": "0.8.19",
"packageManager": "pnpm@8.11.0",
"description": "Nuxt package for vue-email",
"author": "David Arenas (https://github.com/Dave136/)",
@@ -50,13 +50,13 @@
},
"dependencies": {
"@nuxt/kit": "^3.10.0",
- "@vue-email/compiler": "^0.8.13",
+ "@vue-email/compiler": "^0.8.14",
"defu": "^6.1.4",
"destr": "^2.0.2",
"json5": "^2.2.3",
"sirv": "^2.0.4",
"vue-component-meta": "^1.8.27",
- "vue-email": "^0.8.9"
+ "vue-email": "^0.8.10"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.3",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a8745ef..507f631 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -12,8 +12,8 @@ importers:
specifier: ^3.10.0
version: 3.10.0(rollup@3.29.4)
'@vue-email/compiler':
- specifier: ^0.8.13
- version: 0.8.13(typescript@5.3.3)(vue@3.4.15)
+ specifier: ^0.8.14
+ version: 0.8.14(typescript@5.3.3)(vue@3.4.15)
defu:
specifier: ^6.1.4
version: 6.1.4
@@ -30,8 +30,8 @@ importers:
specifier: ^1.8.27
version: 1.8.27(typescript@5.3.3)
vue-email:
- specifier: ^0.8.9
- version: 0.8.9(typescript@5.3.3)(vue@3.4.15)
+ specifier: ^0.8.10
+ version: 0.8.10(typescript@5.3.3)(vue@3.4.15)
devDependencies:
'@antfu/eslint-config':
specifier: ^2.6.3
@@ -3373,18 +3373,18 @@ packages:
'@volar/language-core': 1.11.1
path-browserify: 1.0.1
- /@vue-email/cli@0.0.12(typescript@5.3.3)(vue@3.4.15):
- resolution: {integrity: sha512-20Yvbkn9xU+sbWg0c7f/Jo5/K8bo1483NQpF0AyYHDI+cvD+F76j+LkXyRRbgVN84Adi1aFKRi6Mcrov1+uo9Q==}
+ /@vue-email/cli@0.0.13(typescript@5.3.3)(vue@3.4.15):
+ resolution: {integrity: sha512-O/zG7lVh095IjxUEm7hkWlQmFANUMOvxiawGAQgxYCXwzRXOb467QqoPMz9fCbyZq+StWgGnRjxVTpYfr2cSiQ==}
hasBin: true
dependencies:
- '@vue-email/compiler': 0.8.13(typescript@5.3.3)(vue@3.4.15)
+ '@vue-email/compiler': 0.8.14(typescript@5.3.3)(vue@3.4.15)
transitivePeerDependencies:
- typescript
- vue
dev: false
- /@vue-email/compiler@0.8.13(typescript@5.3.3)(vue@3.4.15):
- resolution: {integrity: sha512-gVUKdo2ktwcRXHVHZfl6JsR8ltEntAEb45Wk9IcE50j81JmBbGxea5WOJ4BpCkl4G0QCZhtRBbfR+e6LciYAjQ==}
+ /@vue-email/compiler@0.8.14(typescript@5.3.3)(vue@3.4.15):
+ resolution: {integrity: sha512-Z9zHYk7vY9S9WYz8xGf53oMDDQ5Di9Gn0/N0r/ifxEXwLgCcS/5EI3zqquiifXSnqWQJBD7pI18jQFwMgEq0Gw==}
peerDependencies:
vue: ^3.3.8
dependencies:
@@ -3392,7 +3392,7 @@ packages:
kolorist: 1.8.0
scule: 1.3.0
vue: 3.4.15(typescript@5.3.3)
- vue-email: 0.8.9(typescript@5.3.3)(vue@3.4.15)
+ vue-email: 0.8.10(typescript@5.3.3)(vue@3.4.15)
transitivePeerDependencies:
- bufferutil
- canvas
@@ -10726,13 +10726,13 @@ packages:
resolution: {integrity: sha512-RutnB7X8c5hjq39NceArgXg28WZtZpGc3+J16ljMiYnFhKvd8hITxSWQSQ5bvldxMDU6gG5mkxl1MTQLXckVSQ==}
dev: true
- /vue-email@0.8.9(typescript@5.3.3)(vue@3.4.15):
- resolution: {integrity: sha512-/0pHeUZu02LhnAGmWdBdT12xRgAMJH8Je61W9kYHDrTvPtt4MArw/kdQWABQO8eu8Bty56NjiJt90av4j7hlVQ==}
+ /vue-email@0.8.10(typescript@5.3.3)(vue@3.4.15):
+ resolution: {integrity: sha512-JnBbDihdkz1NaNnUSQhXL2hQ9yfLnzVJHJ+DrskYlSALT5bmsxkQJSb7tyGUoSbJ4sEXA3AqpN6oYKKglnekrQ==}
hasBin: true
peerDependencies:
vue: ^3.4.15
dependencies:
- '@vue-email/cli': 0.0.12(typescript@5.3.3)(vue@3.4.15)
+ '@vue-email/cli': 0.0.13(typescript@5.3.3)(vue@3.4.15)
'@vue-email/tailwind': 0.0.6
isomorphic-dompurify: 2.3.0
shiki: 1.0.0
diff --git a/src/runtime/server/nitro/useCompiler.ts b/src/runtime/server/nitro/useCompiler.ts
index 49a3703..f4a200b 100644
--- a/src/runtime/server/nitro/useCompiler.ts
+++ b/src/runtime/server/nitro/useCompiler.ts
@@ -11,14 +11,18 @@ export async function useCompiler(
verbose = false,
) {
const vueEmailOptions = useRuntimeConfig().public.vueEmail as ModuleOptions
- const source = await useStorage(storageKey).getItem(filename)
+ let source = await useStorage(storageKey).getItem(filename)
+ if (source instanceof Uint8Array)
+ source = new TextDecoder().decode(source)
const keys = await useStorage(storageKey).getKeys()
const components: {
name: string
source: string
}[] = []
for (const key of keys) {
- const value = await useStorage(storageKey).getItem(key)
+ let value = await useStorage(storageKey).getItem(key)
+ if (value instanceof Uint8Array)
+ value = new TextDecoder().decode(value)
if (value && key.endsWith('.vue')) {
components.push({
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy