zh-web-sdk 2.12.6 → 2.13.1
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/.github/CHANGELOG_TEMPLATE.md +73 -0
- package/CHANGELOG.md +87 -0
- package/README.md +4 -1
- package/RELEASING.md +39 -0
- package/dist/index.js +48 -48
- package/dist/index.js.map +3 -3
- package/package.json +2 -2
- package/src/styles.ts +3 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# Changelog Entry Template
|
|
2
|
+
|
|
3
|
+
Use this template when adding a new version to CHANGELOG.md
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## [X.Y.Z] - YYYY-MM-DD
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- New feature that allows users to [describe user benefit] [#PR_NUMBER]
|
|
11
|
+
- Another feature description focusing on customer value
|
|
12
|
+
|
|
13
|
+
### Changed
|
|
14
|
+
- Updated [feature/behavior] to [improvement description]
|
|
15
|
+
- [Behavior change] now [new behavior] instead of [old behavior]
|
|
16
|
+
|
|
17
|
+
### Deprecated
|
|
18
|
+
- [Feature name] is deprecated and will be removed in version [X.Y.Z]
|
|
19
|
+
- Migration path: Use [alternative approach] instead
|
|
20
|
+
- See [documentation link] for details
|
|
21
|
+
|
|
22
|
+
### Removed
|
|
23
|
+
- Removed [feature name] (deprecated since version [X.Y.Z])
|
|
24
|
+
- See [migration guide link] for alternatives
|
|
25
|
+
|
|
26
|
+
### Fixed
|
|
27
|
+
- Fixed issue where [problem description] [#PR_NUMBER]
|
|
28
|
+
- Resolved [bug description] affecting [user impact]
|
|
29
|
+
|
|
30
|
+
### Security
|
|
31
|
+
- Updated [dependency name] to address [vulnerability type]
|
|
32
|
+
- Fixed [security issue description]
|
|
33
|
+
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
## Guidelines
|
|
37
|
+
|
|
38
|
+
### Writing Tips
|
|
39
|
+
|
|
40
|
+
1. **Focus on User Impact**
|
|
41
|
+
- ✅ Good: "Fixed SDK positioning to prevent scrolling issues"
|
|
42
|
+
- ❌ Avoid: "Refactored internal positioning logic"
|
|
43
|
+
|
|
44
|
+
2. **Be Specific and Clear**
|
|
45
|
+
- ✅ Good: "Added bank account linking feature for direct deposits"
|
|
46
|
+
- ❌ Avoid: "Added new feature"
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### Breaking Changes
|
|
50
|
+
|
|
51
|
+
For MAJOR version releases, clearly mark breaking changes:
|
|
52
|
+
|
|
53
|
+
```markdown
|
|
54
|
+
## [3.0.0] - 2026-XX-XX
|
|
55
|
+
|
|
56
|
+
### Changed
|
|
57
|
+
- ⚠️ **BREAKING**: Renamed `cryptoBuyJWT` parameter to `jwt` in SDK configuration
|
|
58
|
+
|
|
59
|
+
**Migration Guide:**
|
|
60
|
+
\`\`\`typescript
|
|
61
|
+
// Before (v2.x)
|
|
62
|
+
const sdk = new ZeroHashSDK({
|
|
63
|
+
cryptoBuyJWT: token
|
|
64
|
+
})
|
|
65
|
+
|
|
66
|
+
// After (v3.x)
|
|
67
|
+
const sdk = new ZeroHashSDK({
|
|
68
|
+
jwt: token
|
|
69
|
+
})
|
|
70
|
+
\`\`\`
|
|
71
|
+
|
|
72
|
+
See [Migration Guide v2 to v3](link) for full details.
|
|
73
|
+
```
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to the zerohash Web SDK will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [2.13.1] - 2026-01-08
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- Adds new changelog template and guidelines
|
|
13
|
+
|
|
14
|
+
## [2.13.0] - 2026-01-02
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
- Fixed SDK wrapper positioning to prevent it from being scrolled out of view by the parent application [#81]
|
|
18
|
+
- The SDK now uses fixed positioning instead of absolute positioning, ensuring it remains visible even when the parent page scrolls
|
|
19
|
+
|
|
20
|
+
### Security
|
|
21
|
+
- Updated development dependencies to address security vulnerabilities
|
|
22
|
+
|
|
23
|
+
## [2.12.6] - 2025-10-27
|
|
24
|
+
|
|
25
|
+
### Security
|
|
26
|
+
- Addressed security vulnerabilities identified by automated dependency scanning [#78]
|
|
27
|
+
- Updated multiple dependencies to their latest secure versions
|
|
28
|
+
|
|
29
|
+
## [2.12.5] - 2025-10-22
|
|
30
|
+
|
|
31
|
+
### Changed
|
|
32
|
+
- Reverted bank transfer feature naming change from v2.12.3 due to compatibility concerns [#77]
|
|
33
|
+
- Restored original `fiat-account-link` terminology for existing integrations
|
|
34
|
+
|
|
35
|
+
## [2.12.4] - 2025-10-21
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- Improved border styling consistency between mobile and desktop views
|
|
39
|
+
- Enhanced visual appearance across different device types
|
|
40
|
+
|
|
41
|
+
## [2.12.3] - 2025-10-01
|
|
42
|
+
|
|
43
|
+
### Changed
|
|
44
|
+
- Renamed fiat account linking feature to "bank-transfer" for improved clarity [#74]
|
|
45
|
+
- Updated terminology to better reflect the feature's purpose
|
|
46
|
+
|
|
47
|
+
## [2.12.2] - 2025-09-30
|
|
48
|
+
|
|
49
|
+
### Added
|
|
50
|
+
- New fiat account linking feature for connecting bank accounts [#73]
|
|
51
|
+
- Enables users to link their bank accounts directly through the SDK
|
|
52
|
+
|
|
53
|
+
## [2.12.1] - 2025-09-11
|
|
54
|
+
|
|
55
|
+
### Fixed
|
|
56
|
+
- Refined corner styling and border radius for improved visual consistency
|
|
57
|
+
- Enhanced UI polish across SDK components
|
|
58
|
+
|
|
59
|
+
## [2.12.0] - 2025-07-07
|
|
60
|
+
|
|
61
|
+
### Added
|
|
62
|
+
- Introduced support for new "PAY" application name [#71]
|
|
63
|
+
- Extended SDK compatibility for additional zerohash product offerings
|
|
64
|
+
|
|
65
|
+
## [2.11.2] - 2025-07-02
|
|
66
|
+
|
|
67
|
+
### Changed
|
|
68
|
+
- Improved integration with World App's MiniKit for better mobile experience [#70]
|
|
69
|
+
- Enhanced message passing between SDK and World App mini applications
|
|
70
|
+
- Optimized communication protocol for mobile wallets
|
|
71
|
+
|
|
72
|
+
## [2.11.1] - 2025-07-02
|
|
73
|
+
|
|
74
|
+
### Changed
|
|
75
|
+
- Enhanced World App message handling with improved error recovery [#69]
|
|
76
|
+
- Removed overly restrictive origin checks that could block legitimate messages
|
|
77
|
+
- Improved reliability of cross-frame communication
|
|
78
|
+
|
|
79
|
+
## [2.11.0] - 2025-07-01
|
|
80
|
+
|
|
81
|
+
### Security
|
|
82
|
+
- Added origin validation for World App event handlers [#68]
|
|
83
|
+
- Enhanced security when processing events from World App integration
|
|
84
|
+
- Prevents potential cross-site scripting attacks through event handling
|
|
85
|
+
|
|
86
|
+
---
|
|
87
|
+
|
package/README.md
CHANGED
|
@@ -48,6 +48,9 @@ The ZeroHash SDK uses [Semantic Versioning 2.0.0](https://semver.org/). Version
|
|
|
48
48
|
- **MINOR** version increments when we add new functionality in a backward-compatible manner (e.g., `1.0.0` to `1.1.0`).
|
|
49
49
|
- **PATCH** version increments when we make backward-compatible bug fixes (e.g., `1.0.0` to `1.0.1`).
|
|
50
50
|
|
|
51
|
+
## Changelog
|
|
52
|
+
[zerohash Documentation Changelog](https://docs.zerohash.com/reference/changelog)
|
|
53
|
+
|
|
51
54
|
## Mobile Usage
|
|
52
55
|
For more details on how to use it on mobile apps, please refer to our full documentation:
|
|
53
|
-
[
|
|
56
|
+
[zerohash SDK Documentation](https://docs.zerohash.com/reference/sdk-overview).
|
package/RELEASING.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Release Process
|
|
2
|
+
|
|
3
|
+
This document describes the process for releasing new versions of the zerohash Web SDK.
|
|
4
|
+
|
|
5
|
+
## Release Steps
|
|
6
|
+
|
|
7
|
+
### 1. Update CHANGELOG.md
|
|
8
|
+
|
|
9
|
+
Add a new version section at the top of `CHANGELOG.md`:
|
|
10
|
+
|
|
11
|
+
```markdown
|
|
12
|
+
## [X.Y.Z] - YYYY-MM-DD
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- New feature description [#PR_NUMBER]
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- Bug fix description [#PR_NUMBER]
|
|
19
|
+
|
|
20
|
+
### Changed
|
|
21
|
+
- Behavior change description
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
See `.github/CHANGELOG_TEMPLATE.md` for detailed guidelines.
|
|
25
|
+
|
|
26
|
+
**Commit the changelog:**
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
git add CHANGELOG.md
|
|
30
|
+
git commit -m "docs: update CHANGELOG for vX.Y.Z"
|
|
31
|
+
git push origin main
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### 2. Update ReadMe Changelog
|
|
35
|
+
|
|
36
|
+
1. Go to ReadMe dashboard: https://dash.readme.com/
|
|
37
|
+
2. Navigate to the Changelog section
|
|
38
|
+
3. Create new changelog entry with content from `CHANGELOG.md`
|
|
39
|
+
4. Publish the entry
|