Skip to content
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

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

BurnedMarshal
Copy link
Contributor

@BurnedMarshal BurnedMarshal commented Mar 15, 2024

List of Changes

Upgrade fp-ts and io-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 as peerDependencies allow the main project that use io-functions-commons to command how lib version should be used.

How Has This Been Tested?

not tested

Screenshots (if appropriate):

Types of changes

  • Chore (nothing changes by a user perspective)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

@BurnedMarshal BurnedMarshal requested a review from a team as a code owner March 15, 2024 16:54
Copy link

Jira Pull Request Link

This Pull Request refers to the following Jira issue DEVEX-60

@BurnedMarshal BurnedMarshal requested review from balanza and lucacavallaro and removed request for Garma00 and silvicir March 20, 2024 08:31
Copy link
Contributor

@balanza balanza left a 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",
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud

@BurnedMarshal BurnedMarshal changed the title [#DEVEX-60] Update fp-ts and io-ts (2.16.2 and 2.2.21) [#DEVEX-60] Update fp-ts and io-ts peerDeps Mar 28, 2024
@BurnedMarshal
Copy link
Contributor Author

/azp run

Copy link

No pipelines are associated with this pull request.

@BurnedMarshal BurnedMarshal merged commit a0fd681 into master Mar 29, 2024
5 checks passed
@BurnedMarshal BurnedMarshal deleted the DEVEX-60-upgrade-fp-ts branch March 29, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants