Skip to content

Commit 57697a1

Browse files
Merge pull request #198 from skyflowapi/release/25.6.4
SK-2101/Release/25.6.4
2 parents 1194399 + e182dbf commit 57697a1

File tree

7 files changed

+37
-18
lines changed

7 files changed

+37
-18
lines changed

CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,28 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [2.5.0] - 2025-06-20
6+
### Added
7+
- Typescript support for public interfaces in JS SDK.
8+
9+
## [2.4.3] - 2025-06-16
10+
### Fixed
11+
- Expiration date validations.
12+
13+
## [2.4.2] - 2025-06-12
14+
### Fixed
15+
- Refactor stale elements code.
16+
17+
## [2.4.1] - 2025-06-03
18+
### Fixed
19+
- Add check for empty container for collect and reveal.
20+
### Changed
21+
- Update 3DS browser details helper function.
22+
23+
## [2.4.0] - 2025-05-26
24+
### Added
25+
- Iframe refactoring.
26+
527
## [2.3.3] - 2025-05-08
628
### Added
729
- Add overloading method signatures for container initialisation.

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "skyflow-react-js",
33
"preferGlobal": true,
44
"analyze": false,
5-
"version": "2.4.3",
5+
"version": "2.4.3-dev.00dc315",
66
"description": "Skyflow React SDK",
77
"homepage": "https://github.com/skyflowapi/skyflow-react",
88
"main": "lib/index.js",
@@ -82,7 +82,7 @@
8282
"webpack-merge": "^5.8.0"
8383
},
8484
"dependencies": {
85-
"skyflow-js": "^2.3.3",
85+
"skyflow-js": "^2.4.1",
8686
"uuid": "^9.0.0"
8787
},
8888
"peerDependencies": {

samples/SkyflowElements/src/components/CardBrandChoice/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88

99
const CardBrandChoice = () => {
1010
// Use this state to update cardschema list to provide choice
11-
const [scheme,setScheme] = useState<typeof CardType[]>([]);
11+
const [scheme,setScheme] = useState<CardType[]>([]);
1212

1313
// Use this to aviod unnesscary bin api calls.
1414
const binUpdate = useRef(false);
@@ -116,7 +116,7 @@ const CardBrandChoice = () => {
116116

117117
// Handle to parse card scheme from the bin api response.
118118
const getCardSchems = (cardData:any)=>{
119-
const schemeList:any[] = [];
119+
const schemeList:CardType[] = [];
120120
// cardData will results in array of length more than 1 if it is cobranded.
121121
cardData.forEach((card:any)=>{
122122
if(card.card_scheme === 'VISA'){

samples/SkyflowElements/src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,3 @@ root.render(
5050
<App />
5151
</SkyflowElements>
5252
);
53-

src/elements/index.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*/
44

55

6-
import { CardType } from 'skyflow-js/types/core/constants';
6+
import { CardMetadata } from 'skyflow-js';
77
import CollectContainer from 'skyflow-js/types/core/external/collect/collect-container'
88
import ComposableContainer from 'skyflow-js/types/core/external/collect/compose-collect-container'
99
import RevealContainer from 'skyflow-js/types/core/external/reveal/reveal-container'
@@ -35,7 +35,7 @@ export interface SkyflowCollectElementProps {
3535
}
3636

3737
export interface SkyflowCollectElementRef {
38-
setErrorOverride: (errorMessage: string) => void;
38+
setErrorOverride: (errorMessage: string) => void;
3939
}
4040

4141
export interface SkyflowRevealElementProps {
@@ -76,7 +76,7 @@ export interface ICollectElementOptions {
7676
enableCopy?: boolean
7777
allowedFileType?: string[]
7878
preserveFileName?: boolean
79-
cardMetadata ?: ICardMetadata
79+
cardMetadata ?: CardMetadata
8080
masking?: boolean
8181
maskingChar?: string
8282
blockEmptyFiles?: boolean
@@ -87,6 +87,6 @@ export type IRevealOptions = {
8787
format?:string
8888
}
8989

90-
export type ICardMetadata = {
91-
scheme?: typeof CardType[]
92-
}
90+
// export type ICardMetadata = {
91+
// scheme?: typeof CardType[]
92+
// }

src/index.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Copyright (c) 2022 Skyflow, Inc.
33
*/
44
import SkyflowElements from './core'
5-
import Skyflow from 'skyflow-js'
5+
import Skyflow, { CardType } from 'skyflow-js'
66

77
import CardHolderNameElement from './elements/CardHolderName'
88
import CardNumberElement from './elements/CardNumber'
@@ -34,8 +34,6 @@ const LENGTH_MATCH_RULE = Skyflow.ValidationRuleType.LENGTH_MATCH_RULE
3434
const REGEX_MATCH_RULE = Skyflow.ValidationRuleType.REGEX_MATCH_RULE
3535
const ELEMENT_VALUE_MATCH_RULE = Skyflow.ValidationRuleType.ELEMENT_VALUE_MATCH_RULE
3636

37-
const CardType = Skyflow.CardType
38-
3937
export {
4038
SkyflowElements,
4139
CardNumberElement,

0 commit comments

Comments
 (0)