Skip to content

Commit 9bb0e1a

Browse files
authored
Merge pull request #1096 from basics/next
Next
2 parents c2b0735 + 20e6001 commit 9bb0e1a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+666
-422
lines changed

CHANGELOG.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,42 @@
11
# Project Changelog
22

3+
## [3.1.4-next.5](https://github.com/basics/nuxt-booster/compare/v3.1.4-next.4...v3.1.4-next.5) (2024-08-18)
4+
5+
6+
### Bug Fixes
7+
8+
* **components:** remove skeleton ([38a4a99](https://github.com/basics/nuxt-booster/commit/38a4a99a91c2409ac750b518d851746a709c04a9))
9+
* **image-size:** added option ([a6255cc](https://github.com/basics/nuxt-booster/commit/a6255cc36969c236a097b394a2446085c1cd6802))
10+
11+
## [3.1.4-next.4](https://github.com/basics/nuxt-booster/compare/v3.1.4-next.3...v3.1.4-next.4) (2024-08-18)
12+
13+
14+
### Bug Fixes
15+
16+
* **plugin:** fix invalid object url ([dfe4c5a](https://github.com/basics/nuxt-booster/commit/dfe4c5ad5674ac4796dbdc6fab8612b6a9f2ece7))
17+
* **plugin:** remove fetch retry, not necessary for object url ([667223c](https://github.com/basics/nuxt-booster/commit/667223ccd00551095cc64e1ef86de107a12bac7e))
18+
19+
## [3.1.4-next.3](https://github.com/basics/nuxt-booster/compare/v3.1.4-next.2...v3.1.4-next.3) (2024-08-18)
20+
21+
22+
### Bug Fixes
23+
24+
* **plugin:** added revokeObjectURL ([389b23e](https://github.com/basics/nuxt-booster/commit/389b23e55aa35163b68ccb1e649bea1dbf081719))
25+
26+
## [3.1.4-next.2](https://github.com/basics/nuxt-booster/compare/v3.1.4-next.1...v3.1.4-next.2) (2024-08-17)
27+
28+
29+
### Bug Fixes
30+
31+
* **imports:** imrpove imports ([2d4d589](https://github.com/basics/nuxt-booster/commit/2d4d589a036f74d9a90966d1b81b76c3130e293c))
32+
33+
## [3.1.4-next.1](https://github.com/basics/nuxt-booster/compare/v3.1.3...v3.1.4-next.1) (2024-08-17)
34+
35+
36+
### Bug Fixes
37+
38+
* **image:** optimize getImageSize ([36a3627](https://github.com/basics/nuxt-booster/commit/36a36272ed2811c9cd2dc0f8f7561e1559e89f13))
39+
340
## [3.1.3](https://github.com/basics/nuxt-booster/compare/v3.1.2...v3.1.3) (2024-08-13)
441

542

build.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export default {
77
'hash-sum',
88
'probe-image-size',
99
'vue3-lazy-hydration',
10+
'node-cache',
1011

1112
// package
1213
'@nuxt/image',

docs/src/guide/options.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,22 @@ Global option for the [`IntersectionObserver`](https://developer.mozilla.org/en-
274274
| `component` | `String` | yes | [`rootMargin`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin) value for [`BoosterHydrate`](/guide/usage#import-components). | `0%` |
275275
| `asset` | `String` | yes | [`rootMargin`](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/rootMargin) value for all static ressources (`v-font`, `BoosterPicture` & `BoosterImage`). | `0%` |
276276

277+
## `imageSizeCache`
278+
279+
- Type: `Object`
280+
- Default: `{ stdTTL: 3600, checkperiod: 1800 }`
281+
282+
The `imageSizeCache` option is used to cache the image sizes of the `BoosterImage` and `BoosterPicture` components. This reduces the number of requests to the server and speeds up the loading process.
283+
284+
Learn more about the options in the [node-cache documentation](https://www.npmjs.com/package/node-cache#options).
285+
286+
````js
287+
{
288+
stdTTL: 3600,
289+
checkperiod: 1800
290+
}
291+
````
292+
277293
## `disableNuxtFontaine`
278294

279295
- Type: `Boolean`

package-lock.json

Lines changed: 170 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nuxt-booster",
3-
"version": "3.1.3",
3+
"version": "3.1.4-next.5",
44
"description": "Nuxt Booster takes over the Lighthouse performance optimization of your generated website.",
55
"license": "MIT",
66
"author": "Stephan Gerbeth",
@@ -61,6 +61,7 @@
6161
"htmlparser2": "9.1.0",
6262
"image-meta": "0.2.1",
6363
"mime-types": "2.1.35",
64+
"node-cache": "^5.1.2",
6465
"pathe": "1.1.2",
6566
"sort-css-media-queries": "2.3.0",
6667
"vue3-lazy-hydration": "1.2.1"
@@ -73,6 +74,7 @@
7374
"@nuxt/module-builder": "0.8.3",
7475
"@nuxt/webpack-builder": "3.12.4",
7576
"@types/node": "20.15.0",
77+
"@types/vue": "^2.0.0",
7678
"commitlint": "19.4.0",
7779
"eslint": "9.9.0",
7880
"eslint-config-prettier": "9.1.0",

playground/components/InfoLayer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
import { getStyleDescription } from '#booster/utils/description';
3434
import BoosterLayer from '#booster/components/BoosterLayer';
3535
import BaseButton from '@/components/base/Button';
36+
import { useBoosterFonts, useHead } from '#imports';
3637
3738
const { $getFont } = useBoosterFonts();
3839

playground/components/PreviewContainer.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
</template>
1717

1818
<script setup>
19+
import { useBoosterFonts } from '#imports';
1920
const { $getFont } = useBoosterFonts();
2021
</script>
2122

playground/components/WeakHardwareOverlay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111

1212
<script setup>
1313
import BoosterWeakHardwareOverlay from '#booster/components/WeakHardwareOverlay';
14-
1514
import BaseButton from '@/components/base/Button';
15+
import { useBoosterFonts } from '#imports';
1616
1717
const { $getFont } = useBoosterFonts();
1818
defineProps({

0 commit comments

Comments
 (0)