express-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.
@@ -3,7 +3,7 @@ import { Locale } from "@intlayer/types/allLocales";
3
3
  import { StrictModeLocaleMap } from "@intlayer/types/module_augmentation";
4
4
  import { NextFunction, Request, RequestHandler, Response } from "express";
5
5
  //#region src/index.d.ts
6
- declare const translateFunction: (_req: Request, res: Response, _next?: NextFunction) => <T extends string>(content: StrictModeLocaleMap<T> | string, locale?: Locale) => T;
6
+ export declare const translateFunction: (_req: Request, res: Response, _next?: NextFunction) => <T extends string>(content: StrictModeLocaleMap<T> | string, locale?: Locale) => T;
7
7
  /**
8
8
  * Express middleware that detects the user's locale and populates `res.locals` with Intlayer data.
9
9
  *
@@ -23,7 +23,7 @@ declare const translateFunction: (_req: Request, res: Response, _next?: NextFunc
23
23
  * app.use(intlayer());
24
24
  * ```
25
25
  */
26
- declare const intlayer: () => RequestHandler;
26
+ export declare const intlayer: () => RequestHandler;
27
27
  /**
28
28
  * Translation function to retrieve content for the current locale.
29
29
  *
@@ -46,9 +46,8 @@ declare const intlayer: () => RequestHandler;
46
46
  * });
47
47
  * ```
48
48
  */
49
- declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
50
- declare const getIntlayer: typeof getIntlayer$1;
51
- declare const getDictionary: typeof getDictionary$1;
49
+ export declare const t: <Content = string>(content: StrictModeLocaleMap<Content>, locale?: Locale) => Content;
50
+ export declare const getIntlayer: typeof getIntlayer$1;
51
+ export declare const getDictionary: typeof getDictionary$1;
52
52
  //#endregion
53
- export { getDictionary, getIntlayer, intlayer, t, translateFunction };
54
53
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;cAqCa,oBAAiB,MACrB,SAAO,KAAO,UAAQ,QAAU,kBACtC,kBAAgB,SACN,oBAAoB,aAAW,SAC/B,WACR;;;;;;;;;;;;;;;;;;;;cAsDQ,gBAAe;;;;;;;;;;;;;;;;;;;;;;;cA6Ef,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;cAyBU,oBAAoB;cAsBpB,sBAAsB"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../../src/index.ts"],"mappings":";;;;;qBAqCa,oBAAiB,MACrB,SAAO,KAAO,UAAQ,QAAU,kBACtC,kBAAgB,SACN,oBAAoB,aAAW,SAC/B,WACR;;;;;;;;;;;;;;;;;;;;qBAsDQ,gBAAe;;;;;;;;;;;;;;;;;;;;;;;qBA6Ef,IAAK,kBAAgB,SACvB,oBAAoB,UAAQ,SAC5B,WACR;qBAyBU,oBAAoB;qBAsBpB,sBAAsB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "express-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 express application.",
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
  },
84
84
  "devDependencies": {
85
85
  "@types/cls-hooked": "4.3.9",
86
86
  "@types/express": "5.0.6",
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
91
  "express": "5.2.1",
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"