@intlayer/fetch-dictionaries-entry 7.3.0 → 7.5.11

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
@@ -5,8 +5,11 @@
5
5
  </p>
6
6
 
7
7
  <h1 align="center">
8
- <strong> Intlayer : an Open-source, per-component i18n toolkit with AI-powered translation & CMS.</strong>
8
+ <strong>Per-component i18n</strong>
9
9
  </h1>
10
+ <h2 align="center">
11
+ <strong>AI-powered translation. Visual Editor. Multilingual CMS.</strong>
12
+ </h2>
10
13
 
11
14
  <br />
12
15
 
@@ -24,7 +27,7 @@
24
27
  <a href="https://github.com/aymericzip/intlayer/blob/main/LICENSE" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/license/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="license"/></a>
25
28
  <a href="https://github.com/aymericzip/intlayer/commits/main" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/github/last-commit/aymericzip/intlayer?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="last commit"/>
26
29
  </a>
27
- <a href="https://bountyhub.dev/bounties?repo=intlayer" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/badge/Bounties-on%20BountyHub-yellow?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="Bounties on BountyHub"/>
30
+ <a href="https://www.bountyhub.dev/en/bounty/view/a2f24259-80ae-4a19-82e7-288718fba449/adapt-markdown-parser-in-a-custom-packages" target="_blank" rel="noopener noreferrer nofollow"><img src="https://img.shields.io/badge/Bounties-on%20BountyHub-yellow?style=for-the-badge&labelColor=000000&color=FFFFFF&logoColor=000000&cacheSeconds=86400" alt="Bounties on BountyHub"/>
28
31
  </a>
29
32
  </p>
30
33
 
@@ -48,7 +51,7 @@ With **per-locale content files**, **TypeScript autocompletion**, **tree-shakabl
48
51
  | Feature | Description |
49
52
  | --------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
