-
Notifications
You must be signed in to change notification settings - Fork 4
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
[#DEVEX-60] Update fp-ts and io-ts peerDeps #370
Conversation
Jira Pull Request LinkThis Pull Request refers to the following Jira issue DEVEX-60 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a question.
Anyway, I'm ok with changes as long as they are intended.
package.json
Outdated
"applicationinsights": "^1.8.10", | ||
"azure-storage": "^2.10.5", | ||
"cidr-matcher": "^2.1.1", | ||
"fp-ts": "^2.10.5", | ||
"fp-ts": "2.16.2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
question: We're referencing a specific version rather than a pattern. Is that deliberate or a typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's deliberate. The last upgrade of this library and the combination with the io-ts
are incompatible. To avoid compilation error you must have the right combo between the two libs. I've choose to lock the libs version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, great. Just for future reference, do you have any issue/article to link, if any?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The commit 4aa6c4e use fp-ts
and io-ts
as peer dependencies. This allow to resolve conflicts at the project level. Now the libs version are not locked anymore.
Quality Gate passedIssues Measures |
/azp run |
No pipelines are associated with this pull request. |
List of Changes
Upgrade
fp-ts
andio-ts
to the lastest available version.Updated other libs in dependencies.
Motivation and Context
To complete an integration into a monorepo, is required that
@pagopa/ts-commons
and@pagopa/io-functions-commons
use the same version of the fp-ts ecosystem libraries. Declaring the two libraries aspeerDependencies
allow the main project that useio-functions-commons
to command how lib version should be used.How Has This Been Tested?
not tested
Screenshots (if appropriate):
Types of changes