@youversion/platform-core 0.6.0 → 0.8.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@0.6.0 build /home/runner/work/platform-sdk-react/platform-sdk-react/packages/core
2
+ > @youversion/platform-core@0.8.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
@@ -8,11 +8,11 @@
8
8
  CLI Target: es2022
9
9
  CJS Build start
10
10
  ESM Build start
11
- ESM dist/index.js 37.59 KB
12
- ESM ⚡️ Build success in 44ms
13
- CJS dist/index.cjs 39.59 KB
14
- CJS ⚡️ Build success in 45ms
11
+ CJS dist/index.cjs 43.46 KB
12
+ CJS ⚡️ Build success in 42ms
13
+ ESM dist/index.js 41.62 KB
14
+ ESM ⚡️ Build success in 42ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 1936ms
17
- DTS dist/index.d.cts 34.21 KB
18
- DTS dist/index.d.ts 34.21 KB
16
+ DTS ⚡️ Build success in 2015ms
17
+ DTS dist/index.d.cts 33.54 KB
18
+ DTS dist/index.d.ts 33.54 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,51 @@
1
1
  # @youversion/platform-core
2
2
 
3
+ ## 0.8.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 29b865d: Summary:
8
+ Add sign-out functionality and refactor authentication system. This includes:
9
+ - New sign-out capability on the authentication button
10
+ - Rename the SignInButton to YouVersionAuthButton
11
+
12
+ Breaking changes:
13
+ - Button component now includes sign-out functionality
14
+ - Must replace old SignInButton with YouVersionAuthButton
15
+
16
+ ## 0.7.0
17
+
18
+ ### Minor Changes
19
+
20
+ - b7e337d: 🔄 Authentication System Overhaul
21
+ - Replaced old authentication strategy with new PKCE-based OAuth flow
22
+ - Removed AuthenticationStrategy.ts and WebAuthenticationStrategy.ts
23
+ - Added SignInWithYouVersionPKCE.ts for secure OAuth implementation
24
+ - Enhanced Users.ts with comprehensive auth token management (+469 lines)
25
+
26
+ 🏗️ Context/Provider Architecture Refactor
27
+ - Renamed BibleSDKContext/Provider → YouVersionContext/Provider
28
+ - Removed UI-level YVPProvider, YVPErrorBoundary
29
+ - Added dedicated auth providers: YouVersionAuthProvider and YouVersionAuthContext
30
+ - Consolidated authentication logic into hooks package
31
+
32
+ 🪝 New Hooks Implementation
33
+ - Added useYVAuth hook for authentication state management
34
+ - Updated existing hooks (useBibleClient, useHighlights, etc.) to use new context
35
+ - Enhanced configuration management in YouVersionPlatformConfiguration
36
+
37
+ 🔧 Infrastructure Improvements
38
+ - Added token refresh capabilities
39
+ - Improved memory leak prevention in auth provider
40
+ - Enhanced type definitions and exports
41
+
42
+ Applications using this SDK will need to:
43
+ 1. Update all context/provider imports and names
44
+ 2. Migrate from old authentication patterns to new PKCE flow
45
+ 3. Update provider setup in application roots
46
+ 4. Adjust any direct usage of removed authentication classes
47
+ 5. Update package imports for auth-related functionality
48
+
3
49
  ## 0.6.0
4
50
 
5
51
  ### Minor Changes