50
53
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/frameworks.png?raw=true" alt="Feature" width="700"> | **Cross-Frameworks Support**<br><br>Intlayer is compatible with all major frameworks and libraries, including Next.js, React, Vite, Vue.js, Nuxt, Preact, Express, and more. |
51
- | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/javascript_content_management.png?raw=true" alt="Feature" width="700"> | **JavaScript-Powered Content Management**<br><br>Harness the flexibility of JavaScript to define and manage your content efficiently. <br><br> - [Content declaration](https://intlayer.org/doc/concept/content) |
54
+ | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/javascript_content_management.jpg?raw=true" alt="Feature" width="700"> | **JavaScript-Powered Content Management**<br><br>Harness the flexibility of JavaScript to define and manage your content efficiently. <br><br> - [Content declaration](https://intlayer.org/doc/concept/content) |
52
55
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/per_locale_content_declaration_file.png?raw=true" alt="Feature" width="700"> | **Per-Locale Content Declaration File**<br><br>Speed up your development by declaring your content once, before auto generation.<br><br> - [Per-Locale Content Declaration File](https://intlayer.org/doc/concept/per-locale-file) |
53
56
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/autocompletion.png?raw=true" alt="Feature" width="700"> | **Type-Safe Environment**<br><br>Leverage TypeScript to ensure your content definitions and code are error-free, while also benefiting from IDE autocompletion.<br><br> - [TypeScript configuration](https://intlayer.org/doc/environment/vite-and-react#configure-typescript) |
54
57
  | <img src="https://github.com/aymericzip/intlayer/blob/main/docs/assets/config_file.png?raw=true" alt="Feature" width="700"> | **Simplified Setup**<br><br>Get up and running quickly with minimal configuration. Adjust settings for internationalization, routing, AI, build, and content handling with ease. <br><br> - [Explore Next.js integration](https://intlayer.org/doc/environment/nextjs) |
@@ -270,6 +273,8 @@ You can also follow us on :
270
273
 
271
274
  For more detailed guidelines on contributing to this project, please refer to the [`CONTRIBUTING.md`](https://github.com/aymericzip/intlayer/blob/main/CONTRIBUTING.md) file. It contains essential information on our development process, commit message conventions, and release procedures. Your contributions are valuable to us, and we appreciate your efforts in making this project better!
272
275
 
276
+ Contribute on [GitHub](https://github.com/aymericzip/intlayer), [GitLab](https://gitlab.com/ay.pineau/intlayer), or [Bitbucket](https://bitbucket.org/intlayer/intlayer/).
277
+
273
278
  ### Thank You for the Support
274
279
 
275
280
  If you like Intlayer, give us a ⭐ on GitHub. It helps others discover the project! [See why GitHub Stars matter](https://github.com/aymericzip/intlayer/blob/main/CONTRIBUTING.md#why-github-stars-matter-).
@@ -1,9 +1,9 @@
1
1
  const require_rolldown_runtime = require('./_virtual/rolldown_runtime.cjs');
2
2
  let node_fs = require("node:fs");
3
3
  let node_path = require("node:path");
4
- let __intlayer_config = require("@intlayer/config");
5
- let __intlayer_config_built = require("@intlayer/config/built");
6
- __intlayer_config_built = require_rolldown_runtime.__toESM(__intlayer_config_built);
4
+ let _intlayer_config = require("@intlayer/config");
5
+ let _intlayer_config_built = require("@intlayer/config/built");
6
+ _intlayer_config_built = require_rolldown_runtime.__toESM(_intlayer_config_built);
7
7
 
8
8
  //#region src/index.ts
9
9
  /**
@@ -11,13 +11,13 @@ __intlayer_config_built = require_rolldown_runtime.__toESM(__intlayer_config_bui
11
11
  * Using an external package allow to alias it in the bundle configuration (such as webpack).
12
12
  * The alias allow hot reload the app (such as nextjs) on any dictionary change.
13
13
  */
14
- const getDynamicDictionaries = (configuration = __intlayer_config_built.default) => {
14
+ const getDynamicDictionaries = (configuration = _intlayer_config_built.default) => {
15
15
  const { content, build } = configuration;
16
16
  const dictionariesPath = (0, node_path.join)(content.mainDir, `fetch_dictionaries.cjs`);
17
17
  let dictionaries = {};
18
18
  if ((0, node_fs.existsSync)(dictionariesPath)) {
19
- (0, __intlayer_config.clearModuleCache)(dictionariesPath);
20
- dictionaries = (build.require ?? __intlayer_config.configESMxCJSRequire)(dictionariesPath);
19
+ (0, _intlayer_config.clearModuleCache)(dictionariesPath);
20
+ dictionaries = (build.require ?? _intlayer_config.configESMxCJSRequire)(dictionariesPath);
21
21
  }
22
22
  return dictionaries;
23
23
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["getDynamicDictionaries: GetFetchDictionaries","config","dictionaries: Record<\n DictionaryKeys,\n StrictModeLocaleMap<Dictionary>\n >","configESMxCJSRequire"],"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/fetch-dictionaries-entry is a package that only returns the fetch dictionary entry file.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { clearModuleCache, configESMxCJSRequire } from '@intlayer/config';\nimport config from '@intlayer/config/built';\nimport type {\n Dictionary,\n DictionaryKeys,\n IntlayerConfig,\n StrictModeLocaleMap,\n} from '@intlayer/types';\n\nexport type FetchDictionaries = Record<\n DictionaryKeys,\n StrictModeLocaleMap<Dictionary>\n>;\n\ntype GetFetchDictionaries = (\n configuration?: IntlayerConfig\n) => FetchDictionaries;\n\nexport const getDynamicDictionaries: GetFetchDictionaries = (\n configuration: IntlayerConfig = config\n) => {\n const { content, build } = configuration;\n\n // Always use cjs for dictionaries entry as it uses require\n const dictionariesPath = join(content.mainDir, `fetch_dictionaries.cjs`);\n let dictionaries: Record<\n DictionaryKeys,\n StrictModeLocaleMap<Dictionary>\n > = {};\n\n if (existsSync(dictionariesPath)) {\n // Clear cache for dynamic_dictionaries.cjs and all its dependencies (JSON files)\n clearModuleCache(dictionariesPath);\n dictionaries = (build.require ?? configESMxCJSRequire)(dictionariesPath);\n }\n\n return dictionaries;\n};\n"],"mappings":";;;;;;;;;;;;;AA0BA,MAAaA,0BACX,gBAAgCC,oCAC7B;CACH,MAAM,EAAE,SAAS,UAAU;CAG3B,MAAM,uCAAwB,QAAQ,SAAS,yBAAyB;CACxE,IAAIC,eAGA,EAAE;AAEN,6BAAe,iBAAiB,EAAE;AAEhC,0CAAiB,iBAAiB;AAClC,kBAAgB,MAAM,WAAWC,wCAAsB,iBAAiB;;AAG1E,QAAO"}
1
+ {"version":3,"file":"index.cjs","names":["getDynamicDictionaries: GetFetchDictionaries","config","dictionaries: Record<\n DictionaryKeys,\n StrictModeLocaleMap<Dictionary>\n >","configESMxCJSRequire"],"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/fetch-dictionaries-entry is a package that only returns the fetch dictionary entry file.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { clearModuleCache, configESMxCJSRequire } from '@intlayer/config';\nimport config from '@intlayer/config/built';\nimport type {\n Dictionary,\n DictionaryKeys,\n IntlayerConfig,\n StrictModeLocaleMap,\n} from '@intlayer/types';\n\nexport type FetchDictionaries = Record<\n DictionaryKeys,\n StrictModeLocaleMap<Dictionary>\n>;\n\ntype GetFetchDictionaries = (\n configuration?: IntlayerConfig\n) => FetchDictionaries;\n\nexport const getDynamicDictionaries: GetFetchDictionaries = (\n configuration: IntlayerConfig = config\n) => {\n const { content, build } = configuration;\n\n // Always use cjs for dictionaries entry as it uses require\n const dictionariesPath = join(content.mainDir, `fetch_dictionaries.cjs`);\n let dictionaries: Record<\n DictionaryKeys,\n StrictModeLocaleMap<Dictionary>\n > = {};\n\n if (existsSync(dictionariesPath)) {\n // Clear cache for dynamic_dictionaries.cjs and all its dependencies (JSON files)\n clearModuleCache(dictionariesPath);\n dictionaries = (build.require ?? configESMxCJSRequire)(dictionariesPath);\n }\n\n return dictionaries;\n};\n"],"mappings":";;;;;;;;;;;;;AA0BA,MAAaA,0BACX,gBAAgCC,mCAC7B;CACH,MAAM,EAAE,SAAS,UAAU;CAG3B,MAAM,uCAAwB,QAAQ,SAAS,yBAAyB;CACxE,IAAIC,eAGA,EAAE;AAEN,6BAAe,iBAAiB,EAAE;AAEhC,yCAAiB,iBAAiB;AAClC,kBAAgB,MAAM,WAAWC,uCAAsB,iBAAiB;;AAG1E,QAAO"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/fetch-dictionaries-entry",
3
- "version": "7.3.0",
3
+ "version": "7.5.11",
4
4
  "private": false,
5
5
  "description": "Provides the entry path for Intlayer fetch dictionaries, solving filesystem retrieval issues for bundlers like Webpack and Rollup.",
6
6
  "keywords": [
@@ -58,6 +58,7 @@
58
58
  "./package.json"
59
59
  ],
60
60
  "scripts": {
61
+ "_prepublish": "cp -f ../../../README.md ./README.md",
61
62
  "build": "tsdown --config tsdown.config.ts",
62
63
  "build:ci": "tsdown --config tsdown.config.ts",
63
64
  "clean": "rimraf ./dist .turbo",
@@ -67,7 +68,7 @@
67
68
  "lint": "biome lint .",
68
69
  "lint:fix": "biome lint --write .",
69
70
  "process-files": "ts-node src/transpiler/processFilesCLI.ts --dir $npm_config_dir --extension $npm_config_extension --no-node-snapshot",
70
- "prepublish": "cp -f ../../../README.md ./README.md",
71
+ "prepublish": "echo prepublish temporally disabled to avoid rewrite readme",
71
72
  "publish": "bun publish || true",
72
73
  "publish:canary": "bun publish --access public --tag canary || true",
73
74
  "publish:latest": "bun publish --access public --tag latest || true",
@@ -76,19 +77,19 @@
76
77
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
77
78
  },
78
79
  "dependencies": {
79
- "@intlayer/config": "7.3.0",
80
- "@intlayer/core": "7.3.0",
81
- "@intlayer/types": "7.3.0"
80
+ "@intlayer/config": "7.5.11",
81
+ "@intlayer/core": "7.5.11",
82
+ "@intlayer/types": "7.5.11"
82
83
  },
83
84
  "devDependencies": {
84
- "@types/node": "24.10.1",
85
+ "@types/node": "25.0.3",
85
86
  "@utils/ts-config": "1.0.4",
86
87
  "@utils/ts-config-types": "1.0.4",
87
88
  "@utils/tsdown-config": "1.0.4",
88
89
  "rimraf": "6.1.2",
89
- "tsdown": "0.16.6",
90
+ "tsdown": "0.18.2",
90
91
  "typescript": "5.9.3",
91
- "vitest": "4.0.13"
92
+ "vitest": "4.0.16"
92
93
  },
93
94
  "engines": {
94
95
  "node": ">=14.18"