-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: release 4.49.0 #842
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bumps [csv-parse](https://github.com/wdavidw/node-csv-parse) from 4.12.0 to 4.14.1. - [Release notes](https://github.com/wdavidw/node-csv-parse/releases) - [Changelog](https://github.com/adaltas/node-csv-parse/blob/master/CHANGELOG.md) - [Commits](adaltas/node-csv-parse@v4.12.0...v4.14.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 5.27.3 to 5.28.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-javascript@5.27.3...5.28.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
chore: merge release v4.48.1 back into `develop`
Bumps [file-saver](https://github.com/eligrey/FileSaver.js) from 2.0.2 to 2.0.5. - [Release notes](https://github.com/eligrey/FileSaver.js/releases) - [Changelog](https://github.com/eligrey/FileSaver.js/blob/master/CHANGELOG.md) - [Commits](https://github.com/eligrey/FileSaver.js/commits) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [aws-sdk](https://github.com/aws/aws-sdk-js) from 2.783.0 to 2.802.0. - [Release notes](https://github.com/aws/aws-sdk-js/releases) - [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) - [Commits](aws/aws-sdk-js@v2.783.0...v2.802.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [type-fest](https://github.com/sindresorhus/type-fest) from 0.18.0 to 0.20.2. - [Release notes](https://github.com/sindresorhus/type-fest/releases) - [Commits](sindresorhus/type-fest@v0.18.0...v0.20.2) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yuanruo Liang <[email protected]>
* fix(deps): bump neverthrow from 2.7.1 to 3.0.0 Bumps [neverthrow](https://github.com/supermacro/neverthrow) from 2.7.1 to 3.0.0. - [Release notes](https://github.com/supermacro/neverthrow/releases) - [Commits](supermacro/neverthrow@v2.7.1...v3.0.0) Signed-off-by: dependabot[bot] <[email protected]> * fix(MyInfoCtl): return promise Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kar Rui Lau <[email protected]>
* fix(deps): bump libphonenumber-js from 1.7.55 to 1.9.5 Bumps [libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js) from 1.7.55 to 1.9.5. - [Release notes](https://gitlab.com/catamphetamine/libphonenumber-js/tags) - [Changelog](https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/CHANGELOG.md) - [Commits](https://gitlab.com/catamphetamine/libphonenumber-js/commits/master) Signed-off-by: dependabot[bot] <[email protected]> * fix(tests): update contact number used to be libphonenumber's example Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kar Rui Lau <[email protected]>
* chore(deps-dev): bump prettier from 2.2.0 to 2.2.1 Bumps [prettier](https://github.com/prettier/prettier) from 2.2.0 to 2.2.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/master/CHANGELOG.md) - [Commits](prettier/prettier@2.2.0...2.2.1) Signed-off-by: dependabot[bot] <[email protected]> * fix: lint Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kar Rui Lau <[email protected]>
…803) Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 4.7.0 to 4.9.0. - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v4.9.0/packages/parser) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@types/express-serve-static-core](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/express-serve-static-core) from 4.17.13 to 4.17.14. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/express-serve-static-core) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [whatwg-fetch](https://github.com/github/fetch) from 3.4.1 to 3.5.0. - [Release notes](https://github.com/github/fetch/releases) - [Commits](JakeChampion/fetch@v3.4.1...v3.5.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@types/helmet](https://github.com/helmetjs/helmet) from 0.0.48 to 4.0.0. - [Release notes](https://github.com/helmetjs/helmet/releases) - [Changelog](https://github.com/helmetjs/helmet/blob/main/CHANGELOG.md) - [Commits](https://github.com/helmetjs/helmet/commits/v4.0.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.7 to 14.14.10. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
dangling commas cause the mongo shell to throw invalid syntax errors
* feat: manually set new mongo db server per test setup instead of relying on @shelf/mongodb * fix(temp): use isolatedModules in ts-jest `isolatedModules` being set to true will fix a memory leak in ts-jest. However, type checking will not be performed whilst running tests (will still have type checking when writing tests). Revert after the memory leak is fixed. See kulshekhar/ts-jest#1967 See: https://kulshekhar.github.io/ts-jest/user/config/isolatedModules * ref: use mongodb-memory-server-core instead of mongodb-memory-server * chore(tests): inline mongo memory server generation * chore: remove unused jest-environment-node dependency
Bumps [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) from 6.15.0 to 7.0.0. - [Release notes](https://github.com/prettier/eslint-config-prettier/releases) - [Changelog](https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md) - [Commits](prettier/eslint-config-prettier@v6.15.0...v7.0.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat(FormModel): remove unneeded agency/admin keys in getFullFormById * feat(AdminFormCtl): add handleGetAdminForm handler fn for GET /:formId/adminform * test(AdminFormCtl): add tests for handleGetAdminForm * ref(AdminFormRoutes): use new handleGetAdminForm handler fn * test(AdminFormCtl): convert all id generation to strings from ObjectId
* feat(AdminFormRoutes): add Joi validation to duplicate form endpoint * refactor(FormModel): rename duplicate method to getDuplicateParams * ref(FormModel): update field selections when getting dashboard view - remove form_fields selection, since it is not required for display, makes the return object from API a little smaller (and allows sharing of this type for getDashboardView instance method in a future commit) - add responseMode selection -- this has no change, since responseMode is a discriminator key and is returned regardless, selection is made for explicitness * ref(FormModel): inline un-shared FORM_DUPLICATE_KEYS so any updates will not be too far away from the pick, and since the constant is not actually being used in the frontend. * ref(FormModel): update getMainFields method to getDashboardFormView changes include: - name is made much more descriptive - updates the shape returned to be common with the shape returned in getDashboardForms static method - inject user directly in the function instead of reassigning after the function returns * feat(FormSvc): add retrieveFormById service fn (and tests) differs from retrieveFullFormById in that this retrieves the unpopulated form document * feat(AdminFormSvc): add duplicateForm service function * ref(adminFormUtils): update shape of DuplicateFormBody, OverrideProps * test(adminFormUtils): add tests for processDuplicateOverrideProps * test(AdminFormSvc): add duplicateForm tests * feat(AdminFormCtl): add handleDuplicateForm handler fn * feat(AdminForm): duplicated form logos are now set to default state also remove isTemplate requirement in route not used, every single duplicated form should be reset to default logo state * ref(AdminFormCtl): rename to handleDuplicateAdminForm two duplicate functions, with different handlers. this rename separates them * test(AdminFormCtl): add tests for handleDuplicateAdminForm * test(FormModel): add getDashboardView tests * ref(AdminFormRoutes): use new handleDuplicateAdminForm ctl fn * feat(adminFormUtils): add JSDoc to processDuplicateOverrideProps * fix(AdminFormRoutes): add withUserAuthentication middleware * fix(AdminFormCtl): correct logger action handleDuplicateAdminForm * test: use mockReturnValueOnce instead of mockImplementationOnce * feat: remove isNew param from OverrideProps when creating object seems to be legacy code, not used anywhere in the backend
Bumps [validator](https://github.com/chriso/validator.js) from 13.1.17 to 13.5.1. - [Release notes](https://github.com/chriso/validator.js/releases) - [Changelog](https://github.com/validatorjs/validator.js/blob/master/CHANGELOG.md) - [Commits](validatorjs/validator.js@13.1.17...13.5.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat(AuthSvc): add getFormIfPublic service fn (and tests) * test(FormSvc): add tests for isFormPublic function * feat(AdminFormCtl): add handleCopyTemplateForm handler fn * feat(AdminFormRoutes): add Joi validation to /adminform/copy api * ref(AdminFormRoutes): use new handleCopyTemplateForm handler * feat: remove and track sending of isTemplate param when using template related to #792 * test(AdminFormCtl): add tests for handleCopyTemplateForm * feat: remove unused adminForms.duplicate function * feat(AuthSvc): make overridden error message more generic * ref(AdminFormCtl): unnest call to get dashboard view of duped form
* chore(deps-dev): bump @types/jest from 26.0.15 to 26.0.16 Bumps [@types/jest](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/jest) from 26.0.15 to 26.0.16. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/jest) Signed-off-by: dependabot[bot] <[email protected]> * fix: enhance types in tests to match jest expect (or ignore for some cases) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Kar Rui Lau <[email protected]>
* feat: add joi validation to form creation route * feat(AdminFormSvc): add createForm function (and tests) difference from just calling Form.create is that it forces the admin form schema parameter to be a string * feat(AdminFormCtl): add handleCreateForm handler fn (and tests) * fix(sharedLogicUtils): use correct IFormSchema type * feat: transformMongoError util xform mongoErrors to ApplicationErrors * feat(AdminFormSvc): createForm to return transformed mongo error * ref(AdminFormRoutes): use new create form handler function remove the old function, update existing "integration" tests to use the new handler * test(AdminFormCtl): add test cases for new returnable database errors * test(AdminFormSvc): add test cases for asserting returned errors * chore: trigger travis rebuild * feat: remove unused getDiscriminatedFormModel fn * fix: use AdminFormController.handleCreateForm (missed during rebase)
Bumps [eslint-plugin-simple-import-sort](https://github.com/lydell/eslint-plugin-simple-import-sort) from 6.0.0 to 6.0.1. - [Release notes](https://github.com/lydell/eslint-plugin-simple-import-sort/releases) - [Changelog](https://github.com/lydell/eslint-plugin-simple-import-sort/blob/main/CHANGELOG.md) - [Commits](lydell/eslint-plugin-simple-import-sort@v6.0.0...v6.0.1) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [husky](https://github.com/typicode/husky) from 4.3.0 to 4.3.5. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](typicode/husky@v4.3.0...v4.3.5) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: update email prevention text and link * feat: add info box when user only has a single email recipient * feat: change update auth method toaster messaging * feat: amend email form discouragement copy * feat: update copy of form de/activation toast
* feat(formUtils): add removePrivateDetailsFromForm utility function * feat: add formTitle variable to PrivateFormError and remove override * feat(AdminFormCtl): add handleGetTemplateForm handler for GET /:formId/adminform/template * test(AdminFormCtl): add tests for handleGetTemplateForm * ref(AdminFormRoutes): use AdminFormController.handleGetTemplateForm * chore: trigger travis rebuild
* feat: change storage mode form typed declaration * feat: remove verified toast on secret key verification success just need toast after successfully activating the form * feat: update storage mode guide link styling only the word guide is linked, the brackets are outside * feat: add spacing between each email in email form email list that's a lot of emails in a sentence
Bumps [libphonenumber-js](https://gitlab.com/catamphetamine/libphonenumber-js) from 1.9.5 to 1.9.6. - [Release notes](https://gitlab.com/catamphetamine/libphonenumber-js/tags) - [Changelog](https://gitlab.com/catamphetamine/libphonenumber-js/blob/master/CHANGELOG.md) - [Commits](https://gitlab.com/catamphetamine/libphonenumber-js/commits/master) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@sentry/browser](https://github.com/getsentry/sentry-javascript) from 5.28.0 to 5.29.0. - [Release notes](https://github.com/getsentry/sentry-javascript/releases) - [Changelog](https://github.com/getsentry/sentry-javascript/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-javascript@5.28.0...5.29.0) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 14.14.10 to 14.14.11. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore: remove travis retry flaky test is fixed * fix: add globalSetup fn to download mongo binary before jest tests
build: merge 4.48.2 into develop
this allows correct alignment
* feat: tear out response hash * feat: remove json-stringify-deterministic dep
TestsIE11 intranet tests for this week
IE11 intranet general run-through
|
TestsCaptcha
|
TestsMigrate form ownership Typescript refactor
|
TestsEmail submissions
|
TestsField validators
|
TestsForm duplication
Storage mode duplication
Email mode duplication
|
TestsBoth retrieving template form and using template form
|
TestsDate field bug
|
TestsCreate new form
|
TestsView form dashboard
|
TestsDelete admin form
|
TestsTighten submission validation
|
karrui
approved these changes
Dec 10, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Improved
#800
#796
#817
#794
#834
#825
#833
#751
#826
#793
#806
#753
#789
#807
#823
#718
#827
#749
#750
#752
#755
#788
#795
Bug fixes
#837
#816
#824
Dependency upgrades
#821
#801
#697
#812
#829
#813
#803
#745
#810
#820
#819
#785
#782
#774
#831
#783
#818
#784
#798
#832
#797
#811
#804