# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.11.0](https://fox.25sprout.com///compare/v2.10.2...v2.11.0) (2025-07-31)


### Features

* add multilingual support, expand language code data to include more language translations [SUR-6742] ([68b36fb](https://fox.25sprout.com///commit/68b36fb))



### [2.10.2](https://fox.25sprout.com///compare/v2.10.1...v2.10.2) (2023-02-20)


### Features

* replace b64DecodeUnicode function with jwt-decode module [SUR-2269] ([cd1d3df](https://fox.25sprout.com///commit/cd1d3df))



### [2.10.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.10.0...v2.10.1) (2022-07-13)


### Bug Fixes

* adjust selectable font weight [SUR-586] ([a17abf4](https://fox.25sprout.com/surveycake/sdk/utils/commit/a17abf4))



## [2.10.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.9.2...v2.10.0) (2022-07-12)


### Features

* define selectable fonts [SUR-586] ([fefa021](https://fox.25sprout.com/surveycake/sdk/utils/commit/fefa021))



### [2.9.2](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.9.1...v2.9.2) (2022-05-06)


### Bug Fixes

* description of isGTMid ([c629600](https://fox.25sprout.com/surveycake/sdk/utils/commit/c629600))



### [2.9.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.9.0...v2.9.1) (2022-05-02)


### Features

* add GTM id rule ([0c3bb45](https://fox.25sprout.com/surveycake/sdk/utils/commit/0c3bb45))



## [2.9.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.8.0...v2.9.0) (2022-02-09)

### Bug Fixes

* set resizeImageDataUrl default quality as 1 ([d0b6c6e](https://fox.25sprout.com/surveycake/sdk/utils/commit/d0b6c6e))



## *DEPRECATED* [2.8.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.7.2...v2.8.0) (2022-02-07)

### Notes

* Due to the use of server-side related functions in the update content of this version, the incompatibility to use the package may occur after the upgrade. Therefore, v2.9.0 is urgently released to fix the above incompatibilities.
### Bug Fixes

* set resizeImageDataUrl default quality as 1 ([d0b6c6e](https://fox.25sprout.com/surveycake/sdk/utils/commit/d0b6c6e))


### Features

* create export and import csv function SUR-250 ([5ea5c7c](https://fox.25sprout.com/surveycake/sdk/utils/commit/5ea5c7c))
* set prettier config ([b8a7405](https://fox.25sprout.com/surveycake/sdk/utils/commit/b8a7405))



### [2.7.2](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.7.1...v2.7.2) (2021-03-15)


### Features

* resizeImageDataUrl export as image's original type ([ac35ab5](https://fox.25sprout.com/surveycake/sdk/utils/commit/ac35ab5))



### [2.7.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.7.0...v2.7.1) (2021-01-13)


### Bug Fixes

* export isGA4Id ([a689bd7](https://fox.25sprout.com/surveycake/sdk/utils/commit/a689bd7))



## [2.7.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.12...v2.7.0) (2021-01-13)


### Bug Fixes

* typescript any ([f7c40e2](https://fox.25sprout.com/surveycake/sdk/utils/commit/f7c40e2))


### Features

* add ga4 measurement id validation ([8311c53](https://fox.25sprout.com/surveycake/sdk/utils/commit/8311c53))


### Tests

* add isGA4Id test case ([ef2008e](https://fox.25sprout.com/surveycake/sdk/utils/commit/ef2008e))



### [2.6.12](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.4.1...v2.6.12) (2020-06-23)


### Bug Fixes

* forget to export passThrough ([a036924](https://fox.25sprout.com/surveycake/sdk/utils/commit/a036924))
* **stripHtmlTags:** prevent from html being null ([5925e91](https://fox.25sprout.com/surveycake/sdk/utils/commit/5925e91))
* add default language code data ([6e543d4](https://fox.25sprout.com/surveycake/sdk/utils/commit/6e543d4))
* add defaultLanguageCodeData to root export ([bde5928](https://fox.25sprout.com/surveycake/sdk/utils/commit/bde5928))
* add sideEffects flag and fix typo ([a6e2d44](https://fox.25sprout.com/surveycake/sdk/utils/commit/a6e2d44))
* add zh-TW & zh-CN ([ce9e9c5](https://fox.25sprout.com/surveycake/sdk/utils/commit/ce9e9c5))
* forget to export getISOString ([dd4ff5e](https://fox.25sprout.com/surveycake/sdk/utils/commit/dd4ff5e))
* forget to export stripHtmlTags ([e7f83cd](https://fox.25sprout.com/surveycake/sdk/utils/commit/e7f83cd))
* index export ([1899b0c](https://fox.25sprout.com/surveycake/sdk/utils/commit/1899b0c))
* missing languageCodesData ([2513d7c](https://fox.25sprout.com/surveycake/sdk/utils/commit/2513d7c))
* no ignore src ([1f89ebf](https://fox.25sprout.com/surveycake/sdk/utils/commit/1f89ebf))
* organize languageCodesData ([b175cdb](https://fox.25sprout.com/surveycake/sdk/utils/commit/b175cdb))
* parseJwt function for payment accesstoken cannot decode problem ([b72201d](https://fox.25sprout.com/surveycake/sdk/utils/commit/b72201d))
* Promise.reject cause error ([9d54f41](https://fox.25sprout.com/surveycake/sdk/utils/commit/9d54f41)), closes [1#comment100862761_57175282](https://fox.25sprout.com///issues/comment100862761_57175282)
* test and languageCodesData ([e3e8d27](https://fox.25sprout.com/surveycake/sdk/utils/commit/e3e8d27))
* typedoc ([505083c](https://fox.25sprout.com/surveycake/sdk/utils/commit/505083c))
* udpate languageCodesData for old use case ([3c6a572](https://fox.25sprout.com/surveycake/sdk/utils/commit/3c6a572))


### Features

* add all language type ([67ae300](https://fox.25sprout.com/surveycake/sdk/utils/commit/67ae300)), closes [surveycake/survey#176](https://fox.25sprout.com///issues/176)
* add languageCodesData ([f028843](https://fox.25sprout.com/surveycake/sdk/utils/commit/f028843))
* add safe math manipulation method using decimal.js ([d6c7878](https://fox.25sprout.com/surveycake/sdk/utils/commit/d6c7878)), closes [surveycake/pm#1567](https://fox.25sprout.com///issues/1567)
* add type of language ([7f3da71](https://fox.25sprout.com/surveycake/sdk/utils/commit/7f3da71)), closes [surveycake/survey#176](https://fox.25sprout.com///issues/176)
* passThrough ([34251a6](https://fox.25sprout.com/surveycake/sdk/utils/commit/34251a6))


### refactor

* remove directories ([7783115](https://fox.25sprout.com/surveycake/sdk/utils/commit/7783115))


### BREAKING CHANGES

* import path changed
change all export default to export



### [2.6.11](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.10...v2.6.11) (2020-03-17)


### Bug Fixes

* add zh-TW & zh-CN ([ce9e9c5](https://fox.25sprout.com/surveycake/sdk/utils/commit/ce9e9c5))


### Features

* add all language type ([67ae300](https://fox.25sprout.com/surveycake/sdk/utils/commit/67ae300)), closes [surveycake/survey#176](https://fox.25sprout.com///issues/176)
* add type of language ([7f3da71](https://fox.25sprout.com/surveycake/sdk/utils/commit/7f3da71)), closes [surveycake/survey#176](https://fox.25sprout.com///issues/176)



### [2.6.10](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.9...v2.6.10) (2019-11-13)


### Bug Fixes

* add defaultLanguageCodeData to root export ([bde5928](https://fox.25sprout.com/surveycake/sdk/utils/commit/bde5928))



### [2.6.9](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.8...v2.6.9) (2019-11-13)


### Bug Fixes

* add default language code data ([6e543d4](https://fox.25sprout.com/surveycake/sdk/utils/commit/6e543d4))



### [2.6.8](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.7...v2.6.8) (2019-11-06)


### Bug Fixes

* index export ([1899b0c](https://fox.25sprout.com/surveycake/sdk/utils/commit/1899b0c))



### [2.6.7](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.6...v2.6.7) (2019-11-06)


### Bug Fixes

* organize languageCodesData ([b175cdb](https://fox.25sprout.com/surveycake/sdk/utils/commit/b175cdb))



### [2.6.6](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.5...v2.6.6) (2019-11-06)


### Bug Fixes

* udpate languageCodesData for old use case ([3c6a572](https://fox.25sprout.com/surveycake/sdk/utils/commit/3c6a572))



### [2.6.5](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.4...v2.6.5) (2019-11-04)


### Bug Fixes

* forget to export stripHtmlTags ([e7f83cd](https://fox.25sprout.com/surveycake/sdk/utils/commit/e7f83cd))



### [2.6.4](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.3...v2.6.4) (2019-11-04)


### Bug Fixes

* forget to export passThrough ([a036924](https://fox.25sprout.com/surveycake/sdk/utils/commit/a036924))



### [2.6.3](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.2...v2.6.3) (2019-11-04)


### Bug Fixes

* forget to export getISOString ([dd4ff5e](https://fox.25sprout.com/surveycake/sdk/utils/commit/dd4ff5e))



### [2.6.2](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.1...v2.6.2) (2019-11-03)


### Bug Fixes

* add sideEffects flag and fix typo ([a6e2d44](https://fox.25sprout.com/surveycake/sdk/utils/commit/a6e2d44))



### [2.6.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.6.0...v2.6.1) (2019-11-03)


### Bug Fixes

* missing languageCodesData ([2513d7c](https://fox.25sprout.com/surveycake/sdk/utils/commit/2513d7c))
* test and languageCodesData ([e3e8d27](https://fox.25sprout.com/surveycake/sdk/utils/commit/e3e8d27))
* typedoc ([505083c](https://fox.25sprout.com/surveycake/sdk/utils/commit/505083c))



## [2.6.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.4.1...v2.6.0) (2019-10-30)



## [2.5.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.4.0...v2.5.0) (2019-10-30)


### Features

* add languageCodesData ([f028843](https://fox.25sprout.com/surveycake/sdk/utils/commit/f028843))



## [2.5.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.4.0...v2.5.0) (2019-10-30)


### Features

* add languageCodesData ([f028843](https://fox.25sprout.com/surveycake/sdk/utils/commit/f028843))



## [2.4.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.3.2...v2.4.0) (2019-10-01)


### Features

* add safe math manipulation method using decimal.js ([d6c7878](https://fox.25sprout.com/surveycake/sdk/utils/commit/d6c7878)), closes [surveycake/pm#1567](https://fox.25sprout.com///issues/1567)



### [2.3.2](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.3.1...v2.3.2) (2019-07-24)


### Bug Fixes

* Promise.reject cause error ([9d54f41](https://fox.25sprout.com/surveycake/sdk/utils/commit/9d54f41)), closes [1#comment100862761_57175282](https://fox.25sprout.com///issues/comment100862761_57175282)



### [2.3.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.3.0...v2.3.1) (2019-06-27)


### Bug Fixes

* **stripHtmlTags:** prevent from html being null ([5925e91](https://fox.25sprout.com/surveycake/sdk/utils/commit/5925e91))



## [2.3.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.2.0...v2.3.0) (2019-06-26)



## [2.2.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.1.0...v2.2.0) (2019-06-26)



## [2.1.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.0.2...v2.1.0) (2019-06-25)



## [2.0.2](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.0.1...v2.0.2) (2019-06-19)


### Features

* passThrough ([34251a6](https://fox.25sprout.com/surveycake/sdk/utils/commit/34251a6))



## [2.0.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v2.0.0...v2.0.1) (2019-06-18)



# [2.0.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.4.1...v2.0.0) (2019-06-18)


### Code Refactoring

* remove directories ([7783115](https://fox.25sprout.com/surveycake/sdk/utils/commit/7783115))


### BREAKING CHANGES

* import path changed
change all export default to export



## [1.4.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.4.0...v1.4.1) (2019-04-30)



# [1.4.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.3.0...v1.4.0) (2019-04-18)


### Code Refactoring

* **helper date:** remove newDatetimeFromString and newDatetimeFromObject ([a2026ea](https://fox.25sprout.com/surveycake/sdk/utils/commit/a2026ea))


### BREAKING CHANGES

* **helper date:** just use getISOString, see docs



# [1.3.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.3.0-alpha.0...v1.3.0) (2019-04-01)


### Build System

* deprecate commonjs ([915e00b](https://fox.25sprout.com/surveycake/sdk/utils/commit/915e00b))


### BREAKING CHANGES

* use es instead



# [1.3.0-alpha.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.2.0...v1.3.0-alpha.0) (2019-03-18)


### Bug Fixes

* **comparator:** export to root ([c4d1567](https://fox.25sprout.com/surveycake/sdk/utils/commit/c4d1567))


### Code Refactoring

* **handler:** remove responseType ([4033c8c](https://fox.25sprout.com/surveycake/sdk/utils/commit/4033c8c))


### Features

* **helper.image:** resizeDataURL ([cd89019](https://fox.25sprout.com/surveycake/sdk/utils/commit/cd89019))


### BREAKING CHANGES

* **handler:** use ResponseOptions instead



# [1.2.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.1.5...v1.2.0) (2019-03-12)


### Features

* **helper:** copy facebook's shallowEqul ([77f2eef](https://fox.25sprout.com/surveycake/sdk/utils/commit/77f2eef))



## [1.1.5](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.1.4...v1.1.5) (2019-03-11)



## [1.1.4](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.1.3...v1.1.4) (2019-03-11)



## [1.1.3](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.1.2...v1.1.3) (2019-03-11)



## [1.1.2](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.1.1...v1.1.2) (2019-03-07)


### Features

* **constants:** fill keycode ([f33b03a](https://fox.25sprout.com/surveycake/sdk/utils/commit/f33b03a))



## [1.1.1](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.1.0...v1.1.1) (2019-03-05)



# [1.1.0](https://fox.25sprout.com/surveycake/sdk/utils/compare/v1.0.0...v1.1.0) (2019-03-05)


### Code Refactoring

* **helper:** date ([ecc9849](https://fox.25sprout.com/surveycake/sdk/utils/commit/ecc9849))


### BREAKING CHANGES

* **helper:** move formatter/dateTime to helper/date



# 1.0.0 (2019-03-04)


### Bug Fixes

* **decorator:** fix type ([a9c5533](https://fox.25sprout.com/surveycake/sdk/utils/commit/a9c5533))


### Features

* add const folder of keycode ([6028a60](https://fox.25sprout.com/surveycake/sdk/utils/commit/6028a60))
