lino-i18n 0.5.0 → 0.6.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/CHANGELOG.md +12 -0
- package/README.md +1 -1
- package/bin/lino-i18n.js +11 -4
- package/package.json +52 -51
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# lino-i18n Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- bda8e97: Update all runtime and development dependencies, require Node 22.22.2 or newer, and use npm 12 with its supported Node patch floors for CI and release tooling. Adapt package metadata verification to npm 12's package-name-keyed JSON output.
|
|
8
|
+
|
|
9
|
+
## 0.5.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 7be5c34: Fix the `lino-i18n` CLI doing nothing and exiting with code 0 when run through the npm bin symlink (`npx lino-i18n`, `node_modules/.bin/lino-i18n`, npm scripts). The entry-point check now compares real paths, so `lino-i18n check` reports out-of-sync catalogs again.
|
|
14
|
+
|
|
3
15
|
## 0.5.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
Universal internationalization for JavaScript with translations stored in
|
|
8
8
|
[Links Notation](https://github.com/linksplatform/Protocols.Lino) (`.lino`).
|
|
9
9
|
|
|
10
|
-
Runs on Node.js (≥ 22.
|
|
10
|
+
Runs on Node.js (≥ 22.22.2), Bun, Deno, and bundlers like Vite/Webpack/esbuild.
|
|
11
11
|
|
|
12
12
|
```bash
|
|
13
13
|
npm install lino-i18n
|
package/bin/lino-i18n.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
//
|
|
5
5
|
// Configuration priority: CLI flags > JSON `--config` file > defaults.
|
|
6
6
|
|
|
7
|
-
import { promises as fs } from 'node:fs';
|
|
7
|
+
import { promises as fs, realpathSync } from 'node:fs';
|
|
8
8
|
import path from 'node:path';
|
|
9
9
|
import { fileURLToPath, URL } from 'node:url';
|
|
10
10
|
|
|
@@ -386,12 +386,19 @@ function unknownCommand(command, flags, rest, log, err) {
|
|
|
386
386
|
return 1;
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
|
|
390
|
-
|
|
389
|
+
// npm installs the bin as a symlink (`node_modules/.bin/lino-i18n ->
|
|
390
|
+
// ../lino-i18n/bin/lino-i18n.js`). Node keeps the symlink path in
|
|
391
|
+
// `process.argv[1]` while `import.meta.url` is the resolved real path, so both
|
|
392
|
+
// sides must be compared after resolving symlinks.
|
|
393
|
+
export function isCliEntryPoint(
|
|
394
|
+
argvPath = process.argv[1],
|
|
395
|
+
modulePath = fileURLToPath(import.meta.url)
|
|
396
|
+
) {
|
|
397
|
+
if (!argvPath) {
|
|
391
398
|
return false;
|
|
392
399
|
}
|
|
393
400
|
try {
|
|
394
|
-
return
|
|
401
|
+
return realpathSync(argvPath) === realpathSync(modulePath);
|
|
395
402
|
} catch {
|
|
396
403
|
return false;
|
|
397
404
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "lino-i18n",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Universal i18n library that stores translations in Links Notation (.lino) instead of JSON.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -171,82 +171,83 @@
|
|
|
171
171
|
"provenance": true
|
|
172
172
|
},
|
|
173
173
|
"engines": {
|
|
174
|
-
"node": ">=22.
|
|
174
|
+
"node": ">=22.22.2"
|
|
175
175
|
},
|
|
176
176
|
"dependencies": {
|
|
177
|
-
"@babel/generator": "^8.
|
|
178
|
-
"@babel/parser": "^8.
|
|
179
|
-
"@babel/traverse": "^8.
|
|
180
|
-
"@babel/types": "^8.
|
|
181
|
-
"@formatjs/icu-messageformat-parser": "^3.5.
|
|
182
|
-
"intl-messageformat": "^12.1.
|
|
183
|
-
"links-notation": "^0.
|
|
184
|
-
"lino-arguments": "^0.
|
|
185
|
-
"lino-objects-codec": "^0.9.
|
|
177
|
+
"@babel/generator": "^8.1.2",
|
|
178
|
+
"@babel/parser": "^8.1.2",
|
|
179
|
+
"@babel/traverse": "^8.1.2",
|
|
180
|
+
"@babel/types": "^8.1.2",
|
|
181
|
+
"@formatjs/icu-messageformat-parser": "^3.5.23",
|
|
182
|
+
"intl-messageformat": "^12.1.5",
|
|
183
|
+
"links-notation": "^0.31.3",
|
|
184
|
+
"lino-arguments": "^0.4.1",
|
|
185
|
+
"lino-objects-codec": "^0.9.6"
|
|
186
186
|
},
|
|
187
187
|
"devDependencies": {
|
|
188
|
-
"@babel/core": "^8.
|
|
189
|
-
"@babel/eslint-parser": "^8.
|
|
188
|
+
"@babel/core": "^8.1.2",
|
|
189
|
+
"@babel/eslint-parser": "^8.1.2",
|
|
190
190
|
"@changesets/cli": "^3.0.3",
|
|
191
191
|
"@eslint/js": "^10.0.1",
|
|
192
|
-
"@generaltranslation/supported-locales": "2.1.
|
|
193
|
-
"@playwright/test": "^1.
|
|
194
|
-
"@rrweb/record": "2.
|
|
195
|
-
"@rrweb/replay": "2.
|
|
196
|
-
"@rrweb/types": "2.
|
|
197
|
-
"@secretlint/secretlint-rule-preset-recommend": "^13.0
|
|
198
|
-
"@tanstack/react-router": "1.170.
|
|
199
|
-
"@tanstack/react-start": "1.
|
|
192
|
+
"@generaltranslation/supported-locales": "2.1.48",
|
|
193
|
+
"@playwright/test": "^1.65.1",
|
|
194
|
+
"@rrweb/record": "2.2.2",
|
|
195
|
+
"@rrweb/replay": "2.2.2",
|
|
196
|
+
"@rrweb/types": "2.2.2",
|
|
197
|
+
"@secretlint/secretlint-rule-preset-recommend": "^13.1.0",
|
|
198
|
+
"@tanstack/react-router": "1.170.46",
|
|
199
|
+
"@tanstack/react-start": "1.169.5",
|
|
200
200
|
"@testing-library/react": "^16.3.3",
|
|
201
201
|
"@types/eslint": "^9.6.1",
|
|
202
|
-
"@types/node": "^26.6.
|
|
202
|
+
"@types/node": "^26.6.6",
|
|
203
203
|
"@types/react": "^19.3.0",
|
|
204
|
-
"@vitejs/plugin-react": "6.
|
|
205
|
-
"@vue/compiler-sfc": "3.5.
|
|
206
|
-
"@vue/server-renderer": "3.5.
|
|
204
|
+
"@vitejs/plugin-react": "6.3.0",
|
|
205
|
+
"@vue/compiler-sfc": "3.5.45",
|
|
206
|
+
"@vue/server-renderer": "3.5.45",
|
|
207
207
|
"esbuild": "^0.28.2",
|
|
208
|
-
"eslint": "^10.
|
|
208
|
+
"eslint": "^10.15.0",
|
|
209
209
|
"eslint-config-prettier": "^10.1.8",
|
|
210
|
-
"eslint-plugin-prettier": "^5.5.
|
|
210
|
+
"eslint-plugin-prettier": "^5.5.7",
|
|
211
211
|
"eslint9": "npm:eslint@^9.39.5",
|
|
212
|
-
"generaltranslation": "9.5.
|
|
212
|
+
"generaltranslation": "9.5.12",
|
|
213
213
|
"gt-remark": "1.0.12",
|
|
214
214
|
"gt-rrweb": "0.2.0",
|
|
215
|
-
"jscpd": "^5.4.
|
|
216
|
-
"jsdom": "^
|
|
217
|
-
"next": "16.4.
|
|
218
|
-
"prettier": "^3.
|
|
219
|
-
"react": "^19.3.
|
|
220
|
-
"react-dom": "^19.3.
|
|
215
|
+
"jscpd": "^5.4.3",
|
|
216
|
+
"jsdom": "^31.0.1",
|
|
217
|
+
"next": "16.4.6",
|
|
218
|
+
"prettier": "^3.10.1",
|
|
219
|
+
"react": "^19.3.1",
|
|
220
|
+
"react-dom": "^19.3.1",
|
|
221
221
|
"react-native-web": "0.21.4",
|
|
222
222
|
"remark-mdx": "3.1.1",
|
|
223
223
|
"remark-parse": "11.0.0",
|
|
224
224
|
"remark-stringify": "11.0.0",
|
|
225
|
-
"rollup": "^4.
|
|
226
|
-
"secretlint": "^13.0
|
|
227
|
-
"
|
|
225
|
+
"rollup": "^4.68.3",
|
|
226
|
+
"secretlint": "^13.1.0",
|
|
227
|
+
"semver": "^7.8.6",
|
|
228
|
+
"srvx": "1.0.8",
|
|
228
229
|
"test-anywhere": "^0.9.1",
|
|
229
230
|
"typescript": "^7.0.2",
|
|
230
231
|
"unified": "11.0.5",
|
|
231
|
-
"vite": "8.3.
|
|
232
|
-
"vue": "3.5.
|
|
232
|
+
"vite": "8.3.8",
|
|
233
|
+
"vue": "3.5.45"
|
|
233
234
|
},
|
|
234
235
|
"peerDependencies": {
|
|
235
|
-
"@generaltranslation/supported-locales": ">=2.1.
|
|
236
|
-
"@rrweb/record": ">=2.
|
|
237
|
-
"@rrweb/replay": ">=2.
|
|
238
|
-
"@rrweb/types": ">=2.
|
|
239
|
-
"@tanstack/react-router": ">=1.170 <2",
|
|
240
|
-
"@tanstack/react-start": ">=1.
|
|
241
|
-
"@vue/compiler-sfc": ">=3.5 <4",
|
|
242
|
-
"eslint": ">=9 <11",
|
|
243
|
-
"generaltranslation": ">=9.5.
|
|
236
|
+
"@generaltranslation/supported-locales": ">=2.1.48 <3",
|
|
237
|
+
"@rrweb/record": ">=2.2.2 <3",
|
|
238
|
+
"@rrweb/replay": ">=2.2.2 <3",
|
|
239
|
+
"@rrweb/types": ">=2.2.2 <3",
|
|
240
|
+
"@tanstack/react-router": ">=1.170.46 <2",
|
|
241
|
+
"@tanstack/react-start": ">=1.169.5 <2",
|
|
242
|
+
"@vue/compiler-sfc": ">=3.5.45 <4",
|
|
243
|
+
"eslint": ">=9.39.5 <11",
|
|
244
|
+
"generaltranslation": ">=9.5.12 <10",
|
|
244
245
|
"gt-remark": ">=1.0.12 <2",
|
|
245
|
-
"gt-rrweb": ">=0.2 <0.3",
|
|
246
|
-
"next": ">=16 <17",
|
|
246
|
+
"gt-rrweb": ">=0.2.0 <0.3",
|
|
247
|
+
"next": ">=16.4.6 <17",
|
|
247
248
|
"react": ">=18.0.0",
|
|
248
249
|
"react-dom": ">=18",
|
|
249
|
-
"vue": ">=3.5 <4"
|
|
250
|
+
"vue": ">=3.5.45 <4"
|
|
250
251
|
},
|
|
251
252
|
"peerDependenciesMeta": {
|
|
252
253
|
"next": {
|