react-intlayer 5.5.6 → 5.5.7

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.
@@ -34,7 +34,7 @@ module.exports = __toCommonJS(useLoadDynamic_exports);
34
34
  var import_react = __toESM(require("react"));
35
35
  const useLoadDynamic = (_key, promise) => {
36
36
  const cachedPromise = import_react.default.cache(async () => await promise)();
37
- const dictionary = (0, import_react.use)(cachedPromise);
37
+ const dictionary = import_react.default.use(cachedPromise);
38
38
  return dictionary;
39
39
  };
40
40
  // Annotate the CommonJS export names for ESM import in node:
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/server/useLoadDynamic.ts"],"sourcesContent":["import react, { use } from 'react';\n\nexport const useLoadDynamic = <T>(_key: string, promise: Promise<T>): T => {\n /** @ts-ignore remove error Property 'cache' does not exist on type 'typeof React'. */\n const cachedPromise = react.cache(async () => await promise)();\n\n const dictionary = use(cachedPromise);\n\n return dictionary;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAA2B;AAEpB,MAAM,iBAAiB,CAAI,MAAc,YAA2B;AAEzE,QAAM,gBAAgB,aAAAA,QAAM,MAAM,YAAY,MAAM,OAAO,EAAE;AAE7D,QAAM,iBAAa,kBAAI,aAAa;AAEpC,SAAO;AACT;","names":["react"]}
1
+ {"version":3,"sources":["../../../src/server/useLoadDynamic.ts"],"sourcesContent":["import react from 'react';\n\nexport const useLoadDynamic = <T>(_key: string, promise: Promise<T>): T => {\n /** @ts-ignore remove error Property 'cache' does not exist on type 'typeof React'. */\n const cachedPromise = react.cache(async () => await promise)();\n\n /** @ts-ignore remove error Property 'use' does not exist on type 'typeof React'. */\n const dictionary = react.use(cachedPromise);\n\n return dictionary;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,mBAAkB;AAEX,MAAM,iBAAiB,CAAI,MAAc,YAA2B;AAEzE,QAAM,gBAAgB,aAAAA,QAAM,MAAM,YAAY,MAAM,OAAO,EAAE;AAG7D,QAAM,aAAa,aAAAA,QAAM,IAAI,aAAa;AAE1C,SAAO;AACT;","names":["react"]}
@@ -1,7 +1,7 @@
1
- import react, { use } from "react";
1
+ import react from "react";
2
2
  const useLoadDynamic = (_key, promise) => {
3
3
  const cachedPromise = react.cache(async () => await promise)();
4
- const dictionary = use(cachedPromise);
4
+ const dictionary = react.use(cachedPromise);
5
5
  return dictionary;
6
6
  };
7
7
  export {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/server/useLoadDynamic.ts"],"sourcesContent":["import react, { use } from 'react';\n\nexport const useLoadDynamic = <T>(_key: string, promise: Promise<T>): T => {\n /** @ts-ignore remove error Property 'cache' does not exist on type 'typeof React'. */\n const cachedPromise = react.cache(async () => await promise)();\n\n const dictionary = use(cachedPromise);\n\n return dictionary;\n};\n"],"mappings":"AAAA,OAAO,SAAS,WAAW;AAEpB,MAAM,iBAAiB,CAAI,MAAc,YAA2B;AAEzE,QAAM,gBAAgB,MAAM,MAAM,YAAY,MAAM,OAAO,EAAE;AAE7D,QAAM,aAAa,IAAI,aAAa;AAEpC,SAAO;AACT;","names":[]}
1
+ {"version":3,"sources":["../../../src/server/useLoadDynamic.ts"],"sourcesContent":["import react from 'react';\n\nexport const useLoadDynamic = <T>(_key: string, promise: Promise<T>): T => {\n /** @ts-ignore remove error Property 'cache' does not exist on type 'typeof React'. */\n const cachedPromise = react.cache(async () => await promise)();\n\n /** @ts-ignore remove error Property 'use' does not exist on type 'typeof React'. */\n const dictionary = react.use(cachedPromise);\n\n return dictionary;\n};\n"],"mappings":"AAAA,OAAO,WAAW;AAEX,MAAM,iBAAiB,CAAI,MAAc,YAA2B;AAEzE,QAAM,gBAAgB,MAAM,MAAM,YAAY,MAAM,OAAO,EAAE;AAG7D,QAAM,aAAa,MAAM,IAAI,aAAa;AAE1C,SAAO;AACT;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"useLoadDynamic.d.ts","sourceRoot":"","sources":["../../../src/server/useLoadDynamic.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,MAAM,MAAM,EAAE,SAAS,OAAO,CAAC,CAAC,CAAC,KAAG,CAOrE,CAAC"}
1
+ {"version":3,"file":"useLoadDynamic.d.ts","sourceRoot":"","sources":["../../../src/server/useLoadDynamic.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,CAAC,EAAE,MAAM,MAAM,EAAE,SAAS,OAAO,CAAC,CAAC,CAAC,KAAG,CAQrE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-intlayer",
3
- "version": "5.5.6",
3
+ "version": "5.5.7",
4
4
  "private": false,
5
5
  "description": "Easily internationalize i18n your React applications with type-safe multilingual content management.",
6
6
  "keywords": [
@@ -69,11 +69,11 @@
69
69
  ],
70
70
  "dependencies": {
71
71
  "js-cookie": "^3.0.5",
72
- "@intlayer/api": "5.5.6",
73
- "@intlayer/core": "5.5.6",
74
- "@intlayer/editor-react": "5.5.6",
75
- "@intlayer/config": "5.5.6",
76
- "@intlayer/dictionaries-entry": "5.5.6"
72
+ "@intlayer/api": "5.5.7",
73
+ "@intlayer/core": "5.5.7",
74
+ "@intlayer/dictionaries-entry": "5.5.7",
75
+ "@intlayer/config": "5.5.7",
76
+ "@intlayer/editor-react": "5.5.7"
77
77
  },
78
78
  "devDependencies": {
79
79
  "@craco/types": "^7.1.0",
@@ -90,20 +90,20 @@
90
90
  "tsup": "^8.4.0",
91
91
  "typescript": "^5.8.2",
92
92
  "@utils/eslint-config": "1.0.4",
93
- "@utils/tsup-config": "1.0.4",
94
93
  "@utils/ts-config": "1.0.4",
95
94
  "@utils/ts-config-types": "1.0.4",
96
- "@intlayer/backend": "5.5.6"
95
+ "@intlayer/backend": "5.5.7",
96
+ "@utils/tsup-config": "1.0.4"
97
97
  },
98
98
  "peerDependencies": {
99
99
  "react": ">=16.0.0",
100
100
  "react-dom": ">=16.0.0",
101
- "@intlayer/config": "5.5.6",
102
- "@intlayer/core": "5.5.6",
103
- "@intlayer/api": "5.5.6",
104
- "@intlayer/dictionaries-entry": "5.5.6",
105
- "intlayer": "5.5.6",
106
- "@intlayer/editor-react": "5.5.6"
101
+ "@intlayer/config": "5.5.7",
102
+ "@intlayer/core": "5.5.7",
103
+ "@intlayer/api": "5.5.7",
104
+ "@intlayer/dictionaries-entry": "5.5.7",
105
+ "@intlayer/editor-react": "5.5.7",
106
+ "intlayer": "5.5.7"
107
107
  },
108
108
  "engines": {
109
109
  "node": ">=14.18"