@intlayer/config 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.
Files changed (159) hide show
  1. package/README.md +0 -2
  2. package/dist/cjs/callers/compat/lingui.cjs +18 -28
  3. package/dist/cjs/callers/compat/lingui.cjs.map +1 -1
  4. package/dist/cjs/callers/compat/reactI18next.cjs +1 -0
  5. package/dist/cjs/callers/compat/reactI18next.cjs.map +1 -1
  6. package/dist/cjs/callers/compat/reactIntl.cjs +26 -15
  7. package/dist/cjs/callers/compat/reactIntl.cjs.map +1 -1
  8. package/dist/cjs/callers/index.cjs +1 -0
  9. package/dist/cjs/callers/index.cjs.map +1 -1
  10. package/dist/cjs/callers/transform.cjs +16 -9
  11. package/dist/cjs/callers/transform.cjs.map +1 -1
  12. package/dist/esm/bundle/index.mjs +1 -1
  13. package/dist/esm/callers/compat/lingui.mjs +18 -28
  14. package/dist/esm/callers/compat/lingui.mjs.map +1 -1
  15. package/dist/esm/callers/compat/reactI18next.mjs +1 -0
  16. package/dist/esm/callers/compat/reactI18next.mjs.map +1 -1
  17. package/dist/esm/callers/compat/reactIntl.mjs +26 -15
  18. package/dist/esm/callers/compat/reactIntl.mjs.map +1 -1
  19. package/dist/esm/callers/index.mjs +2 -2
  20. package/dist/esm/callers/index.mjs.map +1 -1
  21. package/dist/esm/callers/transform.mjs +16 -10
  22. package/dist/esm/callers/transform.mjs.map +1 -1
  23. package/dist/types/built.d.ts +13 -14
  24. package/dist/types/built.d.ts.map +1 -1
  25. package/dist/types/bundle/index.d.ts +3 -4
  26. package/dist/types/bundle/index.d.ts.map +1 -1
  27. package/dist/types/bundle/logBundle.d.ts +1 -2
  28. package/dist/types/bundle/logBundle.d.ts.map +1 -1
  29. package/dist/types/callers/base.d.ts +1 -2
  30. package/dist/types/callers/base.d.ts.map +1 -1
  31. package/dist/types/callers/compat/i18next.d.ts +1 -2
  32. package/dist/types/callers/compat/i18next.d.ts.map +1 -1
  33. package/dist/types/callers/compat/lingui.d.ts +1 -2
  34. package/dist/types/callers/compat/lingui.d.ts.map +1 -1
  35. package/dist/types/callers/compat/nextIntl.d.ts +1 -2
  36. package/dist/types/callers/compat/nextIntl.d.ts.map +1 -1
  37. package/dist/types/callers/compat/reactI18next.d.ts +1 -2
  38. package/dist/types/callers/compat/reactI18next.d.ts.map +1 -1
  39. package/dist/types/callers/compat/reactIntl.d.ts +1 -2
  40. package/dist/types/callers/compat/reactIntl.d.ts.map +1 -1
  41. package/dist/types/callers/compat/useIntl.d.ts +1 -2
  42. package/dist/types/callers/compat/useIntl.d.ts.map +1 -1
  43. package/dist/types/callers/compat/vueI18n.d.ts +1 -2
  44. package/dist/types/callers/compat/vueI18n.d.ts.map +1 -1
  45. package/dist/types/callers/index.d.ts +7 -7
  46. package/dist/types/callers/index.d.ts.map +1 -1
  47. package/dist/types/callers/transform.d.ts +17 -12
  48. package/dist/types/callers/transform.d.ts.map +1 -1
  49. package/dist/types/callers/types.d.ts +9 -4
  50. package/dist/types/callers/types.d.ts.map +1 -1
  51. package/dist/types/colors.d.ts +15 -15
  52. package/dist/types/colors.d.ts.map +1 -1
  53. package/dist/types/configFile/buildBrowserConfiguration.d.ts +8 -9
  54. package/dist/types/configFile/buildBrowserConfiguration.d.ts.map +1 -1
  55. package/dist/types/configFile/buildConfigurationFields.d.ts +2 -2
  56. package/dist/types/configFile/buildConfigurationFields.d.ts.map +1 -1
  57. package/dist/types/configFile/configurationSchema.d.ts +18 -19
  58. package/dist/types/configFile/configurationSchema.d.ts.map +1 -1
  59. package/dist/types/configFile/getConfiguration.d.ts +4 -5
  60. package/dist/types/configFile/getConfiguration.d.ts.map +1 -1
  61. package/dist/types/configFile/loadConfigurationFile.d.ts +1 -2
  62. package/dist/types/configFile/loadConfigurationFile.d.ts.map +1 -1
  63. package/dist/types/configFile/searchConfigurationFile.d.ts +2 -3
  64. package/dist/types/configFile/searchConfigurationFile.d.ts.map +1 -1
  65. package/dist/types/defaultValues/analytics.d.ts +3 -4
  66. package/dist/types/defaultValues/analytics.d.ts.map +1 -1
  67. package/dist/types/defaultValues/build.d.ts +10 -11
  68. package/dist/types/defaultValues/build.d.ts.map +1 -1
  69. package/dist/types/defaultValues/compiler.d.ts +4 -5
  70. package/dist/types/defaultValues/compiler.d.ts.map +1 -1
  71. package/dist/types/defaultValues/content.d.ts +7 -8
  72. package/dist/types/defaultValues/content.d.ts.map +1 -1
  73. package/dist/types/defaultValues/dictionary.d.ts +8 -9
  74. package/dist/types/defaultValues/dictionary.d.ts.map +1 -1
  75. package/dist/types/defaultValues/editor.d.ts +9 -10
  76. package/dist/types/defaultValues/editor.d.ts.map +1 -1
  77. package/dist/types/defaultValues/internationalization.d.ts +4 -5
  78. package/dist/types/defaultValues/internationalization.d.ts.map +1 -1
  79. package/dist/types/defaultValues/log.d.ts +2 -3
  80. package/dist/types/defaultValues/log.d.ts.map +1 -1
  81. package/dist/types/defaultValues/routing.d.ts +8 -9
  82. package/dist/types/defaultValues/routing.d.ts.map +1 -1
  83. package/dist/types/defaultValues/system.d.ts +12 -13
  84. package/dist/types/defaultValues/system.d.ts.map +1 -1
  85. package/dist/types/dictionaryPreload.d.ts +7 -8
  86. package/dist/types/dictionaryPreload.d.ts.map +1 -1
  87. package/dist/types/envVars/envVars.d.ts +4 -5
  88. package/dist/types/envVars/envVars.d.ts.map +1 -1
  89. package/dist/types/extract/constants.d.ts +1 -2
  90. package/dist/types/extract/constants.d.ts.map +1 -1
  91. package/dist/types/extract/shouldExtract.d.ts +1 -2
  92. package/dist/types/extract/shouldExtract.d.ts.map +1 -1
  93. package/dist/types/loadEnvFile.d.ts +3 -4
  94. package/dist/types/loadEnvFile.d.ts.map +1 -1
  95. package/dist/types/loadExternalFile/bundleFile.d.ts +4 -5
  96. package/dist/types/loadExternalFile/bundleFile.d.ts.map +1 -1
  97. package/dist/types/loadExternalFile/bundleJSFile.d.ts +1 -2
  98. package/dist/types/loadExternalFile/bundleJSFile.d.ts.map +1 -1
  99. package/dist/types/loadExternalFile/loadExternalFile.d.ts +3 -4
  100. package/dist/types/loadExternalFile/loadExternalFile.d.ts.map +1 -1
  101. package/dist/types/loadExternalFile/parseFileContent.d.ts +3 -4
  102. package/dist/types/loadExternalFile/parseFileContent.d.ts.map +1 -1
  103. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts +4 -5
  104. package/dist/types/loadExternalFile/transpileTSToCJS.d.ts.map +1 -1
  105. package/dist/types/logger.d.ts +19 -20
  106. package/dist/types/logger.d.ts.map +1 -1
  107. package/dist/types/secrets.browser.d.ts +1 -2
  108. package/dist/types/secrets.browser.d.ts.map +1 -1
  109. package/dist/types/secrets.d.ts +1 -2
  110. package/dist/types/secrets.d.ts.map +1 -1
  111. package/dist/types/utils/ESMxCJSHelpers.d.ts +3 -4
  112. package/dist/types/utils/ESMxCJSHelpers.d.ts.map +1 -1
  113. package/dist/types/utils/alias.d.ts +2 -3
  114. package/dist/types/utils/alias.d.ts.map +1 -1
  115. package/dist/types/utils/builtConfigKeys.d.ts +2 -3
  116. package/dist/types/utils/builtConfigKeys.d.ts.map +1 -1
  117. package/dist/types/utils/cacheDisk.d.ts +2 -3
  118. package/dist/types/utils/cacheDisk.d.ts.map +1 -1
  119. package/dist/types/utils/cacheMemory.d.ts +8 -9
  120. package/dist/types/utils/cacheMemory.d.ts.map +1 -1
  121. package/dist/types/utils/clearModuleCache.d.ts +1 -2
  122. package/dist/types/utils/clearModuleCache.d.ts.map +1 -1
  123. package/dist/types/utils/compareVersions.d.ts +1 -2
  124. package/dist/types/utils/compareVersions.d.ts.map +1 -1
  125. package/dist/types/utils/extractErrorMessage.d.ts +1 -2
  126. package/dist/types/utils/extractErrorMessage.d.ts.map +1 -1
  127. package/dist/types/utils/getDictionarySelectorUsage.d.ts +1 -2
  128. package/dist/types/utils/getDictionarySelectorUsage.d.ts.map +1 -1
  129. package/dist/types/utils/getExtension.d.ts +1 -2
  130. package/dist/types/utils/getExtension.d.ts.map +1 -1
  131. package/dist/types/utils/getPackageJsonPath.d.ts +1 -2
  132. package/dist/types/utils/getPackageJsonPath.d.ts.map +1 -1
  133. package/dist/types/utils/getStorageAttributes.d.ts +1 -2
  134. package/dist/types/utils/getStorageAttributes.d.ts.map +1 -1
  135. package/dist/types/utils/getUsedNodeTypes.d.ts +5 -6
  136. package/dist/types/utils/getUsedNodeTypes.d.ts.map +1 -1
  137. package/dist/types/utils/isPackageInstalled.d.ts +1 -2
  138. package/dist/types/utils/isPackageInstalled.d.ts.map +1 -1
  139. package/dist/types/utils/logStack.d.ts +1 -2
  140. package/dist/types/utils/logStack.d.ts.map +1 -1
  141. package/dist/types/utils/normalizePath.d.ts +1 -2
  142. package/dist/types/utils/normalizePath.d.ts.map +1 -1
  143. package/dist/types/utils/parseFilePathPattern.d.ts +2 -3
  144. package/dist/types/utils/parseFilePathPattern.d.ts.map +1 -1
  145. package/dist/types/utils/pathSecurity.d.ts +1 -2
  146. package/dist/types/utils/pathSecurity.d.ts.map +1 -1
  147. package/dist/types/utils/retryManager.d.ts +2 -3
  148. package/dist/types/utils/retryManager.d.ts.map +1 -1
  149. package/dist/types/utils/setIntlayerIdentifier.d.ts +2 -3
  150. package/dist/types/utils/setIntlayerIdentifier.d.ts.map +1 -1
  151. package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts +1 -2
  152. package/dist/types/utils/stringFormatter/camelCaseToKebabCase.d.ts.map +1 -1
  153. package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts +1 -2
  154. package/dist/types/utils/stringFormatter/camelCaseToSentence.d.ts.map +1 -1
  155. package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts +1 -2
  156. package/dist/types/utils/stringFormatter/kebabCaseToCamelCase.d.ts.map +1 -1
  157. package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts +1 -2
  158. package/dist/types/utils/stringFormatter/toLowerCamelCase.d.ts.map +1 -1
  159. package/package.json +5 -5
