Skip to content

various minor updates & cleanup #206

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

Merged
merged 41 commits into from
May 16, 2025
Merged

Conversation

avlo
Copy link
Collaborator

@avlo avlo commented Apr 29, 2025

hi, eric. below PR consisting of minor changes/cleanup, with special note on first item:

  • GenericTag relocated from nostr.event.impl to nostr.event.tag

for any library users explicitly using GenericTag it is technically a breaking change although i suspect all/most users use concrete tag implementations (EventTag, PubKeyTag, etc) directly, which are all unchanged.

general:

  • AddressableTagFilter renamed to AddressTagFilter
  • TagSerializer split into BaseTagSerializer and GenericTagSerializer implementations
  • BaseTagSerializer and GenericTagSerializer extend newly introduced AbstractTagSerializer
  • BaseTagEncoder updated to use BaseTagSerializer
  • BaseTag.getFieldValue() potential null String result replaced with Optional
  • added VoteTag & VoteTagFilter
  • GenericMessage.decode() method updated to use Stream
  • BaseMessageDecoder cleaned up
  • added VoteTagFilter to FilterableProvider
  • cleaned up SignatureDeserializer
  • OkMessage.decode() cleaned up

tests:

  • refactored common/useful test patterns into CommonTestObjectsFactory class
  • new and updated tests added for all the above, all passing
  • various gradle build/config updates

all/any concerns, questions, additional considerations, etc, welcome as always

avlo added 30 commits March 21, 2025 02:54
…ing exception

AbstractTagSerializer now uses above Optional in serialization stream

AbstractTagSerializer removed failableStream since no longer needed to handle above stream exceptions
test updates accordingly
@avlo avlo requested a review from tcheeric April 29, 2025 04:13
@avlo avlo added the awaiting review PR awaiting review label Apr 29, 2025
@tcheeric
Copy link
Owner

Thanks nick. I also have some changes in the pipeline. I'll work on it this weekend or earlier.

@avlo
Copy link
Collaborator Author

avlo commented Apr 30, 2025

yw, sounds good & thx you as well. btw, if easier/convenient for you, we can hold off on this PR until your changes are merged into develop branch, after which i'll update this PR with those changes and then merge this PR into develop branch.

@tcheeric tcheeric closed this May 4, 2025
@tcheeric tcheeric reopened this May 4, 2025
@tcheeric tcheeric added review:approved PR review approved and removed awaiting review PR awaiting review labels May 16, 2025
@avlo avlo merged commit be56d10 into tcheeric:develop May 16, 2025
@avlo
Copy link
Collaborator Author

avlo commented May 16, 2025

excellent, thx eric- btw, minor supplemental update was just pushed into develop branch as well.

@avlo avlo deleted the upstream-develop-snapshot branch May 16, 2025 17:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review:approved PR review approved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants