fastify-intlayer 9.4.3 → 9.5.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 CHANGED
@@ -69,8 +69,6 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
69
69
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/interoperability.png?raw=true" alt="Feature" width="700"> | **Interoperability**<br><br>Allow interoperability with react-i18next, next-i18next, next-intl, react-intl, vue-i18n. <br><br> - [Intlayer and react-intl](https://intlayer.org/blog/intlayer-with-react-intl) <br> - [Intlayer and next-intl](https://intlayer.org/blog/intlayer-with-next-intl) <br> - [Intlayer and next-i18next](https://intlayer.org/blog/intlayer-with-next-i18next) <br> - [Intlayer and vue-i18n](https://intlayer.org/blog/intlayer-with-vue-i18n) <br> - [Intlayer compat adapters](https://intlayer.org/doc/compatibility) |
70
70
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/benchmark.png?raw=true" alt="Feature" width="700"> | **Performances & Benchmark**<br><br>Uses advanced tree-shaking and dynamic loading to boost performances and keep the solution as light as possible. <br><br> - [Performances & Benchmark](https://intlayer.org/doc/benchmark) |
71
71
 
72
- ---
73
-
74
72
  ## 📦 Installation
75
73
 
76
74
  Start your journey with Intlayer today and experience a smoother, more powerful approach to internationalization.
@@ -16,7 +16,7 @@ declare module 'fastify' {
16
16
  };
17
17
  }
18
18
  }
19
- declare const intlayer: FastifyPluginAsync;
19
+ export declare const intlayer: FastifyPluginAsync;
20
20
  /**
21
21
  * Global translation function that retrieves content for the current locale in Fastify.
22
22
  *
@@ -40,9 +40,8 @@ declare const intlayer: FastifyPluginAsync;
40
40
  * });
41
41
  * ```
42
42
  */
43
- declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
44
- declare const getIntlayer: typeof getIntlayer$1;
45
- declare const getDictionary: typeof getDictionary$1;
43
+ export declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
44
+ export declare const getIntlayer: typeof getIntlayer$1;
45
+ export declare const getDictionary: typeof getDictionary$1;
46
46
  //#endregion
47
- export { getDictionary, getIntlayer, intlayer, t };
48
47
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;YAiBY;IACR;MACE,QAAQ;MACR,eAAe;MACf,iBAAiB;MACjB,kBAAkB;MAClB,IAAI,kBACF,SAAS,oBAAoB,aAC7B,SAAS,WACN;MACL,oBAAoB;MACpB,sBAAsB;;;;cAqKf,UAGI;;;;;;;;;;;;;;;;;;;;;;;;cAyBJ,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;cAsBU,oBAAoB;cAsBpB,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;;YAiBY;IACR;MACE,QAAQ;MACR,eAAe;MACf,iBAAiB;MACjB,kBAAkB;MAClB,IAAI,kBACF,SAAS,oBAAoB,aAC7B,SAAS,WACN;MACL,oBAAoB;MACpB,sBAAsB;;;;qBAqKf,UAGI;;;;;;;;;;;;;;;;;;;;;;;;qBAyBJ,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;qBAsBU,oBAAoB;qBAsBpB,sBAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fastify-intlayer",
3
- "version": "9.4.3",
3
+ "version": "9.5.0",
4
4
  "private": false,
5
5
  "description": "Manage internationalization i18n in a simple way for Fastify applications.",
6
6
  "keywords": [
@@ -75,24 +75,24 @@
75
75
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
76
76
  },
77
77
  "dependencies": {
78
- "@intlayer/config": "9.4.3",
79
- "@intlayer/core": "9.4.3",
80
- "@intlayer/engine": "9.4.3",
81
- "@intlayer/types": "9.4.3",
78
+ "@intlayer/config": "9.5.0",
79
+ "@intlayer/core": "9.5.0",
80
+ "@intlayer/engine": "9.5.0",
81
+ "@intlayer/types": "9.5.0",
82
82
  "cls-hooked": "4.2.2",
83
83
  "fastify-plugin": "6.0.0"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@types/cls-hooked": "4.3.9",
87
- "@types/node": "26.4.1",
87
+ "@types/node": "26.5.0",
88
88
  "@utils/ts-config": "1.0.4",
89
89
  "@utils/ts-config-types": "1.0.4",
90
90
  "@utils/tsdown-config": "1.0.4",
91
- "fastify": "5.12.1",
91
+ "fastify": "5.12.3",
92
92
  "rimraf": "6.1.3",
93
- "tsdown": "0.22.14",
93
+ "tsdown": "0.23.0",
94
94
  "typescript": "7.0.2",
95
- "vitest": "4.1.11"
95
+ "vitest": "5.0.0"
96
96
  },
97
97
  "engines": {
98
98
  "node": ">=14.18"