next-intlayer 5.7.7 → 5.8.0-canary.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
@@ -119,8 +119,8 @@ const clientComponentContent = {
119
119
  content: {
120
120
  myTranslatedContent: t({
121
121
  en: "Hello World",
122
- fr: "Bonjour le monde",
123
122
  es: "Hola Mundo",
123
+ fr: "Bonjour le monde",
124
124
  }),
125
125
  numberOfCar: enu({
126
126
  "<-1": "Less than minus one car",
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var format_exports = {};
20
+ __export(format_exports, {
21
+ useCompact: () => import_format.useCompact,
22
+ useCurrency: () => import_format.useCurrency,
23
+ useDate: () => import_format.useDate,
24
+ useList: () => import_format.useList,
25
+ useNumber: () => import_format.useNumber,
26
+ usePercentage: () => import_format.usePercentage,
27
+ useRelativeTime: () => import_format.useRelativeTime,
28
+ useUnit: () => import_format.useUnit
29
+ });
30
+ module.exports = __toCommonJS(format_exports);
31
+ var import_format = require("react-intlayer/format");
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ useCompact,
35
+ useCurrency,
36
+ useDate,
37
+ useList,
38
+ useNumber,
39
+ usePercentage,
40
+ useRelativeTime,
41
+ useUnit
42
+ });
43
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/client/format/index.ts"],"sourcesContent":["export {\n useCompact,\n useCurrency,\n useDate,\n useList,\n useNumber,\n usePercentage,\n useRelativeTime,\n useUnit,\n} from 'react-intlayer/format';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBASO;","names":[]}
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var format_exports = {};
20
+ __export(format_exports, {
21
+ useCompact: () => import_format.useCompact,
22
+ useCurrency: () => import_format.useCurrency,
23
+ useDate: () => import_format.useDate,
24
+ useList: () => import_format.useList,
25
+ useNumber: () => import_format.useNumber,
26
+ usePercentage: () => import_format.usePercentage,
27
+ useRelativeTime: () => import_format.useRelativeTime,
28
+ useUnit: () => import_format.useUnit
29
+ });
30
+ module.exports = __toCommonJS(format_exports);
31
+ var import_format = require("react-intlayer/server/format");
32
+ // Annotate the CommonJS export names for ESM import in node:
33
+ 0 && (module.exports = {
34
+ useCompact,
35
+ useCurrency,
36
+ useDate,
37
+ useList,
38
+ useNumber,
39
+ usePercentage,
40
+ useRelativeTime,
41
+ useUnit
42
+ });
43
+ //# sourceMappingURL=index.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/server/format/index.ts"],"sourcesContent":["export {\n useCompact,\n useCurrency,\n useDate,\n useList,\n useNumber,\n usePercentage,\n useRelativeTime,\n useUnit,\n} from 'react-intlayer/server/format';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBASO;","names":[]}
@@ -0,0 +1,21 @@
1
+ import {
2
+ useCompact,
3
+ useCurrency,
4
+ useDate,
5
+ useList,
6
+ useNumber,
7
+ usePercentage,
8
+ useRelativeTime,
9
+ useUnit
10
+ } from "react-intlayer/format";
11
+ export {
12
+ useCompact,
13
+ useCurrency,
14
+ useDate,
15
+ useList,
16
+ useNumber,
17
+ usePercentage,
18
+ useRelativeTime,
19
+ useUnit
20
+ };
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/client/format/index.ts"],"sourcesContent":["export {\n useCompact,\n useCurrency,\n useDate,\n useList,\n useNumber,\n usePercentage,\n useRelativeTime,\n useUnit,\n} from 'react-intlayer/format';\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
@@ -0,0 +1,21 @@
1
+ import {
2
+ useCompact,
3
+ useCurrency,
4
+ useDate,
5
+ useList,
6
+ useNumber,
7
+ usePercentage,
8
+ useRelativeTime,
9
+ useUnit
10
+ } from "react-intlayer/server/format";
11
+ export {
12
+ useCompact,
13
+ useCurrency,
14
+ useDate,
15
+ useList,
16
+ useNumber,
17
+ usePercentage,
18
+ useRelativeTime,
19
+ useUnit
20
+ };
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/server/format/index.ts"],"sourcesContent":["export {\n useCompact,\n useCurrency,\n useDate,\n useList,\n useNumber,\n usePercentage,\n useRelativeTime,\n useUnit,\n} from 'react-intlayer/server/format';\n"],"mappings":"AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":[]}
@@ -0,0 +1,2 @@
1
+ export { useCompact, useCurrency, useDate, useList, useNumber, usePercentage, useRelativeTime, useUnit, } from 'react-intlayer/format';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/client/format/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,OAAO,EACP,OAAO,EACP,SAAS,EACT,aAAa,EACb,eAAe,EACf,OAAO,GACR,MAAM,uBAAuB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { useCompact, useCurrency, useDate, useList, useNumber, usePercentage, useRelativeTime, useUnit, } from 'react-intlayer/server/format';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/server/format/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,WAAW,EACX,OAAO,EACP,OAAO,EACP,SAAS,EACT,aAAa,EACb,eAAe,EACf,OAAO,GACR,MAAM,8BAA8B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-intlayer",
3
- "version": "5.7.7",
3
+ "version": "5.8.0-canary.0",
4
4
  "private": false,
5
5
  "description": "Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.",
6
6
  "keywords": [
@@ -40,6 +40,11 @@
40
40
  "require": "./dist/cjs/index.cjs",
41
41
  "import": "./dist/esm/index.mjs"
42
42
  },
43
+ "./format": {
44
+ "types": "./dist/types/client/format/index.d.ts",
45
+ "require": "./dist/cjs/client/format/index.cjs",
46
+ "import": "./dist/esm/client/format/index.mjs"
47
+ },
43
48
  "./middleware": {
44
49
  "types": "./dist/types/middleware/index.d.ts",
45
50
  "require": "./dist/cjs/middleware/index.cjs",
@@ -50,6 +55,11 @@
50
55
  "require": "./dist/cjs/server/index.cjs",
51
56
  "import": "./dist/esm/server/index.mjs"
52
57
  },
58
+ "./server/format": {
59
+ "types": "./dist/types/server/format/index.d.ts",
60
+ "require": "./dist/cjs/server/format/index.cjs",
61
+ "import": "./dist/esm/server/format/index.mjs"
62
+ },
53
63
  "./package.json": "./package.json"
54
64
  },
55
65
  "main": "dist/cjs/index.cjs",
@@ -69,42 +79,42 @@
69
79
  "dependencies": {
70
80
  "deepmerge": "^4.3.1",
71
81
  "node-loader": "^2.1.0",
72
- "@intlayer/chokidar": "5.7.7",
73
- "@intlayer/config": "5.7.7",
74
- "@intlayer/core": "5.7.7",
75
- "react-intlayer": "5.7.7",
76
- "@intlayer/webpack": "5.7.7",
77
- "@intlayer/dictionaries-entry": "5.7.7"
82
+ "@intlayer/chokidar": "5.8.0-canary.0",
83
+ "react-intlayer": "5.8.0-canary.0",
84
+ "@intlayer/core": "5.8.0-canary.0",
85
+ "@intlayer/config": "5.8.0-canary.0",
86
+ "@intlayer/webpack": "5.8.0-canary.0",
87
+ "@intlayer/dictionaries-entry": "5.8.0-canary.0"
78
88
  },
79
89
  "devDependencies": {
80
- "@types/node": "^22.15.30",
90
+ "@types/node": "^24.2.1",
81
91
  "@types/react": ">=16.0.0",
82
92
  "@types/react-dom": ">=16.0.0",
83
93
  "@typescript-eslint/parser": "^8.33.1",
84
94
  "concurrently": "^9.1.2",
85
- "eslint": "^9.28.0",
95
+ "eslint": "^9.33.0",
86
96
  "prettier": "^3.5.3",
87
97
  "rimraf": "^6.0.1",
88
98
  "tsc-alias": "^1.8.16",
89
99
  "tsup": "^8.5.0",
90
- "typescript": "^5.8.3",
100
+ "typescript": "^5.9.2",
91
101
  "vitest": "^3.2.2",
92
- "@utils/ts-config": "1.0.4",
93
102
  "@utils/ts-config-types": "1.0.4",
94
- "@utils/tsup-config": "1.0.4",
95
103
  "@utils/eslint-config": "1.0.4",
96
- "intlayer": "5.7.7"
104
+ "@utils/ts-config": "1.0.4",
105
+ "@utils/tsup-config": "1.0.4",
106
+ "intlayer": "5.8.0-canary.0"
97
107
  },
98
108
  "peerDependencies": {
99
109
  "next": ">=14.0.0",
100
110
  "react": ">=16.0.0",
101
111
  "react-dom": ">=16.0.0",
102
- "intlayer": "5.7.7",
103
- "@intlayer/config": "5.7.7",
104
- "@intlayer/core": "5.7.7",
105
- "@intlayer/webpack": "5.7.7",
106
- "react-intlayer": "5.7.7",
107
- "@intlayer/dictionaries-entry": "5.7.7"
112
+ "@intlayer/config": "5.8.0-canary.0",
113
+ "@intlayer/dictionaries-entry": "5.8.0-canary.0",
114
+ "@intlayer/core": "5.8.0-canary.0",
115
+ "react-intlayer": "5.8.0-canary.0",
116
+ "@intlayer/webpack": "5.8.0-canary.0",
117
+ "intlayer": "5.8.0-canary.0"
108
118
  },
109
119
  "engines": {
110
120
  "node": ">=14.18"