@depup/i18next 25.8.18-depup.2

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/package.json ADDED
@@ -0,0 +1,142 @@
1
+ {
2
+ "name": "@depup/i18next",
3
+ "version": "25.8.18-depup.2",
4
+ "description": "[DepUp] i18next internationalization framework",
5
+ "main": "./dist/cjs/i18next.js",
6
+ "module": "./dist/esm/i18next.js",
7
+ "types": "./index.d.ts",
8
+ "exports": {
9
+ "./package.json": "./package.json",
10
+ ".": {
11
+ "import": {
12
+ "types": "./index.d.mts",
13
+ "default": "./dist/esm/i18next.js"
14
+ },
15
+ "require": {
16
+ "types": "./index.d.ts",
17
+ "default": "./dist/cjs/i18next.js"
18
+ }
19
+ }
20
+ },
21
+ "keywords": [
22
+ "depup",
23
+ "dependency-bumped",
24
+ "updated-deps",
25
+ "i18next",
26
+ "internationalization",
27
+ "i18n",
28
+ "translation",
29
+ "localization",
30
+ "l10n",
31
+ "globalization",
32
+ "gettext"
33
+ ],
34
+ "homepage": "https://www.i18next.com",
35
+ "bugs": "https://github.com/i18next/i18next/issues",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/i18next/i18next.git"
39
+ },
40
+ "funding": [
41
+ {
42
+ "type": "individual",
43
+ "url": "https://locize.com"
44
+ },
45
+ {
46
+ "type": "individual",
47
+ "url": "https://locize.com/i18next.html"
48
+ },
49
+ {
50
+ "type": "individual",
51
+ "url": "https://www.i18next.com/how-to/faq#i18next-is-awesome.-how-can-i-support-the-project"
52
+ }
53
+ ],
54
+ "dependencies": {
55
+ "@babel/runtime": "^7.29.2"
56
+ },
57
+ "peerDependencies": {
58
+ "typescript": "^5"
59
+ },
60
+ "peerDependenciesMeta": {
61
+ "typescript": {
62
+ "optional": true
63
+ }
64
+ },
65
+ "devDependencies": {
66
+ "@arktype/attest": "^0.56.0",
67
+ "@babel/core": "^7.29.0",
68
+ "@babel/plugin-transform-async-generator-functions": "^7.29.0",
69
+ "@babel/plugin-transform-modules-commonjs": "^7.28.6",
70
+ "@babel/plugin-transform-runtime": "^7.29.0",
71
+ "@babel/polyfill": "^7.12.1",
72
+ "@babel/preset-env": "^7.29.0",
73
+ "@babel/preset-react": "^7.28.5",
74
+ "@babel/register": "^7.28.6",
75
+ "@rollup/plugin-babel": "^7.0.0",
76
+ "@rollup/plugin-commonjs": "^29.0.2",
77
+ "@rollup/plugin-node-resolve": "^16.0.3",
78
+ "@rollup/plugin-terser": "^1.0.0",
79
+ "@types/node": "^25.3.5",
80
+ "@typescript-eslint/eslint-plugin": "^8.57.0",
81
+ "@typescript-eslint/parser": "^8.57.0",
82
+ "@vitest/coverage-v8": "^3.2.4",
83
+ "babelify": "^10.0.0",
84
+ "coveralls": "^3.1.1",
85
+ "cpy-cli": "^7.0.0",
86
+ "eslint": "^8.57.1",
87
+ "eslint-config-airbnb-base": "^15.0.0",
88
+ "eslint-config-prettier": "^10.1.8",
89
+ "eslint-import-resolver-typescript": "^4.4.4",
90
+ "eslint-plugin-import": "^2.32.0",
91
+ "gh-release": "^7.0.2",
92
+ "husky": "^9.1.7",
93
+ "i18next-browser-languagedetector": "^8.2.1",
94
+ "i18next-fs-backend": "^2.6.1",
95
+ "i18next-http-backend": "^3.0.2",
96
+ "i18next-localstorage-cache": "^1.1.1",
97
+ "i18next-sprintf-postprocessor": "^0.2.2",
98
+ "lint-staged": "^16.3.2",
99
+ "prettier": "^3.8.1",
100
+ "rimraf": "^6.1.3",
101
+ "rollup": "^4.59.0",
102
+ "sinon": "^19.0.5",
103
+ "typescript": "^5.9.3",
104
+ "vitest": "^3.2.4"
105
+ },
106
+ "scripts": {
107
+ "lint": "eslint src typescript test \"./*.{ts,mts,mjs}\"",
108
+ "format": "prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --check",
109
+ "format:fix": "prettier \"{,**/}*.{ts,tsx,mts,js,mjs,json,md}\" --write",
110
+ "test": "vitest --run",
111
+ "test:coverage": "vitest --coverage --run",
112
+ "test:runtime": "vitest --project runtime",
113
+ "test:compatibility": "vitest --project compatibility",
114
+ "test:typescript": "vitest --workspace vitest.workspace.typescript.mts",
115
+ "test:local": "vitest --workspace vitest.workspace.local.mts",
116
+ "build": "rimraf dist && rollup -c && echo '{\"type\":\"module\"}' > dist/esm/package.json && cpy \"./dist/umd/*.js\" ./",
117
+ "fix_dist_package": "node -e 'console.log(`{\"type\":\"module\",\"version\":\"${process.env.npm_package_version}\"}`)' > dist/esm/package.json",
118
+ "fix_jsr_package": "node -e 'const fs=require(\"fs\");const p=\"jsr.json\";const j=JSON.parse(fs.readFileSync(p,\"utf8\"));j.version=process.env.npm_package_version||j.version;fs.writeFileSync(p,JSON.stringify(j,null,2)+\"\\n\")' && git commit -a -m 'jsr update' && git push",
119
+ "publish_jsr": "deno publish --no-check",
120
+ "preversion": "npm run test && npm run build && git push",
121
+ "postversion": "npm run fix_dist_package && npm run fix_jsr_package && git push && git push --tags && npm run release && npm run publish_jsr",
122
+ "release": "gh-release"
123
+ },
124
+ "author": "Jan Mühlemann <jan.muehlemann@gmail.com> (https://github.com/jamuhl)",
125
+ "license": "MIT",
126
+ "lint-staged": {
127
+ "*": "prettier --write --ignore-unknown"
128
+ },
129
+ "depup": {
130
+ "changes": {
131
+ "@babel/runtime": {
132
+ "from": "^7.28.6",
133
+ "to": "^7.29.2"
134
+ }
135
+ },
136
+ "depsUpdated": 1,
137
+ "originalPackage": "i18next",
138
+ "originalVersion": "25.8.18",
139
+ "processedAt": "2026-03-16T23:27:47.105Z",
140
+ "smokeTest": "passed"
141
+ }
142
+ }
@@ -0,0 +1,77 @@
1
+ // Types
2
+
3
+ export type $Dictionary<T = unknown> = { [key: string]: T };
4
+
5
+ export type $SpecialObject = object | Array<string | object>;
6
+
7
+ // Types Operators
8
+
9
+ export type $Prune<T> =
10
+ | never
11
+ | { [K in keyof T as [keyof T[K]] extends [never] ? never : K]: T[K] };
12
+
13
+ /** All the way down. */
14
+ export interface $Turtles {
15
+ [x: string]: $Turtles;
16
+ }
17
+
18
+ export type $MergeBy<T, K> = Omit<T, keyof K> & K;
19
+
20
+ export type $OmitArrayKeys<Arr> = Arr extends readonly any[] ? Omit<Arr, keyof any[]> : Arr;
21
+
22
+ export type $PreservedValue<Value, Fallback> = [Value] extends [never] ? Fallback : Value;
23
+
24
+ export type $NormalizeIntoArray<T extends unknown | readonly unknown[]> =
25
+ T extends readonly unknown[] ? T : [T];
26
+
27
+ /**
28
+ * @typeParam T
29
+ * @example
30
+ * ```
31
+ * $UnionToIntersection<{foo: {bar: string} | {asd: boolean}}> = {foo: {bar: string} & {asd: boolean}}
32
+ * ```
33
+ *
34
+ * @see https://stackoverflow.com/questions/50374908/transform-union-type-to-intersection-type
35
+ */
36
+ type $UnionToIntersection<T> = (T extends unknown ? (k: T) => void : never) extends (
37
+ k: infer I,
38
+ ) => void
39
+ ? I
40
+ : never;
41
+
42
+ /**
43
+ * @typeParam TPath union of strings
44
+ * @typeParam TValue value of the record
45
+ * @example
46
+ * ```
47
+ * $StringKeyPathToRecord<'foo.bar' | 'asd'> = {foo: {bar: string} | {asd: boolean}}
48
+ * ```
49
+ */
50
+ type $StringKeyPathToRecordUnion<
51
+ TPath extends string,
52
+ TValue,
53
+ > = TPath extends `${infer TKey}.${infer Rest}`
54
+ ? { [Key in TKey]: $StringKeyPathToRecord<Rest, TValue> }
55
+ : { [Key in TPath]: TValue };
56
+
57
+ /**
58
+ * Used to intersect output of {@link $StringKeyPathToRecordUnion}
59
+ *
60
+ * @typeParam TPath union of strings
61
+ * @typeParam TValue value of the record
62
+ * @example
63
+ * ```
64
+ * $StringKeyPathToRecord<'foo.bar' | 'asd'> = {foo: {bar: string} & {asd: boolean}}
65
+ * ```
66
+ */
67
+ export type $StringKeyPathToRecord<TPath extends string, TValue> = $UnionToIntersection<
68
+ $StringKeyPathToRecordUnion<TPath, TValue>
69
+ >;
70
+
71
+ /**
72
+ * We could use NoInfer typescript build-in utility,
73
+ * however this project still supports ts < 5.4.
74
+ *
75
+ * @see https://github.com/millsp/ts-toolbelt/blob/master/sources/Function/NoInfer.ts
76
+ */
77
+ export type $NoInfer<A> = [A][A extends any ? 0 : never];