-
Notifications
You must be signed in to change notification settings - Fork 6
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
fix: update dag-ucan, types and names #90
Conversation
@@ -1 +1,9 @@ | |||
{"packages/authority":"0.5.0","packages/client":"0.6.0","packages/core":"0.6.0","packages/interface":"0.7.0","packages/server":"0.7.0","packages/transport":"0.7.0","packages/validator":"0.6.0"} |
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.
We should probably ignore this file because release-please insists on not touching it
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.
maybe im not familiar with your setup here
@@ -11,7 +11,7 @@ export { create, createV0, isLink, asLink, parse } | |||
* @template {1|0} Version | |||
* @param {unknown} input | |||
* @param {{code?:Code, algorithm?:Alg, version?:Version}} [options] | |||
* @returns {API.Result<API.Link<unknown, Code, Alg, Version>, API.Failure>} | |||
* @returns {API.Result<API.Link<any, Alg>, API.Failure>} |
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.
* @returns {API.Result<API.Link<any, Alg>, API.Failure>} | |
* @returns {API.Result<API.Link<unknown, Alg>, API.Failure>} |
@@ -43,7 +43,7 @@ export const decode = (input, options = {}) => { | |||
) | |||
} | |||
|
|||
/** @type {API.Link<unknown, Code, Alg, Version>} */ | |||
/** @type {API.Link<any, Alg>} */ |
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.
/** @type {API.Link<any, Alg>} */ | |
/** @type {API.Link<unknown, Alg>} */ |
@@ -56,7 +56,7 @@ export const decode = (input, options = {}) => { | |||
* @template {number} Alg | |||
* @template {1|0} Version | |||
* @param {{code?:Code, algorithm?:Alg, version?:Version}} options | |||
* @returns {API.Decoder<unknown, API.Link<unknown, Code, Alg, Version>, API.Failure>} | |||
* @returns {API.Decoder<unknown, API.Link<any, Alg>, API.Failure>} |
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.
* @returns {API.Decoder<unknown, API.Link<any, Alg>, API.Failure>} | |
* @returns {API.Decoder<unknown, API.Link<unknown, Alg>, API.Failure>} |
@@ -68,7 +68,7 @@ export const match = (options) => ({ | |||
* @template {number} Alg | |||
* @template {1|0} Version | |||
* @param {{code?:Code, algorithm?:Alg, version?:Version}} [options] | |||
* @returns {API.Decoder<unknown, undefined|API.Link<unknown, Code, Alg, Version>, API.Failure>} | |||
* @returns {API.Decoder<unknown, undefined|API.Link<any,Alg>, API.Failure>} |
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.
* @returns {API.Decoder<unknown, undefined|API.Link<any,Alg>, API.Failure>} | |
* @returns {API.Decoder<unknown, undefined|API.Link<unknown, Alg>, API.Failure>} |
@hugomrdias I have addressed all the remaining issues & fixed few type regressions I've discovered. I also have reflected new agreed naming of Only think that I'm not sure about is why in some places |
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 really think we should keep the UCAN namespace in the type exports since have a few types with the same name in UCAN and Ucanto
Co-authored-by: Irakli Gozalishvili <contact@gozala.io>
depends on ipld/js-dag-ucan#55