SurveyJS v1.10.3
Released: May 7, 2024
In v1.10.3, SurveyJS npm packages are moved from dependencies to peer dependencies. This release also includes minor enhancements and bug fixes.
npm packages are moved from dependencies to peer dependencies
Since v1.10.3, SurveyJS npm packages that were listed as dependencies
are moved to peerDependencies
. This change will ensure that your application includes only one instance of each SurveyJS dependency package. The following table illustrates the peer dependencies of each SurveyJS npm package:
npm Package | Peer dependencies |
---|---|
survey-vue-ui |
survey-core |
survey-vue3-ui | |
survey-react-ui | |
survey-knockout-ui | |
survey-angular-ui | |
survey-creator-core | |
survey-pdf | |
survey-analytics | |
survey-creator-vue |
survey-core , survey-vue3-ui , survey-creator-core |
survey-creator-angular |
survey-core , survey-angular-ui , survey-creator-core |
survey-creator-knockout |
survey-core , survey-knockout-ui , survey-creator-core |
survey-creator-react |
survey-core , survey-react-ui , survey-creator-core |
Since npm v7.x.x, peer dependencies are resolved and installed automatically, along with regular dependencies. To check your npm version, run the following command:
npm -v
If the npm version is older than v7.x.x, use the npm i
command to install the peer dependencies of the SurveyJS packages used in your application. For example, the following command installs the peer dependencies of the survey-creator-react
package:
npm i survey-core survey-react-ui survey-creator-core
Bug Fixes and Minor Enhancements
Form Library
- Introduce an API to override a default renderer for all questions of a specific type (#8234)
- Composite question types: Inherited localizable properties are duplicated in Survey Creator's Translation tab (#8238)
- A "maximum call stack size exceeded" error is thrown when using carry forward (#8232)
- The
validate()
method ignores thefocusOnFirstError
parameter (#8228) - Multi-Select Dropdown (Tag Box): It's impossible to select more than one option if the question was created using the
QuestionTagboxModel
constructor (#8210) - Yes/No (Boolean) questions are rendered incorrectly if their labels are long (#8199)
Survey Creator
- Image Picker: A screen reader doesn't announce the "Add New Image" button (#5449)
- Apply and Cancel buttons in the matrix cell editor popup are not localized (#5446)
- [Mobile] An empty survey/page placeholder mentions the Toolbox, but there's no Toolbox on a mobile device (#5398)
How to Update SurveyJS Libraries in Your Application
Angular
npm i survey-core@1.10.3 survey-angular-ui@1.10.3 --save
npm i survey-creator-core@1.10.3 survey-creator-angular@1.10.3 --save
npm i survey-analytics@1.10.3 --save
npm i survey-pdf@1.10.3 --save
React
npm i survey-core@1.10.3 survey-react-ui@1.10.3 --save
npm i survey-creator-core@1.10.3 survey-creator-react@1.10.3 --save
npm i survey-analytics@1.10.3 --save
npm i survey-pdf@1.10.3 --save
Vue 3
npm i survey-core@1.10.3 survey-vue3-ui@1.10.3 --save
npm i survey-creator-core@1.10.3 survey-creator-vue@1.10.3 --save
npm i survey-analytics@1.10.3 --save
npm i survey-pdf@1.10.3 --save
Vue 2
npm i survey-core@1.10.3 survey-vue-ui@1.10.3 --save
npm i survey-creator-core@1.10.3 survey-creator-knockout@1.10.3 --save
npm i survey-analytics@1.10.3 --save
npm i survey-pdf@1.10.3 --save
Knockout / jQuery
<link href="https://unpkg.com/survey-core@1.10.3/defaultV2.min.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/survey-core@1.10.3/survey.core.min.js"></script>
<script type="text/javascript" src="https://unpkg.com/survey-knockout-ui@1.10.3/survey-knockout-ui.min.js"></script>
<link href="https://unpkg.com/survey-creator-core@1.10.3/survey-creator-core.min.css" type="text/css" rel="stylesheet">
<script src="https://unpkg.com/survey-creator-core@1.10.3/survey-creator-core.min.js"></script>
<script src="https://unpkg.com/survey-creator-knockout@1.10.3/survey-creator-knockout.min.js"></script>
<link href="https://unpkg.com/survey-analytics@1.10.3/survey.analytics.min.css" rel="stylesheet">
<script src="https://unpkg.com/survey-analytics@1.10.3/survey.analytics.min.js"></script>
<script src="https://unpkg.com/survey-pdf@1.10.3/survey.pdf.min.js"></script>