@@ -4,8 +4,7 @@ import { FilePathPattern, FilePathPatternContext } from "@intlayer/types/filePat
4
4
  * Parses a FilePathPattern configuration string or function to a final string path.
5
5
  * Resolves context variables like `{{locale}}`, `{{key}}`, `{{fileName}}`, `{{extension}}`.
6
6
  */
7
- declare const parseFilePathPattern: (pattern: FilePathPattern, context: FilePathPatternContext) => Promise<string>;
8
- declare const parseStringPattern: (pattern: string, context: FilePathPatternContext) => string;
7
+ export declare const parseFilePathPattern: (pattern: FilePathPattern, context: FilePathPatternContext) => Promise<string>;
8
+ export declare const parseStringPattern: (pattern: string, context: FilePathPatternContext) => string;
9
9
  //#endregion
10
- export { parseFilePathPattern, parseStringPattern };
11
10
  //# sourceMappingURL=parseFilePathPattern.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parseFilePathPattern.d.ts","names":[],"sources":["../../../src/utils/parseFilePathPattern.ts"],"mappings":";;;;;;cASa,uBAAoB,SACtB,iBAAe,SACf,2BACR;cAuBU,qBAAkB,iBACd,SACN"}
1
+ {"version":3,"file":"parseFilePathPattern.d.ts","names":[],"sources":["../../../src/utils/parseFilePathPattern.ts"],"mappings":";;;;;;qBASa,uBAAoB,SACtB,iBAAe,SACf,2BACR;qBAuBU,qBAAkB,iBACd,SACN"}
@@ -5,7 +5,6 @@
5
5
  * input (e.g. dictionary keys, filePath fields from dictionary data) to prevent
