@_linked/translation 0.2.2 → 0.2.3

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 (2) hide show
  1. package/README.md +15 -0
  2. package/package.json +2 -1
package/README.md CHANGED
@@ -14,6 +14,21 @@ Graph-native translation management for LINKED applications. It provides:
14
14
  npm install @_linked/translation
15
15
  ```
16
16
 
17
+ ### Optional peer dependencies
18
+
19
+ Two peers are optional, and each gates a specific entry point:
20
+
21
+ | Peer | Needed for |
22
+ |---|---|
23
+ | `typescript` | `@_linked/translation/key-sync` and `/key-sync/node` |
24
+ | `react` | `@_linked/translation/react` |
25
+
26
+ The key-sync entry points parse your source with the TypeScript compiler to find `t()` and `<T>`
27
+ call sites, so they `import ts from 'typescript'` directly. Without it installed, importing either
28
+ fails at runtime with `ERR_MODULE_NOT_FOUND: Cannot find package 'typescript'` — the subpath
29
+ itself resolves, so the error names the peer rather than the subpath. Everything else in the
30
+ package works without either peer.
31
+
17
32
  ## Entry points
18
33
 
19
34
  - `@_linked/translation` — shapes and message model
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@_linked/translation",
3
3
  "description": "LINKED translation management — graph-native i18n keys + units, Tolgee-compatible client, CDN delivery. Built inside Create Now for now; structured to extract to its own repo unchanged.",
4
- "version": "0.2.2",
4
+ "version": "0.2.3",
5
5
  "packageManager": "npm@11.19.1",
6
6
  "linkedPackage": true,
7
7
  "type": "module",
@@ -79,6 +79,7 @@
79
79
  "development": "./src/exchange.ts",
80
80
  "import": "./lib/esm/exchange.js"
81
81
  },
82
+ "./package.json": "./package.json",
82
83
  "./*.js": {
83
84
  "types": "./lib/esm/*.d.ts",
84
85
  "development": "./src/*.ts",