@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @youversion/platform-core@1.8.1 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/core
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
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  CJS Build start
10
10
  ESM Build start
11
11
  ESM dist/index.js 41.76 KB
12
- ESM ⚡️ Build success in 32ms
12
+ ESM ⚡️ Build success in 34ms
13
13
  CJS dist/index.cjs 43.59 KB
14
- CJS ⚡️ Build success in 33ms
14
+ CJS ⚡️ Build success in 35ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1718ms
17
- DTS dist/index.d.cts 32.92 KB
18
- DTS dist/index.d.ts 32.92 KB
16
+ DTS ⚡️ Build success in 1915ms
17
+ DTS dist/index.d.cts 32.91 KB
18
+ DTS dist/index.d.ts 32.91 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @youversion/platform-core
2
2
 
3
+ ## 1.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - d4b0071: feat(hooks): Add useLanguage hook to retrieve a language from api
8
+
3
9
  ## 1.8.1
4
10
 
5
11
  ### Patch Changes
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
- default_bible_version_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
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
- default_bible_version_id: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
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.8.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/eslint-config": "0.0.0",
34
- "@internal/tsconfig": "0.0.0"
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
- default_bible_version_id: null,
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
- default_bible_version_id: null,
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
- default_bible_version_id: null,
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
- default_bible_version_id: null,
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
- default_bible_version_id: null,
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
- default_bible_version_id: null,
93
+ default_bible_id: null,
94
94
  })),
95
95
  ];
@@ -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
- default_bible_version_id: z.number().int().nullable().optional(),
35
+ default_bible_id: z.number().int().nullable().optional(),
36
36
  });
37
37
 
38
38
  export type Language = Readonly<z.infer<typeof LanguageSchema>>;