6
6
  * path-traversal attacks.
7
7
  */
8
- declare const assertPathWithin: (resolvedPath: string, baseDir: string) => void;
8
+ export declare const assertPathWithin: (resolvedPath: string, baseDir: string) => void;
9
9
  //#endregion
10
- export { assertPathWithin };
11
10
  //# sourceMappingURL=pathSecurity.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pathSecurity.d.ts","names":[],"sources":["../../../src/utils/pathSecurity.ts"],"mappings":";;;;;;;cAQa,mBAAgB,sBACP"}
1
+ {"version":3,"file":"pathSecurity.d.ts","names":[],"sources":["../../../src/utils/pathSecurity.ts"],"mappings":";;;;;;;qBAQa,mBAAgB,sBACP"}
@@ -1,5 +1,5 @@
1
1
  //#region src/utils/retryManager.d.ts
2
- type RetryManagerOptions = {
2
+ export type RetryManagerOptions = {
3
3
  /** maximum number of retries before giving up */
4
4
  maxRetry?: number;
5
5
  /** delay between attempts, in milliseconds */
@@ -30,7 +30,6 @@ type RetryManagerOptions = {
30
30
  * @param options { maxRetry, delay }
31
31
  * @returns A new function with the same signature as `fn`
32
32
  */
33
- declare const retryManager: <Args extends any[], R>(fn: (...args: Args) => Promise<R>, { maxRetry, delay, shouldRetry, onError, onMaxTryReached }?: RetryManagerOptions) => ((...args: Args) => Promise<R>);
33
+ export declare const retryManager: <Args extends any[], R>(fn: (...args: Args) => Promise<R>, { maxRetry, delay, shouldRetry, onError, onMaxTryReached }?: RetryManagerOptions) => ((...args: Args) => Promise<R>);
34
34
  //#endregion
35
- export { RetryManagerOptions, retryManager };
36
35
  //# sourceMappingURL=retryManager.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"retryManager.d.ts","names":[],"sources":["../../../src/utils/retryManager.ts"],"mappings":";KAGY;;EAEV;;EAEA;;;;;;EAMA,eAAe;;EAEf,WAAW;IACT;IACA;IACA;;;EAGF,mBAAmB;IACjB;IACA;IACA;;;;;;;;;;cAcS,eACV,oBAAoB,GAAC,QACZ,MAAM,SAAS,QAAQ,MAAE,UAAA,OAAA,aAAA,SAAA,oBAO9B,6BACG,MAAM,SAAS,QAAQ"}
1
+ {"version":3,"file":"retryManager.d.ts","names":[],"sources":["../../../src/utils/retryManager.ts"],"mappings":";YAGY;;EAEV;;EAEA;;;;;;EAMA,eAAe;;EAEf,WAAW;IACT;IACA;IACA;;;EAGF,mBAAmB;IACjB;IACA;IACA;;;;;;;;;;qBAcS,eACV,oBAAoB,GAAC,QACZ,MAAM,SAAS,QAAQ,MAAE,UAAA,OAAA,aAAA,SAAA,oBAO9B,6BACG,MAAM,SAAS,QAAQ"}
@@ -2,14 +2,13 @@
2
2
  type Meta = {
3
3
  enabled: true;
4
4
  };
5
- type WindowsWithIntlayer = typeof window & {
5
+ export type WindowsWithIntlayer = typeof window & {
6
6
  intlayer?: Meta;
7
7
  };
8
8
  /**
9
9
  * Sets the version of Intlayer in the window object.
10
10
  * This is used for Intlayer detection in the browser.
11
11
  */
12
- declare const setIntlayerIdentifier: () => void;
12
+ export declare const setIntlayerIdentifier: () => void;
13
13
  //#endregion
14
- export { WindowsWithIntlayer, setIntlayerIdentifier };
15
14
  //# sourceMappingURL=setIntlayerIdentifier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"setIntlayerIdentifier.d.ts","names":[],"sources":["../../../src/utils/setIntlayerIdentifier.ts"],"mappings":";KAAK;EACH;;KAGU,6BAA6B;EACvC,WAAW;;;;;;cAOA"}
1
+ {"version":3,"file":"setIntlayerIdentifier.d.ts","names":[],"sources":["../../../src/utils/setIntlayerIdentifier.ts"],"mappings":";KAAK;EACH;;YAGU,6BAA6B;EACvC,WAAW;;;;;;qBAOA"}
@@ -3,7 +3,6 @@
3
3
  * Convert a string to kebab-case
4
4
  * e.g. "MyNewComponent" => "my-new-component"
5
5
  */
6
- declare const camelCaseToKebabCase: (str: string) => string;
6
+ export declare const camelCaseToKebabCase: (str: string) => string;
7
7
  //#endregion
8
- export { camelCaseToKebabCase };
9
8
  //# sourceMappingURL=camelCaseToKebabCase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"camelCaseToKebabCase.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/camelCaseToKebabCase.ts"],"mappings":";;;;;cAIa,uBAAoB"}
1
+ {"version":3,"file":"camelCaseToKebabCase.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/camelCaseToKebabCase.ts"],"mappings":";;;;;qBAIa,uBAAoB"}
@@ -3,7 +3,6 @@
3
3
  * Convert a string to sentence case
4
4
  * e.g. 'my-new-component' → 'My new component'
5
5
  */
6
- declare const camelCaseToSentence: (value: string) => string;
6
+ export declare const camelCaseToSentence: (value: string) => string;
7
7
  //#endregion
8
- export { camelCaseToSentence };
9
8
  //# sourceMappingURL=camelCaseToSentence.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"camelCaseToSentence.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/camelCaseToSentence.ts"],"mappings":";;;;;cAIa,sBAAmB"}
1
+ {"version":3,"file":"camelCaseToSentence.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/camelCaseToSentence.ts"],"mappings":";;;;;qBAIa,sBAAmB"}
@@ -1,5 +1,4 @@
1
1
  //#region src/utils/stringFormatter/kebabCaseToCamelCase.d.ts
2
- declare const kebabCaseToCamelCase: (name: string) => string;
2
+ export declare const kebabCaseToCamelCase: (name: string) => string;
3
3
  //#endregion
4
- export { kebabCaseToCamelCase };
5
4
  //# sourceMappingURL=kebabCaseToCamelCase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"kebabCaseToCamelCase.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/kebabCaseToCamelCase.ts"],"mappings":";cAAa,uBAAoB"}
1
+ {"version":3,"file":"kebabCaseToCamelCase.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/kebabCaseToCamelCase.ts"],"mappings":";qBAAa,uBAAoB"}
@@ -4,7 +4,6 @@
4
4
  * e.g. "MyComponent" => "myComponent"
5
5
  * e.g. "auth-middleware" => "authMiddleware"
6
6
  */
7
- declare const toLowerCamelCase: (str: string) => string;
7
+ export declare const toLowerCamelCase: (str: string) => string;
8
8
  //#endregion
9
- export { toLowerCamelCase };
10
9
  //# sourceMappingURL=toLowerCamelCase.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"toLowerCamelCase.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/toLowerCamelCase.ts"],"mappings":";;;;;;cAKa,mBAAgB"}
1
+ {"version":3,"file":"toLowerCamelCase.d.ts","names":[],"sources":["../../../../src/utils/stringFormatter/toLowerCamelCase.ts"],"mappings":";;;;;;qBAKa,mBAAgB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/config",
3
- "version": "9.4.3",
3
+ "version": "9.5.0",
4
4
  "private": false,
5
5
  "description": "Retrieve Intlayer configurations and manage environment variables for both server-side and client-side environments.",
6
6
  "keywords": [
@@ -189,7 +189,7 @@
189
189
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
190
190
  },
191
191
  "dependencies": {
192
- "@intlayer/types": "9.4.3",
192
+ "@intlayer/types": "9.5.0",
193
193
  "defu": "6.1.7",
194
194
  "dotenv": "17.4.2",
195
195
  "esbuild": "0.28.2",
@@ -197,14 +197,14 @@
197
197
  "zod": "4.5.4"
198
198
  },
199
199
  "devDependencies": {
200
- "@types/node": "26.4.1",
200
+ "@types/node": "26.5.0",
201
201
  "@utils/ts-config": "1.0.4",
202
202
  "@utils/ts-config-types": "1.0.4",
203
203
  "@utils/tsdown-config": "1.0.4",
204
204
  "rimraf": "6.1.3",
205
- "tsdown": "0.22.14",
205
+ "tsdown": "0.23.0",
206
206
  "typescript": "7.0.2",
207
- "vitest": "4.1.11"
207
+ "vitest": "5.0.0"
208
208
  },
209
209
  "peerDependencies": {
210
210
  "react": ">=16.0.0"