diff --git a/CHANGELOG.md b/CHANGELOG.md index a46ab8adbb..986c3a8d9a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,27 @@ # Project Changelog +## [3.0.11-next.3](https://github.com/basics/nuxt-booster/compare/v3.0.11-next.2...v3.0.11-next.3) (2024-04-30) + + +### Bug Fixes + +* **build:** clean rollup ([c62bc10](https://github.com/basics/nuxt-booster/commit/c62bc10c7e1a33d1b0ce093870d91f69722683c9)) + +## [3.0.11-next.2](https://github.com/basics/nuxt-booster/compare/v3.0.11-next.1...v3.0.11-next.2) (2024-04-30) + + +### Bug Fixes + +* **blob:** fix import test ([1e226b8](https://github.com/basics/nuxt-booster/commit/1e226b80e55af83052a6582e769460d1317a6c33)) + +## [3.0.11-next.1](https://github.com/basics/nuxt-booster/compare/v3.0.10...v3.0.11-next.1) (2024-04-30) + + +### Bug Fixes + +* **composables:** fix rollup warnings ([d8796c6](https://github.com/basics/nuxt-booster/commit/d8796c667353d065611c6d1ae66f650cad8628c2)) +* **module:** remove `serialize-to-js` ([396afde](https://github.com/basics/nuxt-booster/commit/396afdec2655fca980bfa4ee60c6d7e9b2effde1)) + ## [3.0.10](https://github.com/basics/nuxt-booster/compare/v3.0.9...v3.0.10) (2024-04-29) diff --git a/build.config.js b/build.config.js index 9f1efc8719..4b87aef1a0 100644 --- a/build.config.js +++ b/build.config.js @@ -18,7 +18,6 @@ export default { 'htmlparser2', 'image-meta', 'pathe', - 'serialize-to-js', 'sort-css-media-queries', 'vue3-lazy-hydration', 'mime-types', diff --git a/package-lock.json b/package-lock.json index 66981c5e57..2a76849858 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "nuxt-booster", - "version": "3.0.10", + "version": "3.0.11-next.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "nuxt-booster", - "version": "3.0.10", + "version": "3.0.11-next.3", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -20,7 +20,6 @@ "htmlparser2": "9.1.0", "image-meta": "0.2.0", "pathe": "1.1.2", - "serialize-to-js": "3.1.2", "sort-css-media-queries": "2.2.0", "vue3-lazy-hydration": "1.2.1" }, @@ -19624,14 +19623,6 @@ "randombytes": "^2.1.0" } }, - "node_modules/serialize-to-js": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/serialize-to-js/-/serialize-to-js-3.1.2.tgz", - "integrity": "sha512-owllqNuDDEimQat7EPG0tH7JjO090xKNzUtYz6X+Sk2BXDnOCilDdNLwjWeFywG9xkJul1ULvtUQa9O4pUaY0w==", - "engines": { - "node": ">=4.0.0" - } - }, "node_modules/serve-placeholder": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/serve-placeholder/-/serve-placeholder-2.0.1.tgz", diff --git a/package.json b/package.json index fc05dd1ca0..0bd3d7b976 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nuxt-booster", - "version": "3.0.10", + "version": "3.0.11-next.3", "description": "Nuxt Booster takes over the Lighthouse performance optimization of your generated website.", "license": "MIT", "author": "Stephan Gerbeth", @@ -63,7 +63,6 @@ "htmlparser2": "9.1.0", "image-meta": "0.2.0", "pathe": "1.1.2", - "serialize-to-js": "3.1.2", "sort-css-media-queries": "2.2.0", "vue3-lazy-hydration": "1.2.1" }, diff --git a/src/runtime/classes/FontConfig.js b/src/classes/FontConfig.js similarity index 100% rename from src/runtime/classes/FontConfig.js rename to src/classes/FontConfig.js diff --git a/src/module.js b/src/module.js index d71d2d346b..e6f93a1f23 100644 --- a/src/module.js +++ b/src/module.js @@ -1,14 +1,14 @@ import { resolve, join } from 'pathe'; import { - addImports, + addImportsDir, createResolver, defineNuxtModule, addPluginTemplate, addTemplate } from '@nuxt/kit'; -import { getCrossorigin } from './runtime/utils'; -import FontConfig from './runtime/classes/FontConfig'; +import { getCrossorigin, getSupportedBrowserDetector } from './utils/browser'; +import FontConfig from './classes/FontConfig'; import { MODULE_NAME, addNuxtFontaine, @@ -20,7 +20,6 @@ import { import { deprecationsNotification, getDefaultOptions } from './utils/options'; import { getFontConfigTemplate } from './utils/template'; import { optimizePreloads } from './utils/preload'; -import { getSupportedBrowserDetector } from './utils/browser'; import { registerAppEntry as registerAppEntryWebpack } from './hookFunctions/webpack'; import { registerAppEntry as registerAppEntryVite } from './hookFunctions/vite'; import { getTemplate as getBlobFileTemplate } from './utils/blob'; @@ -83,18 +82,7 @@ export default defineNuxtModule({ await addBuildTemplates(nuxt, moduleOptions); - addImports( - [ - 'useBoosterComponentObserver', - 'useBoosterCritical', - 'useBoosterConfig', - 'useBoosterFonts', - 'useBoosterHead' - ].map(name => ({ - name, - from: resolve(runtimeDir, 'composables/index') - })) - ); + addImportsDir(resolve(runtimeDir, 'composables')); } }); diff --git a/src/runtime/components/BoosterIframe.vue b/src/runtime/components/BoosterIframe.vue index 9e417fc306..ee536aaacc 100644 --- a/src/runtime/components/BoosterIframe.vue +++ b/src/runtime/components/BoosterIframe.vue @@ -12,8 +12,6 @@