@verbaly/astro 0.76.0 → 0.77.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 +1 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +1 -2
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ export default {
|
|
|
82
82
|
|
|
83
83
|
Force it on or off with the integration option: `verbaly({ render: true })`.
|
|
84
84
|
|
|
85
|
-
Every url the mirror and `virtual:verbaly` write (hreflang, sitemap, canonical, links and `localePath`) follows Astro's own `trailingSlash`, so with `'never'` the Spanish home is `/es`, never `/es/`. With `<ClientRouter />`, `virtual:verbaly` takes the language of each page before the swap, so a live `bindDom` paints the incoming page in its own language
|
|
85
|
+
Every url the mirror and `virtual:verbaly` write (hreflang, sitemap, canonical, links and `localePath`) follows Astro's own `trailingSlash`, so with `'never'` the Spanish home is `/es`, never `/es/`. With `<ClientRouter />`, `virtual:verbaly` takes the language of each page before the swap, so a live `bindDom` paints the incoming page in its own language. Its default root is the whole document, so it keeps working after the router replaces the `body`.
|
|
86
86
|
|
|
87
87
|
## 📚 Docs
|
|
88
88
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { RenderConfig, RenderConfig as RenderConfig$1, VerbalyConfig } from "@verbaly/compiler";
|
|
2
2
|
import { ViteVerbalyOptions, ViteVerbalyOptions as ViteVerbalyOptions$1 } from "@verbaly/vite";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
export interface VerbalyAstroOptions extends Omit<ViteVerbalyOptions$1, 'render'> {
|
|
5
4
|
render?: boolean | RenderConfig$1;
|
|
6
5
|
}
|
|
@@ -35,5 +34,4 @@ export interface VerbalyAstroIntegration {
|
|
|
35
34
|
};
|
|
36
35
|
}
|
|
37
36
|
export default function verbaly(options?: VerbalyAstroOptions): VerbalyAstroIntegration;
|
|
38
|
-
//#endregion
|
|
39
37
|
export type { RenderConfig, VerbalyConfig, ViteVerbalyOptions };
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { counted, formatRenderWarnings, generateDts, loadCatalogs, loadConfig, r
|
|
|
2
2
|
import verbalyVite from "@verbaly/vite";
|
|
3
3
|
import { relative } from "node:path";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
|
-
|
|
5
|
+
// src/index.ts
|
|
6
6
|
function verbaly(options = {}) {
|
|
7
7
|
const { render, ...rest } = options;
|
|
8
8
|
const vite = typeof render === "object" ? {
|
|
@@ -46,5 +46,4 @@ function verbaly(options = {}) {
|
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { verbaly as default };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@verbaly/astro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.77.0",
|
|
4
4
|
"description": "Astro integration for Verbaly: write-in-source extraction for .astro files plus automatic per-locale static rendering.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"i18n",
|
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
"bugs": {
|
|
22
22
|
"url": "https://github.com/AronSoto/verbaly/issues"
|
|
23
23
|
},
|
|
24
|
+
"funding": {
|
|
25
|
+
"type": "github",
|
|
26
|
+
"url": "https://github.com/sponsors/AronSoto"
|
|
27
|
+
},
|
|
24
28
|
"type": "module",
|
|
25
29
|
"types": "./dist/index.d.ts",
|
|
26
30
|
"exports": {
|
|
@@ -41,15 +45,15 @@
|
|
|
41
45
|
"access": "public"
|
|
42
46
|
},
|
|
43
47
|
"dependencies": {
|
|
44
|
-
"@verbaly/compiler": "^0.
|
|
45
|
-
"@verbaly/vite": "^0.
|
|
48
|
+
"@verbaly/compiler": "^0.77.0",
|
|
49
|
+
"@verbaly/vite": "^0.77.0"
|
|
46
50
|
},
|
|
47
51
|
"peerDependencies": {
|
|
48
|
-
"verbaly": "^0.
|
|
52
|
+
"verbaly": "^0.77.0"
|
|
49
53
|
},
|
|
50
54
|
"devDependencies": {
|
|
51
|
-
"astro": "^7.4.
|
|
52
|
-
"verbaly": "^0.
|
|
55
|
+
"astro": "^7.4.4",
|
|
56
|
+
"verbaly": "^0.77.0"
|
|
53
57
|
},
|
|
54
58
|
"scripts": {
|
|
55
59
|
"build": "tsdown",
|