i18next-cli 1.84.0 → 1.85.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/README.md +7 -1
- package/dist/cjs/cli.js +1 -1
- package/dist/cjs/extractor/core/ast-visitors.js +5 -1
- package/dist/cjs/extractor/core/key-finder.js +7 -0
- package/dist/cjs/extractor/parsers/expression-resolver.js +145 -27
- package/dist/cjs/extractor/parsers/scope-manager.js +2 -1
- package/dist/esm/cli.js +1 -1
- package/dist/esm/extractor/core/ast-visitors.js +5 -1
- package/dist/esm/extractor/core/key-finder.js +8 -1
- package/dist/esm/extractor/parsers/expression-resolver.js +146 -28
- package/dist/esm/extractor/parsers/scope-manager.js +2 -1
- package/package.json +1 -1
- package/types/extractor/core/ast-visitors.d.ts.map +1 -1
- package/types/extractor/core/key-finder.d.ts.map +1 -1
- package/types/extractor/parsers/expression-resolver.d.ts +25 -1
- package/types/extractor/parsers/expression-resolver.d.ts.map +1 -1
- package/types/extractor/parsers/scope-manager.d.ts +2 -2
- package/types/extractor/parsers/scope-manager.d.ts.map +1 -1
- package/types/types.d.ts +12 -0
- package/types/types.d.ts.map +1 -1
package/README.md
CHANGED
|
@@ -1084,7 +1084,13 @@ export default defineConfig({
|
|
|
1084
1084
|
messageFormat: 'i18next', // Default: 'i18next'
|
|
1085
1085
|
|
|
1086
1086
|
// Warn (or error) when the same ns:key is extracted with different default values.
|
|
1087
|
-
warnOnConflicts: true // Default: false
|
|
1087
|
+
warnOnConflicts: true, // Default: false
|
|
1088
|
+
|
|
1089
|
+
// Warn (or error) when the extractor has to guess which declaration a name means: a type, enum or
|
|
1090
|
+
// constant declared differently in more than one scanned file, which the file reading it neither
|
|
1091
|
+
// declares nor imports from a file the extractor can follow (a global, a package, an unscanned file).
|
|
1092
|
+
// It also reports guesses no key ends up built from.
|
|
1093
|
+
warnOnAmbiguousTypes: 'error' // Default: false
|
|
1088
1094
|
},
|
|
1089
1095
|
|
|
1090
1096
|
// options for linter
|
package/dist/cjs/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ const program = new commander.Command();
|
|
|
39
39
|
program
|
|
40
40
|
.name('i18next-cli')
|
|
41
41
|
.description('A unified, high-performance i18next CLI.')
|
|
42
|
-
.version('1.
|
|
42
|
+
.version('1.85.0') // This string is replaced with the actual version at build time by rollup
|
|
43
43
|
.addHelpText('after', '\nUsing an AI coding agent? Install the i18next-localization skill: npx skills add i18next/i18next-cli\n');
|
|
44
44
|
// new: global config override option
|
|
45
45
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
@@ -103,6 +103,9 @@ class ASTVisitors {
|
|
|
103
103
|
this.scopeManager.isParameter = (name) => this.expressionResolver.isParameter(name);
|
|
104
104
|
// use shared resolver when provided so captured enums/objects are visible across files
|
|
105
105
|
this.expressionResolver = expressionResolver$1 ?? new expressionResolver.ExpressionResolver(this.hooks);
|
|
106
|
+
// `useTranslation(NS)` reads the `NS` of the module it is imported from, like the resolver's tables (#327)
|
|
107
|
+
this.scopeManager.sharedConstants = this.expressionResolver.valueTable();
|
|
108
|
+
this.scopeManager.sharedConstantObjects = this.expressionResolver.valueTable();
|
|
106
109
|
this.callExpressionHandler = new callExpressionHandler.CallExpressionHandler(config, pluginContext, logger, this.expressionResolver, () => this.getCurrentFile(), () => this.getCurrentCode(), (name) => this.scopeManager.resolveSimpleStringIdentifier(name));
|
|
107
110
|
this.jsxHandler = new jsxHandler.JSXHandler(config, pluginContext, this.expressionResolver, () => this.getCurrentFile(), () => this.getCurrentCode());
|
|
108
111
|
}
|
|
@@ -176,9 +179,10 @@ class ASTVisitors {
|
|
|
176
179
|
break;
|
|
177
180
|
case 'ImportDeclaration':
|
|
178
181
|
case 'ExportNamedDeclaration':
|
|
182
|
+
case 'ExportAllDeclaration':
|
|
179
183
|
// `import { X as Y }` → ExpressionResolver.sharedImportAliases, resolved
|
|
180
184
|
// once the pre-scan has seen every file; `import * as Types` / `export * as Types`
|
|
181
|
-
// → namespace names.
|
|
185
|
+
// → namespace names; `export * from` / `export { X } from` → barrels.
|
|
182
186
|
this.expressionResolver.captureImportDeclaration(node);
|
|
183
187
|
break;
|
|
184
188
|
}
|
|
@@ -83,6 +83,7 @@ async function findKeys(config$1, logger$1 = new logger.ConsoleLogger(), fileErr
|
|
|
83
83
|
const sharedExpressionResolver = new expressionResolver.ExpressionResolver(hooks);
|
|
84
84
|
sharedExpressionResolver.maxMemberDepth = config$1.extract.maxTypeDepth ?? 5;
|
|
85
85
|
sharedExpressionResolver.pathAliases = await config.getTsConfigAliases();
|
|
86
|
+
sharedExpressionResolver.warnOnAmbiguous = !!config$1.extract.warnOnAmbiguousTypes;
|
|
86
87
|
const astVisitors$1 = new astVisitors.ASTVisitors(otherConfig, pluginContext, logger$1, hooks, sharedExpressionResolver);
|
|
87
88
|
// 4. "Wire up" the visitor's scope method to the context.
|
|
88
89
|
// This avoids a circular dependency while giving plugins access to the scope.
|
|
@@ -106,6 +107,12 @@ async function findKeys(config$1, logger$1 = new logger.ConsoleLogger(), fileErr
|
|
|
106
107
|
for (const file of sourceFiles) {
|
|
107
108
|
await extractor.processFile(file, plugins, astVisitors$1, pluginContext, otherConfig, logger$1, fileErrors);
|
|
108
109
|
}
|
|
110
|
+
// 7a. Names the extraction pass had to guess between same-named declarations of different files
|
|
111
|
+
const { ambiguities } = sharedExpressionResolver;
|
|
112
|
+
if (ambiguities.length > 0 && config$1.extract.warnOnAmbiguousTypes === 'error')
|
|
113
|
+
throw new pluginManager.ConflictError(ambiguities.join('\n'));
|
|
114
|
+
for (const msg of ambiguities)
|
|
115
|
+
logger$1.warn(msg);
|
|
109
116
|
// 7. Run onEnd hooks
|
|
110
117
|
for (const plugin of plugins) {
|
|
111
118
|
await plugin.onEnd?.(allKeys);
|
|
@@ -99,6 +99,8 @@ const moduleKey = (path) => path.replace(/(\.d)?\.[cm]?[jt]sx?$/, '');
|
|
|
99
99
|
class ModuleTable extends Map {
|
|
100
100
|
scope;
|
|
101
101
|
holdsValues;
|
|
102
|
+
// declared name -> the modules declaring it
|
|
103
|
+
declarers = new Map();
|
|
102
104
|
constructor(scope, holdsValues = false) {
|
|
103
105
|
super();
|
|
104
106
|
this.scope = scope;
|
|
@@ -110,18 +112,32 @@ class ModuleTable extends Map {
|
|
|
110
112
|
return undefined;
|
|
111
113
|
for (const key of this.scope.keysOf(name)) {
|
|
112
114
|
const value = super.get(key);
|
|
113
|
-
if (value
|
|
114
|
-
|
|
115
|
+
if (value === undefined)
|
|
116
|
+
continue;
|
|
117
|
+
// The bare name holds whichever file declared it last (#327)
|
|
118
|
+
if (!key.includes('#'))
|
|
119
|
+
this.scope.guessed(key, this);
|
|
120
|
+
return value;
|
|
115
121
|
}
|
|
116
122
|
return undefined;
|
|
117
123
|
}
|
|
124
|
+
// [module, what it declares] for every module declaring `name`
|
|
125
|
+
declarations(name) {
|
|
126
|
+
return [...this.declarers.get(name) ?? []].flatMap(module => {
|
|
127
|
+
const value = super.get(`${module}#${name}`);
|
|
128
|
+
return value === undefined ? [] : [[module, value]];
|
|
129
|
+
});
|
|
130
|
+
}
|
|
118
131
|
has(name) {
|
|
119
132
|
return this.scope.keysOf(name).some(key => super.has(key));
|
|
120
133
|
}
|
|
121
134
|
set(name, value) {
|
|
122
135
|
const key = this.scope.declaringKey(name);
|
|
123
|
-
if (key)
|
|
136
|
+
if (key) {
|
|
124
137
|
super.set(key, value);
|
|
138
|
+
this.scope.declare(name);
|
|
139
|
+
this.declarers.set(name, (this.declarers.get(name) ?? new Set()).add(key.slice(0, -name.length - 1)));
|
|
140
|
+
}
|
|
125
141
|
return super.set(name, value);
|
|
126
142
|
}
|
|
127
143
|
delete(name) {
|
|
@@ -237,22 +253,38 @@ class ExpressionResolver {
|
|
|
237
253
|
// names from (see ModuleTable)
|
|
238
254
|
currentModule;
|
|
239
255
|
knownModules = new Set();
|
|
240
|
-
// module -> local name -> { from: the import's resolved path, name: the declared name }
|
|
256
|
+
// module -> local name -> { from: the import's resolved path, if it is one of this project, name: the declared name }
|
|
241
257
|
fileImports = new Map();
|
|
258
|
+
// module -> exported name -> the same for its re-exports: `export { ABC as Letters } from './abc'`
|
|
259
|
+
fileExports = new Map();
|
|
260
|
+
// module -> the paths it re-exports everything of: `export * from './abc'`
|
|
261
|
+
fileStarExports = new Map();
|
|
242
262
|
// module -> namespace import's local name -> the import's resolved path
|
|
243
263
|
fileNamespaces = new Map();
|
|
244
|
-
// module
|
|
245
|
-
|
|
264
|
+
// `module#name` of every name a module declares (variable, type, interface, enum, function), also
|
|
265
|
+
// when its value isn't captured: it shadows the same names declared in other files (#307, #327)
|
|
266
|
+
declaredKeys = new Set();
|
|
267
|
+
// module -> its file, for messages
|
|
268
|
+
moduleFiles = new Map();
|
|
269
|
+
// `exportKey` results: a declaration found stays found, one not found may be in a file the
|
|
270
|
+
// pre-scan has not read yet, so misses are only kept once it is done
|
|
271
|
+
exportKeyCache = new Map();
|
|
272
|
+
preScanned = false;
|
|
246
273
|
// The parameters of the functions being read, innermost last
|
|
247
274
|
parameters = [];
|
|
248
275
|
// tsconfig `paths`, `@api` -> `/abs/src/api`
|
|
249
276
|
pathAliases = {};
|
|
277
|
+
// `extract.warnOnAmbiguousTypes`: collect the names the extraction pass had to guess (see `guessed`)
|
|
278
|
+
warnOnAmbiguous = false;
|
|
279
|
+
ambiguities = [];
|
|
280
|
+
checkedAmbiguous = new Map();
|
|
250
281
|
constructor(hooks) {
|
|
251
282
|
this.hooks = hooks;
|
|
252
283
|
}
|
|
253
284
|
setCurrentFile(file) {
|
|
254
285
|
this.currentModule = moduleKey(node_path.resolve(file));
|
|
255
286
|
this.knownModules.add(this.currentModule);
|
|
287
|
+
this.moduleFiles.set(this.currentModule, file);
|
|
256
288
|
}
|
|
257
289
|
// `./api/github-api` / `@api/github-api` imported in the current file -> its path, or undefined
|
|
258
290
|
// for a package or anything else that isn't a file of this project
|
|
@@ -273,19 +305,92 @@ class ExpressionResolver {
|
|
|
273
305
|
}
|
|
274
306
|
// ModuleTable: the keys `name` read in the current file may be stored under, most specific first
|
|
275
307
|
keysOf(name) {
|
|
276
|
-
|
|
308
|
+
// `GH.components` through `import * as GH from './github-api'`, which may be a barrel
|
|
309
|
+
const at = name.lastIndexOf('#');
|
|
310
|
+
if (at >= 0) {
|
|
311
|
+
const key = this.exportKey(name.slice(0, at), name.slice(at + 1));
|
|
312
|
+
return [key ?? name.slice(at + 1)];
|
|
313
|
+
}
|
|
314
|
+
if (!this.currentModule)
|
|
277
315
|
return [name];
|
|
278
|
-
const keys = [];
|
|
279
316
|
const imported = this.fileImports.get(this.currentModule)?.get(name);
|
|
280
|
-
const
|
|
281
|
-
if (
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
//
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
317
|
+
const key = imported && this.exportKey(imported.from, imported.name);
|
|
318
|
+
if (key)
|
|
319
|
+
return [key];
|
|
320
|
+
// The bare name holds whichever file declared it last: a guess, only made for a name this file
|
|
321
|
+
// neither declares nor imports from a file that does (a global, a package, an unscanned file) (#307, #327)
|
|
322
|
+
const own = `${this.currentModule}#${name}`;
|
|
323
|
+
return this.declaredKeys.has(own) ? [own] : [own, name];
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* The key of the declaration of `name` exported by the module at `path`: in that module, or in the
|
|
327
|
+
* module it re-exports it from, `export { ABC } from './abc'` / `export * from './abc'` (#327)
|
|
328
|
+
*/
|
|
329
|
+
exportKey(path, name) {
|
|
330
|
+
const id = `${path}#${name}`;
|
|
331
|
+
if (this.exportKeyCache.has(id))
|
|
332
|
+
return this.exportKeyCache.get(id);
|
|
333
|
+
const key = this.findExportKey(path, name, new Set());
|
|
334
|
+
if (key || this.preScanned)
|
|
335
|
+
this.exportKeyCache.set(id, key);
|
|
336
|
+
return key;
|
|
337
|
+
}
|
|
338
|
+
// ponytail: one search per imported name, cached; nested barrels of thousands of modules make it ~2x slower
|
|
339
|
+
// than direct imports, a per-module export map (built once the pre-scan is done) if that ever matters
|
|
340
|
+
findExportKey(path, name, seen) {
|
|
341
|
+
const module = path && this.moduleOf(path);
|
|
342
|
+
const key = `${module}#${name}`;
|
|
343
|
+
if (!module || seen.has(key))
|
|
344
|
+
return undefined;
|
|
345
|
+
seen.add(key);
|
|
346
|
+
if (this.declaredKeys.has(key))
|
|
347
|
+
return key;
|
|
348
|
+
// `export { ABC } from './abc'`, or `import { ABC } from './abc'; export { ABC }`
|
|
349
|
+
const via = this.fileExports.get(module)?.get(name) ?? this.fileImports.get(module)?.get(name);
|
|
350
|
+
const found = via && this.findExportKey(via.from, via.name, seen);
|
|
351
|
+
if (found)
|
|
352
|
+
return found;
|
|
353
|
+
for (const from of this.fileStarExports.get(module) ?? []) {
|
|
354
|
+
const starred = this.findExportKey(from, name, seen);
|
|
355
|
+
if (starred)
|
|
356
|
+
return starred;
|
|
357
|
+
}
|
|
358
|
+
return undefined;
|
|
359
|
+
}
|
|
360
|
+
// Record that the current file declares `name`, whether or not its value is captured
|
|
361
|
+
declare(name) {
|
|
362
|
+
if (this.currentModule)
|
|
363
|
+
this.declaredKeys.add(`${this.currentModule}#${name}`);
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* ModuleTable: `name`, read in the current file, resolved to whichever file declared it last. With
|
|
367
|
+
* `warnOnAmbiguous`, the extraction pass records it in `ambiguities` when several files declare it
|
|
368
|
+
* differently (#327).
|
|
369
|
+
*/
|
|
370
|
+
guessed(name, table) {
|
|
371
|
+
if (!this.warnOnAmbiguous || this.recording || this.replaying || !this.currentModule)
|
|
372
|
+
return;
|
|
373
|
+
const declared = this.fileImports.get(this.currentModule)?.get(name)?.name ?? name;
|
|
374
|
+
const checked = this.checkedAmbiguous.get(table) ?? new Set();
|
|
375
|
+
this.checkedAmbiguous.set(table, checked);
|
|
376
|
+
if (checked.has(`${this.currentModule}#${declared}`))
|
|
377
|
+
return;
|
|
378
|
+
checked.add(`${this.currentModule}#${declared}`);
|
|
379
|
+
const found = table.declarations(declared);
|
|
380
|
+
// AST nodes of identical declarations differ only by their position, unions only by their order
|
|
381
|
+
const variants = new Set(found.map(([, value]) => JSON.stringify(value, (k, v) => k === 'span' || k === 'ctxt' ? undefined : Array.isArray(v) && v.every(x => typeof x === 'string') ? [...v].sort() : v)));
|
|
382
|
+
if (variants.size < 2)
|
|
383
|
+
return;
|
|
384
|
+
const fileOf = (module) => node_path.relative(process.cwd(), this.moduleFiles.get(module) ?? module);
|
|
385
|
+
const file = fileOf(this.currentModule);
|
|
386
|
+
const msg = `Cannot tell which "${declared}" ${file} means: ${found.map(([module]) => fileOf(module)).join(', ')} declare it differently, ` +
|
|
387
|
+
`and ${file} neither declares it nor imports it from a file the extractor can follow. Keys built from it may come from the wrong one.`;
|
|
388
|
+
if (!this.ambiguities.includes(msg))
|
|
389
|
+
this.ambiguities.push(msg);
|
|
390
|
+
}
|
|
391
|
+
// A cross-file table of values that knows which module a name is imported from, for ScopeManager
|
|
392
|
+
valueTable() {
|
|
393
|
+
return new ModuleTable(this, true);
|
|
289
394
|
}
|
|
290
395
|
// ValueTable / ModuleTable: whether `name` is a parameter of a function being read
|
|
291
396
|
isParameter(name) {
|
|
@@ -371,6 +476,7 @@ class ExpressionResolver {
|
|
|
371
476
|
this.applyImportAliases();
|
|
372
477
|
this.replays = [];
|
|
373
478
|
this.resetFileSymbols();
|
|
479
|
+
this.preScanned = true;
|
|
374
480
|
}
|
|
375
481
|
/**
|
|
376
482
|
* Write an entry of a cross-file table. While replaying, an entry only grows:
|
|
@@ -460,11 +566,7 @@ class ExpressionResolver {
|
|
|
460
566
|
if (node.id.type !== 'Identifier')
|
|
461
567
|
return;
|
|
462
568
|
const name = node.id.value;
|
|
463
|
-
|
|
464
|
-
if (!this.fileVariables.has(this.currentModule))
|
|
465
|
-
this.fileVariables.set(this.currentModule, new Set());
|
|
466
|
-
this.fileVariables.get(this.currentModule).add(name);
|
|
467
|
-
}
|
|
569
|
+
this.declare(name);
|
|
468
570
|
// `const items: IProps[] = …` → remember the element's member map so
|
|
469
571
|
// `items.map(({ size }) => …)` can bind the callback parameter.
|
|
470
572
|
const idTypeAnnotation = this.extractTypeAnnotation(node.id);
|
|
@@ -585,6 +687,7 @@ class ExpressionResolver {
|
|
|
585
687
|
const name = node?.id?.type === 'Identifier' ? node.id.value : undefined;
|
|
586
688
|
if (!name)
|
|
587
689
|
return;
|
|
690
|
+
this.declare(name);
|
|
588
691
|
// SWC puts the actual type in `.typeAnnotation`
|
|
589
692
|
const tsType = node.typeAnnotation ?? node.typeAnn;
|
|
590
693
|
if (!tsType)
|
|
@@ -627,10 +730,19 @@ class ExpressionResolver {
|
|
|
627
730
|
*/
|
|
628
731
|
captureImportDeclaration(node) {
|
|
629
732
|
try {
|
|
630
|
-
const
|
|
631
|
-
const
|
|
733
|
+
const module = this.currentModule;
|
|
734
|
+
const from = typeof node?.source?.value === 'string' ? this.importPath(node.source.value) : undefined;
|
|
735
|
+
// `export * from './abc'`
|
|
736
|
+
if (node?.type === 'ExportAllDeclaration') {
|
|
737
|
+
if (module && from)
|
|
738
|
+
this.fileStarExports.set(module, [...this.fileStarExports.get(module) ?? [], from]);
|
|
739
|
+
return;
|
|
740
|
+
}
|
|
741
|
+
// `import { ABC } from …` / `export { ABC } from …`: local or exported name -> where it is declared
|
|
742
|
+
const table = node?.type === 'ImportDeclaration' ? this.fileImports : node?.source ? this.fileExports : undefined;
|
|
743
|
+
const imports = module && table ? (table.get(module) ?? new Map()) : undefined;
|
|
632
744
|
if (imports)
|
|
633
|
-
|
|
745
|
+
table.set(module, imports);
|
|
634
746
|
for (const spec of node?.specifiers ?? []) {
|
|
635
747
|
// `import * as Types from …` / `export * as Types from …`
|
|
636
748
|
if (spec?.type === 'ImportNamespaceSpecifier' && spec.local?.value) {
|
|
@@ -643,6 +755,9 @@ class ExpressionResolver {
|
|
|
643
755
|
}
|
|
644
756
|
if (spec?.type === 'ExportNamespaceSpecifier' && spec.name?.value)
|
|
645
757
|
this.sharedNamespaceNames.add(spec.name.value);
|
|
758
|
+
// `export { ABC as Letters } from './abc'`
|
|
759
|
+
if (spec?.type === 'ExportSpecifier' && spec.orig?.value)
|
|
760
|
+
imports?.set(spec.exported?.value ?? spec.orig.value, { from, name: spec.orig.value });
|
|
646
761
|
if (spec?.type !== 'ImportSpecifier')
|
|
647
762
|
continue;
|
|
648
763
|
const local = spec.local?.value;
|
|
@@ -650,8 +765,8 @@ class ExpressionResolver {
|
|
|
650
765
|
if (local && imported && local !== imported)
|
|
651
766
|
this.sharedImportAliases.set(local, imported);
|
|
652
767
|
// `import { components as githubComponents } from './github-api'` → that module's `components`
|
|
653
|
-
if (local && imported
|
|
654
|
-
imports
|
|
768
|
+
if (local && imported)
|
|
769
|
+
imports?.set(local, { from, name: imported });
|
|
655
770
|
}
|
|
656
771
|
}
|
|
657
772
|
catch {
|
|
@@ -720,6 +835,7 @@ class ExpressionResolver {
|
|
|
720
835
|
const name = node?.id?.type === 'Identifier' ? node.id.value : undefined;
|
|
721
836
|
if (!name)
|
|
722
837
|
return;
|
|
838
|
+
this.declare(name);
|
|
723
839
|
if (this.recording)
|
|
724
840
|
this.replays.push(this.inCurrentFile(() => this.captureInterfaceDeclaration(node)));
|
|
725
841
|
const params = node.typeParams?.parameters;
|
|
@@ -1025,6 +1141,7 @@ class ExpressionResolver {
|
|
|
1025
1141
|
const name = node?.identifier?.value ?? node?.id?.value;
|
|
1026
1142
|
if (!name)
|
|
1027
1143
|
return;
|
|
1144
|
+
this.declare(name);
|
|
1028
1145
|
// SWC places the return type annotation in `.function.returnType` (FunctionDeclaration)
|
|
1029
1146
|
// or directly in `.returnType` (FunctionExpression / ArrowFunctionExpression).
|
|
1030
1147
|
this.captureFunctionReturn(name, node.function ?? node);
|
|
@@ -1223,6 +1340,7 @@ class ExpressionResolver {
|
|
|
1223
1340
|
const name = node.id.type === 'Identifier' ? node.id.value : undefined;
|
|
1224
1341
|
if (!name)
|
|
1225
1342
|
return;
|
|
1343
|
+
this.declare(name);
|
|
1226
1344
|
const map = {};
|
|
1227
1345
|
for (const m of node.members) {
|
|
1228
1346
|
if (!m || !m.id)
|
|
@@ -27,7 +27,8 @@ class ScopeManager {
|
|
|
27
27
|
// constant tables are ValueTables: `useTranslation(ns)` in `useT(ns)` is no `const ns` of another file
|
|
28
28
|
isParameter = () => false;
|
|
29
29
|
// Shared (cross-file) tables so that exported constants from one file can be
|
|
30
|
-
// resolved when imported in another. These are NOT cleared by reset().
|
|
30
|
+
// resolved when imported in another. These are NOT cleared by reset(). The visitor
|
|
31
|
+
// replaces them by tables that know which module a name is imported from.
|
|
31
32
|
sharedConstants = new expressionResolver.ValueTable(this);
|
|
32
33
|
sharedConstantObjects = new expressionResolver.ValueTable(this);
|
|
33
34
|
constructor(config) {
|
package/dist/esm/cli.js
CHANGED
|
@@ -33,7 +33,7 @@ const program = new Command();
|
|
|
33
33
|
program
|
|
34
34
|
.name('i18next-cli')
|
|
35
35
|
.description('A unified, high-performance i18next CLI.')
|
|
36
|
-
.version('1.
|
|
36
|
+
.version('1.85.0') // This string is replaced with the actual version at build time by rollup
|
|
37
37
|
.addHelpText('after', '\nUsing an AI coding agent? Install the i18next-localization skill: npx skills add i18next/i18next-cli\n');
|
|
38
38
|
// new: global config override option
|
|
39
39
|
program.option('-c, --config <path>', 'Path to i18next-cli config file (overrides detection)');
|
|
@@ -101,6 +101,9 @@ class ASTVisitors {
|
|
|
101
101
|
this.scopeManager.isParameter = (name) => this.expressionResolver.isParameter(name);
|
|
102
102
|
// use shared resolver when provided so captured enums/objects are visible across files
|
|
103
103
|
this.expressionResolver = expressionResolver ?? new ExpressionResolver(this.hooks);
|
|
104
|
+
// `useTranslation(NS)` reads the `NS` of the module it is imported from, like the resolver's tables (#327)
|
|
105
|
+
this.scopeManager.sharedConstants = this.expressionResolver.valueTable();
|
|
106
|
+
this.scopeManager.sharedConstantObjects = this.expressionResolver.valueTable();
|
|
104
107
|
this.callExpressionHandler = new CallExpressionHandler(config, pluginContext, logger, this.expressionResolver, () => this.getCurrentFile(), () => this.getCurrentCode(), (name) => this.scopeManager.resolveSimpleStringIdentifier(name));
|
|
105
108
|
this.jsxHandler = new JSXHandler(config, pluginContext, this.expressionResolver, () => this.getCurrentFile(), () => this.getCurrentCode());
|
|
106
109
|
}
|
|
@@ -174,9 +177,10 @@ class ASTVisitors {
|
|
|
174
177
|
break;
|
|
175
178
|
case 'ImportDeclaration':
|
|
176
179
|
case 'ExportNamedDeclaration':
|
|
180
|
+
case 'ExportAllDeclaration':
|
|
177
181
|
// `import { X as Y }` → ExpressionResolver.sharedImportAliases, resolved
|
|
178
182
|
// once the pre-scan has seen every file; `import * as Types` / `export * as Types`
|
|
179
|
-
// → namespace names.
|
|
183
|
+
// → namespace names; `export * from` / `export { X } from` → barrels.
|
|
180
184
|
this.expressionResolver.captureImportDeclaration(node);
|
|
181
185
|
break;
|
|
182
186
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { glob } from 'glob';
|
|
2
2
|
import { preScanFile, processFile } from './extractor.js';
|
|
3
3
|
import { ConsoleLogger } from '../../utils/logger.js';
|
|
4
|
-
import { createPluginContext, initializePlugins } from '../plugin-manager.js';
|
|
4
|
+
import { createPluginContext, initializePlugins, ConflictError } from '../plugin-manager.js';
|
|
5
5
|
import { ASTVisitors } from './ast-visitors.js';
|
|
6
6
|
import { ExpressionResolver } from '../parsers/expression-resolver.js';
|
|
7
7
|
import { getTsConfigAliases } from '../../config.js';
|
|
@@ -81,6 +81,7 @@ async function findKeys(config, logger = new ConsoleLogger(), fileErrors) {
|
|
|
81
81
|
const sharedExpressionResolver = new ExpressionResolver(hooks);
|
|
82
82
|
sharedExpressionResolver.maxMemberDepth = config.extract.maxTypeDepth ?? 5;
|
|
83
83
|
sharedExpressionResolver.pathAliases = await getTsConfigAliases();
|
|
84
|
+
sharedExpressionResolver.warnOnAmbiguous = !!config.extract.warnOnAmbiguousTypes;
|
|
84
85
|
const astVisitors = new ASTVisitors(otherConfig, pluginContext, logger, hooks, sharedExpressionResolver);
|
|
85
86
|
// 4. "Wire up" the visitor's scope method to the context.
|
|
86
87
|
// This avoids a circular dependency while giving plugins access to the scope.
|
|
@@ -104,6 +105,12 @@ async function findKeys(config, logger = new ConsoleLogger(), fileErrors) {
|
|
|
104
105
|
for (const file of sourceFiles) {
|
|
105
106
|
await processFile(file, plugins, astVisitors, pluginContext, otherConfig, logger, fileErrors);
|
|
106
107
|
}
|
|
108
|
+
// 7a. Names the extraction pass had to guess between same-named declarations of different files
|
|
109
|
+
const { ambiguities } = sharedExpressionResolver;
|
|
110
|
+
if (ambiguities.length > 0 && config.extract.warnOnAmbiguousTypes === 'error')
|
|
111
|
+
throw new ConflictError(ambiguities.join('\n'));
|
|
112
|
+
for (const msg of ambiguities)
|
|
113
|
+
logger.warn(msg);
|
|
107
114
|
// 7. Run onEnd hooks
|
|
108
115
|
for (const plugin of plugins) {
|
|
109
116
|
await plugin.onEnd?.(allKeys);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { resolve, dirname } from 'node:path';
|
|
1
|
+
import { resolve, dirname, relative } from 'node:path';
|
|
2
2
|
import { unwrapParens } from './ast-utils.js';
|
|
3
3
|
|
|
4
4
|
// Whether `next` holds everything `prev` does: every value of a list, every
|
|
@@ -97,6 +97,8 @@ const moduleKey = (path) => path.replace(/(\.d)?\.[cm]?[jt]sx?$/, '');
|
|
|
97
97
|
class ModuleTable extends Map {
|
|
98
98
|
scope;
|
|
99
99
|
holdsValues;
|
|
100
|
+
// declared name -> the modules declaring it
|
|
101
|
+
declarers = new Map();
|
|
100
102
|
constructor(scope, holdsValues = false) {
|
|
101
103
|
super();
|
|
102
104
|
this.scope = scope;
|
|
@@ -108,18 +110,32 @@ class ModuleTable extends Map {
|
|
|
108
110
|
return undefined;
|
|
109
111
|
for (const key of this.scope.keysOf(name)) {
|
|
110
112
|
const value = super.get(key);
|
|
111
|
-
if (value
|
|
112
|
-
|
|
113
|
+
if (value === undefined)
|
|
114
|
+
continue;
|
|
115
|
+
// The bare name holds whichever file declared it last (#327)
|
|
116
|
+
if (!key.includes('#'))
|
|
117
|
+
this.scope.guessed(key, this);
|
|
118
|
+
return value;
|
|
113
119
|
}
|
|
114
120
|
return undefined;
|
|
115
121
|
}
|
|
122
|
+
// [module, what it declares] for every module declaring `name`
|
|
123
|
+
declarations(name) {
|
|
124
|
+
return [...this.declarers.get(name) ?? []].flatMap(module => {
|
|
125
|
+
const value = super.get(`${module}#${name}`);
|
|
126
|
+
return value === undefined ? [] : [[module, value]];
|
|
127
|
+
});
|
|
128
|
+
}
|
|
116
129
|
has(name) {
|
|
117
130
|
return this.scope.keysOf(name).some(key => super.has(key));
|
|
118
131
|
}
|
|
119
132
|
set(name, value) {
|
|
120
133
|
const key = this.scope.declaringKey(name);
|
|
121
|
-
if (key)
|
|
134
|
+
if (key) {
|
|
122
135
|
super.set(key, value);
|
|
136
|
+
this.scope.declare(name);
|
|
137
|
+
this.declarers.set(name, (this.declarers.get(name) ?? new Set()).add(key.slice(0, -name.length - 1)));
|
|
138
|
+
}
|
|
123
139
|
return super.set(name, value);
|
|
124
140
|
}
|
|
125
141
|
delete(name) {
|
|
@@ -235,22 +251,38 @@ class ExpressionResolver {
|
|
|
235
251
|
// names from (see ModuleTable)
|
|
236
252
|
currentModule;
|
|
237
253
|
knownModules = new Set();
|
|
238
|
-
// module -> local name -> { from: the import's resolved path, name: the declared name }
|
|
254
|
+
// module -> local name -> { from: the import's resolved path, if it is one of this project, name: the declared name }
|
|
239
255
|
fileImports = new Map();
|
|
256
|
+
// module -> exported name -> the same for its re-exports: `export { ABC as Letters } from './abc'`
|
|
257
|
+
fileExports = new Map();
|
|
258
|
+
// module -> the paths it re-exports everything of: `export * from './abc'`
|
|
259
|
+
fileStarExports = new Map();
|
|
240
260
|
// module -> namespace import's local name -> the import's resolved path
|
|
241
261
|
fileNamespaces = new Map();
|
|
242
|
-
// module
|
|
243
|
-
|
|
262
|
+
// `module#name` of every name a module declares (variable, type, interface, enum, function), also
|
|
263
|
+
// when its value isn't captured: it shadows the same names declared in other files (#307, #327)
|
|
264
|
+
declaredKeys = new Set();
|
|
265
|
+
// module -> its file, for messages
|
|
266
|
+
moduleFiles = new Map();
|
|
267
|
+
// `exportKey` results: a declaration found stays found, one not found may be in a file the
|
|
268
|
+
// pre-scan has not read yet, so misses are only kept once it is done
|
|
269
|
+
exportKeyCache = new Map();
|
|
270
|
+
preScanned = false;
|
|
244
271
|
// The parameters of the functions being read, innermost last
|
|
245
272
|
parameters = [];
|
|
246
273
|
// tsconfig `paths`, `@api` -> `/abs/src/api`
|
|
247
274
|
pathAliases = {};
|
|
275
|
+
// `extract.warnOnAmbiguousTypes`: collect the names the extraction pass had to guess (see `guessed`)
|
|
276
|
+
warnOnAmbiguous = false;
|
|
277
|
+
ambiguities = [];
|
|
278
|
+
checkedAmbiguous = new Map();
|
|
248
279
|
constructor(hooks) {
|
|
249
280
|
this.hooks = hooks;
|
|
250
281
|
}
|
|
251
282
|
setCurrentFile(file) {
|
|
252
283
|
this.currentModule = moduleKey(resolve(file));
|
|
253
284
|
this.knownModules.add(this.currentModule);
|
|
285
|
+
this.moduleFiles.set(this.currentModule, file);
|
|
254
286
|
}
|
|
255
287
|
// `./api/github-api` / `@api/github-api` imported in the current file -> its path, or undefined
|
|
256
288
|
// for a package or anything else that isn't a file of this project
|
|
@@ -271,19 +303,92 @@ class ExpressionResolver {
|
|
|
271
303
|
}
|
|
272
304
|
// ModuleTable: the keys `name` read in the current file may be stored under, most specific first
|
|
273
305
|
keysOf(name) {
|
|
274
|
-
|
|
306
|
+
// `GH.components` through `import * as GH from './github-api'`, which may be a barrel
|
|
307
|
+
const at = name.lastIndexOf('#');
|
|
308
|
+
if (at >= 0) {
|
|
309
|
+
const key = this.exportKey(name.slice(0, at), name.slice(at + 1));
|
|
310
|
+
return [key ?? name.slice(at + 1)];
|
|
311
|
+
}
|
|
312
|
+
if (!this.currentModule)
|
|
275
313
|
return [name];
|
|
276
|
-
const keys = [];
|
|
277
314
|
const imported = this.fileImports.get(this.currentModule)?.get(name);
|
|
278
|
-
const
|
|
279
|
-
if (
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
//
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
315
|
+
const key = imported && this.exportKey(imported.from, imported.name);
|
|
316
|
+
if (key)
|
|
317
|
+
return [key];
|
|
318
|
+
// The bare name holds whichever file declared it last: a guess, only made for a name this file
|
|
319
|
+
// neither declares nor imports from a file that does (a global, a package, an unscanned file) (#307, #327)
|
|
320
|
+
const own = `${this.currentModule}#${name}`;
|
|
321
|
+
return this.declaredKeys.has(own) ? [own] : [own, name];
|
|
322
|
+
}
|
|
323
|
+
/**
|
|
324
|
+
* The key of the declaration of `name` exported by the module at `path`: in that module, or in the
|
|
325
|
+
* module it re-exports it from, `export { ABC } from './abc'` / `export * from './abc'` (#327)
|
|
326
|
+
*/
|
|
327
|
+
exportKey(path, name) {
|
|
328
|
+
const id = `${path}#${name}`;
|
|
329
|
+
if (this.exportKeyCache.has(id))
|
|
330
|
+
return this.exportKeyCache.get(id);
|
|
331
|
+
const key = this.findExportKey(path, name, new Set());
|
|
332
|
+
if (key || this.preScanned)
|
|
333
|
+
this.exportKeyCache.set(id, key);
|
|
334
|
+
return key;
|
|
335
|
+
}
|
|
336
|
+
// ponytail: one search per imported name, cached; nested barrels of thousands of modules make it ~2x slower
|
|
337
|
+
// than direct imports, a per-module export map (built once the pre-scan is done) if that ever matters
|
|
338
|
+
findExportKey(path, name, seen) {
|
|
339
|
+
const module = path && this.moduleOf(path);
|
|
340
|
+
const key = `${module}#${name}`;
|
|
341
|
+
if (!module || seen.has(key))
|
|
342
|
+
return undefined;
|
|
343
|
+
seen.add(key);
|
|
344
|
+
if (this.declaredKeys.has(key))
|
|
345
|
+
return key;
|
|
346
|
+
// `export { ABC } from './abc'`, or `import { ABC } from './abc'; export { ABC }`
|
|
347
|
+
const via = this.fileExports.get(module)?.get(name) ?? this.fileImports.get(module)?.get(name);
|
|
348
|
+
const found = via && this.findExportKey(via.from, via.name, seen);
|
|
349
|
+
if (found)
|
|
350
|
+
return found;
|
|
351
|
+
for (const from of this.fileStarExports.get(module) ?? []) {
|
|
352
|
+
const starred = this.findExportKey(from, name, seen);
|
|
353
|
+
if (starred)
|
|
354
|
+
return starred;
|
|
355
|
+
}
|
|
356
|
+
return undefined;
|
|
357
|
+
}
|
|
358
|
+
// Record that the current file declares `name`, whether or not its value is captured
|
|
359
|
+
declare(name) {
|
|
360
|
+
if (this.currentModule)
|
|
361
|
+
this.declaredKeys.add(`${this.currentModule}#${name}`);
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* ModuleTable: `name`, read in the current file, resolved to whichever file declared it last. With
|
|
365
|
+
* `warnOnAmbiguous`, the extraction pass records it in `ambiguities` when several files declare it
|
|
366
|
+
* differently (#327).
|
|
367
|
+
*/
|
|
368
|
+
guessed(name, table) {
|
|
369
|
+
if (!this.warnOnAmbiguous || this.recording || this.replaying || !this.currentModule)
|
|
370
|
+
return;
|
|
371
|
+
const declared = this.fileImports.get(this.currentModule)?.get(name)?.name ?? name;
|
|
372
|
+
const checked = this.checkedAmbiguous.get(table) ?? new Set();
|
|
373
|
+
this.checkedAmbiguous.set(table, checked);
|
|
374
|
+
if (checked.has(`${this.currentModule}#${declared}`))
|
|
375
|
+
return;
|
|
376
|
+
checked.add(`${this.currentModule}#${declared}`);
|
|
377
|
+
const found = table.declarations(declared);
|
|
378
|
+
// AST nodes of identical declarations differ only by their position, unions only by their order
|
|
379
|
+
const variants = new Set(found.map(([, value]) => JSON.stringify(value, (k, v) => k === 'span' || k === 'ctxt' ? undefined : Array.isArray(v) && v.every(x => typeof x === 'string') ? [...v].sort() : v)));
|
|
380
|
+
if (variants.size < 2)
|
|
381
|
+
return;
|
|
382
|
+
const fileOf = (module) => relative(process.cwd(), this.moduleFiles.get(module) ?? module);
|
|
383
|
+
const file = fileOf(this.currentModule);
|
|
384
|
+
const msg = `Cannot tell which "${declared}" ${file} means: ${found.map(([module]) => fileOf(module)).join(', ')} declare it differently, ` +
|
|
385
|
+
`and ${file} neither declares it nor imports it from a file the extractor can follow. Keys built from it may come from the wrong one.`;
|
|
386
|
+
if (!this.ambiguities.includes(msg))
|
|
387
|
+
this.ambiguities.push(msg);
|
|
388
|
+
}
|
|
389
|
+
// A cross-file table of values that knows which module a name is imported from, for ScopeManager
|
|
390
|
+
valueTable() {
|
|
391
|
+
return new ModuleTable(this, true);
|
|
287
392
|
}
|
|
288
393
|
// ValueTable / ModuleTable: whether `name` is a parameter of a function being read
|
|
289
394
|
isParameter(name) {
|
|
@@ -369,6 +474,7 @@ class ExpressionResolver {
|
|
|
369
474
|
this.applyImportAliases();
|
|
370
475
|
this.replays = [];
|
|
371
476
|
this.resetFileSymbols();
|
|
477
|
+
this.preScanned = true;
|
|
372
478
|
}
|
|
373
479
|
/**
|
|
374
480
|
* Write an entry of a cross-file table. While replaying, an entry only grows:
|
|
@@ -458,11 +564,7 @@ class ExpressionResolver {
|
|
|
458
564
|
if (node.id.type !== 'Identifier')
|
|
459
565
|
return;
|
|
460
566
|
const name = node.id.value;
|
|
461
|
-
|
|
462
|
-
if (!this.fileVariables.has(this.currentModule))
|
|
463
|
-
this.fileVariables.set(this.currentModule, new Set());
|
|
464
|
-
this.fileVariables.get(this.currentModule).add(name);
|
|
465
|
-
}
|
|
567
|
+
this.declare(name);
|
|
466
568
|
// `const items: IProps[] = …` → remember the element's member map so
|
|
467
569
|
// `items.map(({ size }) => …)` can bind the callback parameter.
|
|
468
570
|
const idTypeAnnotation = this.extractTypeAnnotation(node.id);
|
|
@@ -583,6 +685,7 @@ class ExpressionResolver {
|
|
|
583
685
|
const name = node?.id?.type === 'Identifier' ? node.id.value : undefined;
|
|
584
686
|
if (!name)
|
|
585
687
|
return;
|
|
688
|
+
this.declare(name);
|
|
586
689
|
// SWC puts the actual type in `.typeAnnotation`
|
|
587
690
|
const tsType = node.typeAnnotation ?? node.typeAnn;
|
|
588
691
|
if (!tsType)
|
|
@@ -625,10 +728,19 @@ class ExpressionResolver {
|
|
|
625
728
|
*/
|
|
626
729
|
captureImportDeclaration(node) {
|
|
627
730
|
try {
|
|
628
|
-
const
|
|
629
|
-
const
|
|
731
|
+
const module = this.currentModule;
|
|
732
|
+
const from = typeof node?.source?.value === 'string' ? this.importPath(node.source.value) : undefined;
|
|
733
|
+
// `export * from './abc'`
|
|
734
|
+
if (node?.type === 'ExportAllDeclaration') {
|
|
735
|
+
if (module && from)
|
|
736
|
+
this.fileStarExports.set(module, [...this.fileStarExports.get(module) ?? [], from]);
|
|
737
|
+
return;
|
|
738
|
+
}
|
|
739
|
+
// `import { ABC } from …` / `export { ABC } from …`: local or exported name -> where it is declared
|
|
740
|
+
const table = node?.type === 'ImportDeclaration' ? this.fileImports : node?.source ? this.fileExports : undefined;
|
|
741
|
+
const imports = module && table ? (table.get(module) ?? new Map()) : undefined;
|
|
630
742
|
if (imports)
|
|
631
|
-
|
|
743
|
+
table.set(module, imports);
|
|
632
744
|
for (const spec of node?.specifiers ?? []) {
|
|
633
745
|
// `import * as Types from …` / `export * as Types from …`
|
|
634
746
|
if (spec?.type === 'ImportNamespaceSpecifier' && spec.local?.value) {
|
|
@@ -641,6 +753,9 @@ class ExpressionResolver {
|
|
|
641
753
|
}
|
|
642
754
|
if (spec?.type === 'ExportNamespaceSpecifier' && spec.name?.value)
|
|
643
755
|
this.sharedNamespaceNames.add(spec.name.value);
|
|
756
|
+
// `export { ABC as Letters } from './abc'`
|
|
757
|
+
if (spec?.type === 'ExportSpecifier' && spec.orig?.value)
|
|
758
|
+
imports?.set(spec.exported?.value ?? spec.orig.value, { from, name: spec.orig.value });
|
|
644
759
|
if (spec?.type !== 'ImportSpecifier')
|
|
645
760
|
continue;
|
|
646
761
|
const local = spec.local?.value;
|
|
@@ -648,8 +763,8 @@ class ExpressionResolver {
|
|
|
648
763
|
if (local && imported && local !== imported)
|
|
649
764
|
this.sharedImportAliases.set(local, imported);
|
|
650
765
|
// `import { components as githubComponents } from './github-api'` → that module's `components`
|
|
651
|
-
if (local && imported
|
|
652
|
-
imports
|
|
766
|
+
if (local && imported)
|
|
767
|
+
imports?.set(local, { from, name: imported });
|
|
653
768
|
}
|
|
654
769
|
}
|
|
655
770
|
catch {
|
|
@@ -718,6 +833,7 @@ class ExpressionResolver {
|
|
|
718
833
|
const name = node?.id?.type === 'Identifier' ? node.id.value : undefined;
|
|
719
834
|
if (!name)
|
|
720
835
|
return;
|
|
836
|
+
this.declare(name);
|
|
721
837
|
if (this.recording)
|
|
722
838
|
this.replays.push(this.inCurrentFile(() => this.captureInterfaceDeclaration(node)));
|
|
723
839
|
const params = node.typeParams?.parameters;
|
|
@@ -1023,6 +1139,7 @@ class ExpressionResolver {
|
|
|
1023
1139
|
const name = node?.identifier?.value ?? node?.id?.value;
|
|
1024
1140
|
if (!name)
|
|
1025
1141
|
return;
|
|
1142
|
+
this.declare(name);
|
|
1026
1143
|
// SWC places the return type annotation in `.function.returnType` (FunctionDeclaration)
|
|
1027
1144
|
// or directly in `.returnType` (FunctionExpression / ArrowFunctionExpression).
|
|
1028
1145
|
this.captureFunctionReturn(name, node.function ?? node);
|
|
@@ -1221,6 +1338,7 @@ class ExpressionResolver {
|
|
|
1221
1338
|
const name = node.id.type === 'Identifier' ? node.id.value : undefined;
|
|
1222
1339
|
if (!name)
|
|
1223
1340
|
return;
|
|
1341
|
+
this.declare(name);
|
|
1224
1342
|
const map = {};
|
|
1225
1343
|
for (const m of node.members) {
|
|
1226
1344
|
if (!m || !m.id)
|
|
@@ -25,7 +25,8 @@ class ScopeManager {
|
|
|
25
25
|
// constant tables are ValueTables: `useTranslation(ns)` in `useT(ns)` is no `const ns` of another file
|
|
26
26
|
isParameter = () => false;
|
|
27
27
|
// Shared (cross-file) tables so that exported constants from one file can be
|
|
28
|
-
// resolved when imported in another. These are NOT cleared by reset().
|
|
28
|
+
// resolved when imported in another. These are NOT cleared by reset(). The visitor
|
|
29
|
+
// replaces them by tables that know which module a name is imported from.
|
|
29
30
|
sharedConstants = new ValueTable(this);
|
|
30
31
|
sharedConstantObjects = new ValueTable(this);
|
|
31
32
|
constructor(config) {
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ast-visitors.d.ts","sourceRoot":"","sources":["../../../src/extractor/core/ast-visitors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAQ,MAAM,WAAW,CAAA;AAC7C,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,EAAE,eAAe,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAC3H,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,kBAAkB,EAAiB,MAAM,mCAAmC,CAAA;AAuCrF;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,QAAQ,CAAC,aAAa,CAAe;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuC;IAC9D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAQ;IAC/B,OAAO,CAAC,KAAK,CAAiB;IAE9B,IAAW,UAAU,gBAEpB;IAGD,SAAgB,YAAY,EAAE,YAAY,EAAE,CAAK;IAEjD,SAAgB,YAAY,EAAE,YAAY,CAAA;IAC1C,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAoB;IACvD,OAAO,CAAC,QAAQ,CAAC,qBAAqB,CAAuB;IAC7D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAY;IACvC,OAAO,CAAC,WAAW,CAAa;IAChC,OAAO,CAAC,WAAW,CAAa;IAEhC,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAA0B;IAE9D;;;;;;OAMG;gBAED,MAAM,EAAE,IAAI,CAAC,oBAAoB,EAAE,SAAS,CAAC,EAC7C,aAAa,EAAE,aAAa,EAC5B,MAAM,EAAE,MAAM,EACd,KAAK,CAAC,EAAE,eAAe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AC;IAAC,YAAY,EAAE,YAAY,EAAE,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"key-finder.d.ts","sourceRoot":"","sources":["../../../src/extractor/core/key-finder.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,oBAAoB,EAAmB,MAAM,gBAAgB,CAAA;AAQjG;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAsB,QAAQ,CAC5B,MAAM,EAAE,oBAAoB,EAC5B,MAAM,GAAE,MAA4B,EACpC,UAAU,CAAC,EAAE,MAAM,EAAE,GACpB,OAAO,CAAC;IAAE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAAC,UAAU,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAAC,YAAY,EAAE,YAAY,EAAE,CAAA;CAAE,CAAC,CAoGxG"}
|
|
@@ -39,15 +39,39 @@ export declare class ExpressionResolver {
|
|
|
39
39
|
private currentModule;
|
|
40
40
|
private knownModules;
|
|
41
41
|
private fileImports;
|
|
42
|
+
private fileExports;
|
|
43
|
+
private fileStarExports;
|
|
42
44
|
private fileNamespaces;
|
|
43
|
-
private
|
|
45
|
+
private declaredKeys;
|
|
46
|
+
private moduleFiles;
|
|
47
|
+
private exportKeyCache;
|
|
48
|
+
private preScanned;
|
|
44
49
|
private parameters;
|
|
45
50
|
pathAliases: Record<string, string>;
|
|
51
|
+
warnOnAmbiguous: boolean;
|
|
52
|
+
ambiguities: string[];
|
|
53
|
+
private checkedAmbiguous;
|
|
46
54
|
constructor(hooks: ASTVisitorHooks);
|
|
47
55
|
setCurrentFile(file: string): void;
|
|
48
56
|
private importPath;
|
|
49
57
|
private moduleOf;
|
|
50
58
|
keysOf(name: string): string[];
|
|
59
|
+
/**
|
|
60
|
+
* The key of the declaration of `name` exported by the module at `path`: in that module, or in the
|
|
61
|
+
* module it re-exports it from, `export { ABC } from './abc'` / `export * from './abc'` (#327)
|
|
62
|
+
*/
|
|
63
|
+
private exportKey;
|
|
64
|
+
private findExportKey;
|
|
65
|
+
declare(name: string): void;
|
|
66
|
+
/**
|
|
67
|
+
* ModuleTable: `name`, read in the current file, resolved to whichever file declared it last. With
|
|
68
|
+
* `warnOnAmbiguous`, the extraction pass records it in `ambiguities` when several files declare it
|
|
69
|
+
* differently (#327).
|
|
70
|
+
*/
|
|
71
|
+
guessed(name: string, table: {
|
|
72
|
+
declarations(name: string): Array<[string, unknown]>;
|
|
73
|
+
}): void;
|
|
74
|
+
valueTable<V>(): Map<string, V>;
|
|
51
75
|
isParameter(name: string): boolean;
|
|
52
76
|
/**
|
|
53
77
|
* Hide the values declared under the names of `fn`'s parameters while its body is read.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expression-resolver.d.ts","sourceRoot":"","sources":["../../../src/extractor/parsers/expression-resolver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAkD,MAAM,WAAW,CAAA;AAC7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AA2BrD,eAAO,MAAM,aAAa,GAAI,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,EAAE,MAAM,MAAM,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,SAetH,CAAA;AAsCD,qBAAa,UAAU,CAAC,CAAC,CAAE,SAAQ,GAAG,CAAC,MAAM,EAAE,CAAC,CAAC;IAClC,OAAO,CAAC,QAAQ,CAAC,KAAK;gBAAL,KAAK,EAAE;QAAE,WAAW,CAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE;IAI5E,GAAG,CAAE,IAAI,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS;CAGlC;
|
|
1
|
+
{"version":3,"file":"expression-resolver.d.ts","sourceRoot":"","sources":["../../../src/extractor/parsers/expression-resolver.ts"],"names":[],"mapp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M,GAAG,MAAM,EAAE,GAAG,SAAS;IAQ7D,6FAA6F;IACtF,eAAe,CAAE,IAAI,EAAE,GAAG,GAAG,gBAAgB,GAAG,SAAS;IAMhE;;;;OAIG;IACI,YAAY,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS;IAMtE,wFAAwF;IACjF,aAAa,CAAE,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,SAAS;IAOzD;;;;;OAKG;IACH,sBAAsB,CAAE,IAAI,EAAE,GAAG,GAAG,IAAI;IAyBxC;;;;;;;OAOG;IACH,kCAAkC,CAAE,UAAU,EAAE,UAAU,GAAG,MAAM,EAAE;IAKrE;;;;;;;OAOG;IACH,8BAA8B,CAAE,UAAU,EAAE,UAAU,GAAG,MAAM,EAAE;IAKjE;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,yCAAyC;IA+OjD,OAAO,CAAC,mCAAmC;IAwI3C;;;;;;OAMG;IACH,OAAO,CAAC,6CAA6C;IAyBrD;;;;;;OAMG;IACH,OAAO,CAAC,kDAAkD;CAwB3D"}
|
|
@@ -11,8 +11,8 @@ export declare class ScopeManager {
|
|
|
11
11
|
private paramDefaults;
|
|
12
12
|
identifierFallback?: (name: string) => string | undefined;
|
|
13
13
|
isParameter: (name: string) => boolean;
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
sharedConstants: Map<string, string>;
|
|
15
|
+
sharedConstantObjects: Map<string, Record<string, string>>;
|
|
16
16
|
constructor(config: Omit<I18nextToolkitConfig, 'plugins'>);
|
|
17
17
|
/**
|
|
18
18
|
* Recursively unwraps TypeScript type assertion wrappers to reach the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scope-manager.d.ts","sourceRoot":"","sources":["../../../src/extractor/parsers/scope-manager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,UAAU,EAEV,kBAAkB,EAMnB,MAAM,WAAW,CAA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IA4EtC;;;;;;;;;;OAUG;IACH,OAAO,CAAC,yBAAyB;IAiBjC;;;;;;OAMG;IACH;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,YAAY;IAiDpB;;;;OAIG;IACH,OAAO,CAAC,6BAA6B;IAiCrC,OAAO,CAAC,gBAAgB;IAexB;;;;;;;;;OASG;IACH,OAAO,CAAC,qCAAqC;IAqB7C;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,oBAAoB;IAgBnC;;;OAGG;IACH,OAAO,CAAC,6BAA6B;IAyBrC;;;;;;;;;;;OAWG;IACH,kBAAkB,CAAE,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI;IAwBlF;;;;;OAKG;IACH,OAAO,CAAC,4BAA4B;CA+DrC"}
|
package/types/types.d.ts
CHANGED
|
@@ -227,6 +227,18 @@ export interface I18nextToolkitConfig {
|
|
|
227
227
|
* - `false` or omitted: silent (default)
|
|
228
228
|
*/
|
|
229
229
|
warnOnConflicts?: boolean | 'warn' | 'error';
|
|
230
|
+
/**
|
|
231
|
+
* Warn (or error) when the extractor has to guess which declaration a name means: a type, interface,
|
|
232
|
+
* enum, constant or function is declared differently in more than one scanned file, and the file reading
|
|
233
|
+
* it neither declares it nor imports it from a file the extractor can follow (it is a global, or comes
|
|
234
|
+
* from a package, an unscanned file, a path outside tsconfig `paths`, or `export { default as X }`).
|
|
235
|
+
* Keys built from it may then come from the wrong declaration. It also reports guesses no key ends up
|
|
236
|
+
* built from, e.g. a parameter typed by a package's `Props` while two scanned files declare their own.
|
|
237
|
+
* - `true` or `'warn'`: log a warning for each such name
|
|
238
|
+
* - `'error'`: abort extraction, listing them
|
|
239
|
+
* - `false` or omitted: silent (default)
|
|
240
|
+
*/
|
|
241
|
+
warnOnAmbiguousTypes?: boolean | 'warn' | 'error';
|
|
230
242
|
};
|
|
231
243
|
/** Configuration options for linter */
|
|
232
244
|
lint?: {
|
package/types/types.d.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