i18ntk 2.3.0 → 2.3.1

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
@@ -1,4 +1,4 @@
1
- # i18ntk v2.3.0
1
+ # i18ntk v2.3.1
2
2
 
3
3
  Zero-dependency internationalization toolkit for setup, scanning, analysis, validation, usage tracking, and translation completion.
4
4
 
@@ -9,12 +9,12 @@ Zero-dependency internationalization toolkit for setup, scanning, analysis, vali
9
9
  [![node](https://img.shields.io/badge/node-%3E%3D16-339933)](https://nodejs.org)
10
10
  [![dependencies](https://img.shields.io/badge/dependencies-0-success)](https://www.npmjs.com/package/i18ntk)
11
11
  [![license](https://img.shields.io/badge/license-MIT-yellow.svg)](LICENSE)
12
- [![socket](https://socket.dev/api/badge/npm/package/i18ntk/2.3.0)](https://socket.dev/npm/package/i18ntk/overview/2.3.0)
12
+ [![socket](https://socket.dev/api/badge/npm/package/i18ntk/2.3.1)](https://socket.dev/npm/package/i18ntk/overview/2.3.1)
13
13
 
14
14
  ## Upgrade Notice
15
15
 
16
- Versions earlier than `2.3.0` may contain known stability and security issues.
17
- They are considered unsupported for production use. Upgrade to `2.3.0` or newer.
16
+ Versions earlier than `2.3.1` may contain known stability and security issues.
17
+ They are considered unsupported for production use. Upgrade to `2.3.1` or newer.
18
18
 
19
19
  ## What i18ntk Does
20
20
 
@@ -151,7 +151,7 @@ Example `.i18ntk-config`:
151
151
 
152
152
  ```json
153
153
  {
154
- "version": "2.3.0",
154
+ "version": "2.3.1",
155
155
  "sourceDir": "./locales",
156
156
  "i18nDir": "./locales",
157
157
  "outputDir": "./i18ntk-reports",
@@ -174,7 +174,7 @@ See [docs/api/CONFIGURATION.md](docs/api/CONFIGURATION.md) for the full configur
174
174
  - [Runtime API Guide](docs/runtime.md)
175
175
  - [Scanner Guide](docs/scanner-guide.md)
176
176
  - [Environment Variables](docs/environment-variables.md)
177
- - [Migration Guide v2.3.0](docs/migration-guide-v2.3.0.md)
177
+ - [Migration Guide v2.3.1](docs/migration-guide-v2.3.1.md)
178
178
  - [Optimization Prompt](docs/development/package-optimization-prompt.md)
179
179
 
180
180
  ## License
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "i18ntk",
3
- "version": "2.3.0",
3
+ "version": "2.3.1",
4
4
  "description": "🚀 The fastest internationalization toolkit with 97% performance boost! Zero-dependency, enterprise-grade internationalization for React, Vue, Angular, Python, Java, PHP & more. Features PIN protection, auto framework detection, 7+ UI languages, and comprehensive translation management. Perfect for startups to enterprises.",
5
5
  "keywords": [
6
6
  "i18n",
@@ -227,17 +227,18 @@
227
227
  },
228
228
  "preferGlobal": true,
229
229
  "versionInfo": {
230
- "version": "2.3.0",
230
+ "version": "2.3.1",
231
231
  "releaseDate": "12/04/2026",
232
232
  "lastUpdated": "12/04/2026",
233
- "maintainer": "Vladimir Noskov",
233
+ "maintainer": "Vlad Noskov",
234
234
  "changelog": "./CHANGELOG.md",
235
235
  "documentation": "./README.md",
236
236
  "apiReference": "./docs/api/API_REFERENCE.md",
237
237
  "majorChanges": [
238
+ "HOTFIX: Removed deprecated package-path fallback that caused production build warnings for non-exported subpaths.",
238
239
  "CRITICAL FIX: Resolved sizing and usage-analysis regressions in v2 command flow.",
239
240
  "PACKAGING: Reduced publish footprint by removing internal development scripts and legacy fixed-file artifacts.",
240
- "SECURITY: Hardened release checks and added explicit support guidance to update from pre-2.3.0 versions.",
241
+ "SECURITY: Hardened release checks and added explicit support guidance to update from pre-2.3.1 versions.",
241
242
  "I18N: Completed internal UI locale parity and actionable untranslated-key cleanup across supported languages."
242
243
  ],
243
244
  "breakingChanges": [],
@@ -263,7 +264,7 @@
263
264
  "spring-boot": ">=2.5.0",
264
265
  "laravel": ">=8.0.0"
265
266
  },
266
- "supportPolicy": "Versions earlier than 2.3.0 may be unstable or insecure. Upgrade to 2.3.0 or newer."
267
+ "supportPolicy": "Versions earlier than 2.3.1 may be unstable or insecure. Upgrade to 2.3.1 or newer."
267
268
  },
268
269
  "_comment": "This package is zero-dependency and uses only native Node.js modules"
269
270
  }
@@ -100,19 +100,15 @@ function pkgUiLocalesDirViaThisFile() {
100
100
  return path.resolve(__dirname, '..', 'ui-locales');
101
101
  }
102
102
 
103
- function pkgUiLocalesDirViaResolve() {
104
- try {
105
- // Try the new correct path first (ui-locales/en.json)
106
- const enJson = require.resolve('i18ntk/ui-locales/en.json');
107
- return path.dirname(enJson);
108
- } catch {
109
- try {
110
- // Fallback to the old incorrect path for backward compatibility
111
- const enJson = require.resolve('i18ntk/resources/i18n/ui-locales/en.json');
112
- return path.dirname(enJson);
113
- } catch { return null; }
114
- }
115
- }
103
+ function pkgUiLocalesDirViaResolve() {
104
+ try {
105
+ // Resolve using the current exported package path.
106
+ const enJson = require.resolve('i18ntk/ui-locales/en.json');
107
+ return path.dirname(enJson);
108
+ } catch {
109
+ return null;
110
+ }
111
+ }
116
112
 
117
113
  // Removed legacyResourcesUiLocalesDir as resources/i18n/ui-locales is deprecated
118
114