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

datx-jsonapi-types #1167

Merged
merged 7 commits into from
Apr 19, 2023
Merged

datx-jsonapi-types #1167

merged 7 commits into from
Apr 19, 2023

Conversation

isBatak
Copy link
Contributor

@isBatak isBatak commented Apr 19, 2023

This PR extracts JSON:API types to separate package.
Nothing is changed, there is no breaking changes.

@isBatak isBatak changed the title move jsonapi types to separate package datx-jsonapi-types Apr 19, 2023
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We would probably also want a readme file, because it's used on npm as the package info (it should probably link to some kind of docs)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done!

@@ -1,9 +1,9 @@
import { fetchLink, IResponseSnapshot, Response as PromiseResponse } from '@datx/jsonapi';
import type { ILink } from '@datx/jsonapi-types';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this, because it's not just about those libs, but also about the usage in the project. This is a breaking change, so it might be a good idea to reexport the types within @datx/jsonapi just to avoid it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just re-exported old interfaces here https://github.com/infinum/datx/pull/1167/files#diff-6e096333c00ec510aa25c3e3e5d8d1c7522d841afb1b993d3b17ce6d932b7b85R45

ILink was not one of them so this is an inprovement

@sonarcloud
Copy link

sonarcloud bot commented Apr 19, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@isBatak isBatak merged commit 5de4e48 into master Apr 19, 2023
11 checks passed
@isBatak isBatak deleted the datx-jsonapi-types branch April 19, 2023 16:20
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.

None yet

3 participants