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

chore: move args for createEncoder into non-repeating options & fix typedoc #1146

Merged
merged 3 commits into from
Feb 2, 2023

Conversation

danisharora099
Copy link
Collaborator

@github-actions
Copy link

github-actions bot commented Feb 1, 2023

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
Waku core 133 KB (-0.05% 🔽) 2.7 s (-0.05% 🔽) 3.4 s (+14.2% 🔺) 6.1 s
Waku default setup 424.55 KB (-0.01% 🔽) 8.5 s (-0.01% 🔽) 6 s (+15.42% 🔺) 14.5 s
ECIES encryption 44.49 KB (+0.04% 🔺) 890 ms (+0.04% 🔺) 2.6 s (+28.34% 🔺) 3.5 s
Symmetric encryption 44.49 KB (+0.04% 🔺) 890 ms (+0.04% 🔺) 2.2 s (+30.93% 🔺) 3.1 s
DNS discovery 108.08 KB (0%) 2.2 s (0%) 3.3 s (-24.66% 🔽) 5.4 s
Privacy preserving protocols 131.97 KB (-0.07% 🔽) 2.7 s (-0.07% 🔽) 2.7 s (+2.53% 🔺) 5.3 s
Light protocols 133.99 KB (-0.07% 🔽) 2.7 s (-0.07% 🔽) 2 s (-30.94% 🔽) 4.7 s
History retrieval protocols 133.78 KB (-0.06% 🔽) 2.7 s (-0.06% 🔽) 2.6 s (-16.66% 🔽) 5.3 s

@danisharora099 danisharora099 marked this pull request as ready for review February 1, 2023 07:09
Copy link
Collaborator

@weboko weboko left a comment

Choose a reason for hiding this comment

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

Looks good

@danisharora099 danisharora099 merged commit 8910a6d into master Feb 2, 2023
@danisharora099 danisharora099 deleted the chore/improve-encoder-api branch February 2, 2023 06:07
@danisharora099 danisharora099 mentioned this pull request Feb 2, 2023
13 tasks
Copy link
Collaborator

@fryorcraken fryorcraken left a comment

Choose a reason for hiding this comment

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

Need to update changelog to document breaking api change

contentTopic: string,
ephemeral = false
): Encoder {
export function createEncoder({
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we think we want to accept string | EncoderOptions so most of the time, the developer just pass the content topic string and only pass an object in advance usage?

WDYT @hackyguru ?

@@ -63,6 +64,13 @@ export class Encoder implements IEncoder {
}
}

export interface EciesEncoderOptions extends EncoderOptions {
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO we are in the ecies package so the Ecies prefix is not needed.

@@ -61,6 +62,13 @@ export class Encoder implements IEncoder {
}
}

export interface SymmetricEncoderOptions extends EncoderOptions {
Copy link
Collaborator

Choose a reason for hiding this comment

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

IMO we are in the symmetric package so the Symmetric prefix is not needed.

danisharora099 added a commit that referenced this pull request Feb 7, 2023
- update changelog
- change naming for `EciesEncoderOptions` and
`SymmetricEncoderOptions`
@danisharora099
Copy link
Collaborator Author

@fryorcraken addressed the above ^

danisharora099 added a commit that referenced this pull request Feb 9, 2023
* address comments from #1145

* fix: typedoc

* address comments in #1146 (review)

- update changelog
- change naming for `EciesEncoderOptions` and
`SymmetricEncoderOptions`
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