@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.
- package/.turbo/turbo-build.log +8 -8
- package/CHANGELOG.md +46 -0
- package/dist/index.cjs +473 -346
- package/dist/index.d.cts +106 -134
- package/dist/index.d.ts +106 -134
- package/dist/index.js +473 -343
- package/package.json +2 -1
- package/src/SignInWithYouVersionPKCE.ts +122 -0
- package/src/SignInWithYouVersionResult.ts +40 -39
- package/src/URLBuilder.ts +0 -21
- package/src/Users.ts +375 -94
- package/src/YouVersionPlatformConfiguration.ts +69 -25
- package/src/YouVersionUserInfo.ts +6 -6
- package/src/__tests__/SignInWithYouVersionPKCE.test.ts +418 -0
- package/src/__tests__/SignInWithYouVersionResult.test.ts +28 -0
- package/src/__tests__/StorageStrategy.test.ts +0 -72
- package/src/__tests__/URLBuilder.test.ts +0 -100
- package/src/__tests__/Users.test.ts +737 -0
- package/src/__tests__/YouVersionPlatformConfiguration.test.ts +192 -30
- package/src/__tests__/YouVersionUserInfo.test.ts +347 -0
- package/src/__tests__/highlights.test.ts +12 -12
- package/src/__tests__/mocks/browser.ts +90 -0
- package/src/__tests__/mocks/configuration.ts +53 -0
- package/src/__tests__/mocks/jwt.ts +93 -0
- package/src/__tests__/mocks/tokens.ts +69 -0
- package/src/index.ts +0 -3
- package/src/types/auth.ts +1 -0
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +1 -1
- package/src/AuthenticationStrategy.ts +0 -78
- package/src/WebAuthenticationStrategy.ts +0 -127
- package/src/__tests__/authentication.test.ts +0 -185
- package/src/authentication.ts +0 -27
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @youversion/platform-core@0.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
[34mCLI[39m Target: es2022
|
|
9
9
|
[34mCJS[39m Build start
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
[
|
|
14
|
-
[
|
|
11
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m43.46 KB[39m
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 42ms
|
|
13
|
+
[32mESM[39m [1mdist/index.js [22m[32m41.62 KB[39m
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 42ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.cts [22m[
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 2015ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.cts [22m[32m33.54 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m33.54 KB[39m
|
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
|