nuxt-i18n-micro 3.25.0 → 3.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -20
- package/dist/client/200.html +1 -1
- package/dist/client/404.html +1 -1
- package/dist/client/_nuxt/{BvqvYzmv.js → Bwak6g3b.js} +8 -8
- package/dist/client/_nuxt/DBXvRcU1.js +3 -0
- package/dist/client/_nuxt/{COsMbydw.js → DbtvxgAm.js} +1 -1
- package/dist/client/_nuxt/{BpKSkDZF.js → DyIrbWYh.js} +1 -1
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/24f3c578-f02b-41bc-953a-c7ff7b504d56.json +1 -0
- package/dist/client/_nuxt/{entry.DYT8mjOq.css → entry.CJGrD2VA.css} +1 -1
- package/dist/client/_nuxt/error-404.Cr1POox6.css +1 -0
- package/dist/client/_nuxt/error-500.BcWSpGYy.css +1 -0
- package/dist/client/_nuxt/{D8yLLvaa.js → p3h4sA5-.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/module.json +1 -1
- package/package.json +7 -7
- package/dist/client/_nuxt/builds/meta/520ce41d-5d78-4dcf-a270-839330ecc035.json +0 -1
- package/dist/client/_nuxt/error-404.C7VweHUB.css +0 -1
- package/dist/client/_nuxt/error-500.BIovDVp2.css +0 -1
- package/dist/client/_nuxt/it0enEWC.js +0 -3
package/README.md
CHANGED
|
@@ -22,41 +22,40 @@ The `Nuxt I18n Micro` module was created to address critical performance issues
|
|
|
22
22
|
|
|
23
23
|
### Performance Comparison
|
|
24
24
|
|
|
25
|
-
To showcase the efficiency of `Nuxt I18n Micro`, we ran the same fixture suite
|
|
25
|
+
To showcase the efficiency of `Nuxt I18n Micro`, we ran the same fixture suite via `pnpm test:performance` (`pnpm -C scripts cli performance`) against **`@nuxtjs/i18n@10.6.0`** on the same hardware. We also include a **plain-nuxt** baseline (no i18n module) to measure the real overhead.
|
|
26
26
|
|
|
27
27
|
#### Build Time and Resource Consumption
|
|
28
28
|
|
|
29
|
-
> **Note:** The `plain-nuxt` baseline is a minimal implementation created solely for benchmarking purposes. It loads data directly from JSON files without any i18n logic.
|
|
29
|
+
> **Note:** The `plain-nuxt` baseline is a minimal implementation created solely for benchmarking purposes. It loads data directly from JSON files without any i18n logic. Latest run: `@nuxtjs/i18n@10.6.0`, mean of 3 consecutive runs per fixture, default CLI profile (~16.8k index leaves).
|
|
30
30
|
|
|
31
31
|
| Project | Build Time | Code Bundle | Max Memory | Max CPU |
|
|
32
32
|
|---------|------------|-------------|------------|---------|
|
|
33
|
-
| **plain-nuxt** (baseline) |
|
|
34
|
-
| **i18n-micro** |
|
|
35
|
-
| **@nuxtjs/i18n v10.6** |
|
|
33
|
+
| **plain-nuxt** (baseline) | 5.32s | 1.53 MB | 810 MB | 207% |
|
|
34
|
+
| **i18n-micro** | 5.34s | 1.74 MB | 1,065 MB | 204% |
|
|
35
|
+
| **@nuxtjs/i18n v10.6** | 8.34s | 2.16 MB | 1,821 MB | 204% |
|
|
36
36
|
|
|
37
|
-
> **Code Bundle** =
|
|
38
|
-
> i18n-micro stores translations as lazy-loaded JSON files, keeping the code bundle minimal.
|
|
37
|
+
> **Code Bundle** = JS/CSS only (excludes classified translation payloads, including `@nuxtjs/i18n` `chunks/raw/*`). Older tables that showed ~15 MB “code” for v10.6 were counting message chunks as app code.
|
|
39
38
|
|
|
40
|
-
- **i18n-micro vs baseline**:
|
|
41
|
-
- **@nuxtjs/i18n v10.6 vs baseline**: +
|
|
39
|
+
- **i18n-micro vs baseline**: ≈ same build time, +0.21 MB code, +255 MB peak RSS
|
|
40
|
+
- **@nuxtjs/i18n v10.6 vs baseline**: +3.02s build, +0.63 MB code, +1,011 MB peak RSS
|
|
42
41
|
|
|
43
42
|
#### Stress Test Results (Requests per Second)
|
|
44
43
|
|
|
45
|
-
| Project | Avg Response | RPS (Artillery) |
|
|
46
|
-
|
|
47
|
-
| **plain-nuxt** |
|
|
48
|
-
| **i18n-micro** |
|
|
49
|
-
| **@nuxtjs/i18n v10.6** |
|
|
44
|
+
| Project | Avg Response (Artillery) | RPS (Artillery) | RPS (Autocannon) | Avg Latency (AC) |
|
|
45
|
+
|---------|--------------------------|-----------------|------------------|------------------|
|
|
46
|
+
| **plain-nuxt** | 1,194 ms | 109 | 65 | 152 ms |
|
|
47
|
+
| **i18n-micro** | 483 ms | 275 | 162 | 62 ms |
|
|
48
|
+
| **@nuxtjs/i18n v10.6** | 956 ms | 143 | 72 | 139 ms |
|
|
50
49
|
|
|
51
50
|
#### Comparison: `@nuxtjs/i18n` v10.6 vs i18n-micro
|
|
52
51
|
|
|
53
|
-
- **Code Bundle**:
|
|
54
|
-
- **Build Time**:
|
|
55
|
-
- **Max Memory (build)**:
|
|
56
|
-
- **Average Response Time**:
|
|
57
|
-
- **Requests Per Second**:
|
|
52
|
+
- **Code Bundle**: 0.42 MB smaller (1.74 MB vs 2.16 MB)
|
|
53
|
+
- **Build Time**: 3.00s faster (5.34s vs 8.34s)
|
|
54
|
+
- **Max Memory (build)**: 756 MB less (1,065 MB vs 1,821 MB)
|
|
55
|
+
- **Average Response Time (Artillery)**: 473 ms faster (483 ms vs 956 ms)
|
|
56
|
+
- **Requests Per Second (Artillery)**: 132 more (275 vs 143)
|
|
58
57
|
|
|
59
|
-
|
|
58
|
+
Micro leads on build cost and especially under load. See the [full benchmark report](https://s00d.github.io/nuxt-i18n-micro/guide/performance-results) for methodology and charts.
|
|
60
59
|
|
|
61
60
|
## Key Features
|
|
62
61
|
|
package/dist/client/200.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-i18n-micro/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-i18n-micro/_nuxt/Bwak6g3b.js"}}</script><link rel="stylesheet" href="/__nuxt-i18n-micro/_nuxt/entry.CJGrD2VA.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/Bwak6g3b.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/DBXvRcU1.js"><script type="module" src="/__nuxt-i18n-micro/_nuxt/Bwak6g3b.js" crossorigin></script><link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-500.BcWSpGYy.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/p3h4sA5-.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/DbtvxgAm.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"24f3c578-f02b-41bc-953a-c7ff7b504d56",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1785527485918,false]</script></body></html>
|
package/dist/client/404.html
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-i18n-micro/_nuxt/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__nuxt-i18n-micro/_nuxt/Bwak6g3b.js"}}</script><link rel="stylesheet" href="/__nuxt-i18n-micro/_nuxt/entry.CJGrD2VA.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/Bwak6g3b.js"><link rel="modulepreload" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/DBXvRcU1.js"><script type="module" src="/__nuxt-i18n-micro/_nuxt/Bwak6g3b.js" crossorigin></script><link rel="prefetch" as="style" crossorigin href="/__nuxt-i18n-micro/_nuxt/error-500.BcWSpGYy.css"><link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/p3h4sA5-.js"><link rel="prefetch" as="script" crossorigin href="/__nuxt-i18n-micro/_nuxt/DbtvxgAm.js"></head><body><div id="__nuxt"></div><div id="teleports"></div><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__nuxt-i18n-micro",buildId:"24f3c578-f02b-41bc-953a-c7ff7b504d56",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1785527485918,false]</script></body></html>
|