@youversion/platform-core 1.8.1 → 1.9.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/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
- package/src/__tests__/MockLanguages.ts +6 -6
- package/src/schemas/language.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @youversion/platform-core@1.
|
|
2
|
+
> @youversion/platform-core@1.9.0 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/core
|
|
3
3
|
> tsup src/index.ts --format cjs,esm --dts
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
11
|
[32mESM[39m [1mdist/index.js [22m[32m41.76 KB[39m
|
|
12
|
-
[32mESM[39m ⚡️ Build success in
|
|
12
|
+
[32mESM[39m ⚡️ Build success in 34ms
|
|
13
13
|
[32mCJS[39m [1mdist/index.cjs [22m[32m43.59 KB[39m
|
|
14
|
-
[32mCJS[39m ⚡️ Build success in
|
|
14
|
+
[32mCJS[39m ⚡️ Build success in 35ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[32m32.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m32.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 1915ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m32.91 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m32.91 KB[39m
|
package/CHANGELOG.md
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -166,7 +166,7 @@ declare const LanguageSchema: z.ZodObject<{
|
|
|
166
166
|
}>>;
|
|
167
167
|
writing_population: z.ZodOptional<z.ZodNumber>;
|
|
168
168
|
speaking_population: z.ZodOptional<z.ZodNumber>;
|
|
169
|
-
|
|
169
|
+
default_bible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
170
170
|
}, z.core.$strip>;
|
|
171
171
|
type Language = Readonly<z.infer<typeof LanguageSchema>>;
|
|
172
172
|
|
package/dist/index.d.ts
CHANGED
|
@@ -166,7 +166,7 @@ declare const LanguageSchema: z.ZodObject<{
|
|
|
166
166
|
}>>;
|
|
167
167
|
writing_population: z.ZodOptional<z.ZodNumber>;
|
|
168
168
|
speaking_population: z.ZodOptional<z.ZodNumber>;
|
|
169
|
-
|
|
169
|
+
default_bible_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
170
170
|
}, z.core.$strip>;
|
|
171
171
|
type Language = Readonly<z.infer<typeof LanguageSchema>>;
|
|
172
172
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youversion/platform-core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
"tsup": "8.5.0",
|
|
31
31
|
"typescript": "5.9.3",
|
|
32
32
|
"vitest": "4.0.4",
|
|
33
|
-
"@internal/
|
|
34
|
-
"@internal/
|
|
33
|
+
"@internal/tsconfig": "0.0.0",
|
|
34
|
+
"@internal/eslint-config": "0.0.0"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"zod": "4.1.12"
|
|
@@ -14,7 +14,7 @@ export const mockLanguages: Language[] = [
|
|
|
14
14
|
text_direction: 'ltr',
|
|
15
15
|
writing_population: 1500000000,
|
|
16
16
|
speaking_population: 1500000000,
|
|
17
|
-
|
|
17
|
+
default_bible_id: null,
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
id: 'es',
|
|
@@ -29,7 +29,7 @@ export const mockLanguages: Language[] = [
|
|
|
29
29
|
text_direction: 'ltr',
|
|
30
30
|
writing_population: 500000000,
|
|
31
31
|
speaking_population: 500000000,
|
|
32
|
-
|
|
32
|
+
default_bible_id: null,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
35
|
id: 'fr',
|
|
@@ -44,7 +44,7 @@ export const mockLanguages: Language[] = [
|
|
|
44
44
|
text_direction: 'ltr',
|
|
45
45
|
writing_population: 300000000,
|
|
46
46
|
speaking_population: 300000000,
|
|
47
|
-
|
|
47
|
+
default_bible_id: null,
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
id: 'de',
|
|
@@ -59,7 +59,7 @@ export const mockLanguages: Language[] = [
|
|
|
59
59
|
text_direction: 'ltr',
|
|
60
60
|
writing_population: 100000000,
|
|
61
61
|
speaking_population: 100000000,
|
|
62
|
-
|
|
62
|
+
default_bible_id: null,
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
id: 'sr-Latn',
|
|
@@ -74,7 +74,7 @@ export const mockLanguages: Language[] = [
|
|
|
74
74
|
text_direction: 'ltr',
|
|
75
75
|
writing_population: 8000000,
|
|
76
76
|
speaking_population: 8000000,
|
|
77
|
-
|
|
77
|
+
default_bible_id: null,
|
|
78
78
|
},
|
|
79
79
|
// Add more languages to exceed the maximum page size and exercise pagination
|
|
80
80
|
...Array.from({ length: 120 }, (_, i) => ({
|
|
@@ -90,6 +90,6 @@ export const mockLanguages: Language[] = [
|
|
|
90
90
|
text_direction: 'ltr' as const,
|
|
91
91
|
writing_population: 1000000,
|
|
92
92
|
speaking_population: 1000000,
|
|
93
|
-
|
|
93
|
+
default_bible_id: null,
|
|
94
94
|
})),
|
|
95
95
|
];
|
package/src/schemas/language.ts
CHANGED
|
@@ -32,7 +32,7 @@ export const LanguageSchema = z.object({
|
|
|
32
32
|
/** Speaking population count */
|
|
33
33
|
speaking_population: z.number().int().optional(),
|
|
34
34
|
/** Default Bible version ID for this language */
|
|
35
|
-
|
|
35
|
+
default_bible_id: z.number().int().nullable().optional(),
|
|
36
36
|
});
|
|
37
37
|
|
|
38
38
|
export type Language = Readonly<z.infer<typeof LanguageSchema>>;
|