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

Asset class separate from Subscriber #114

Merged
merged 4 commits into from
Nov 16, 2022
Merged

Asset class separate from Subscriber #114

merged 4 commits into from
Nov 16, 2022

Conversation

owenpearson
Copy link
Member

@owenpearson owenpearson commented Nov 10, 2022

Resolves #19, #99 , #108

  • Makes the API interface significantly more sensible and idiomatic for a JavaScript library
  • Allows tracking multiple assets on one connection
  • Allows multiple listeners to be attached for location updates, status updates, etc. on the same asset
  • Allows listeners to be added to/removed from assets after tracking has started

I realise that the refactor commit here is excessively big, but it's not at all easy to break down, and I don't know if there even is a sensible way to do so. Feel free to suggest a different approach to the commit structure here. For reviewing the external facing changes in this PR the two subsequent commits (type declarations and readme) should give a complete picture of what's changed.

@owenpearson owenpearson force-pushed the asset-class branch 4 times, most recently from 004bb9b to ee73d5c Compare November 10, 2022 18:14
@owenpearson owenpearson marked this pull request as ready for review November 10, 2022 18:18
@owenpearson owenpearson changed the title WIP: Asset class separate from Subscriber Asset class separate from Subscriber Nov 10, 2022
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@KacperKluka KacperKluka left a comment

Choose a reason for hiding this comment

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

I like the new API, just a few things that I noticed 😉

src/lib/Asset.ts Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@KacperKluka KacperKluka left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@owenpearson owenpearson merged commit cb039ef into main Nov 16, 2022
@owenpearson owenpearson deleted the asset-class branch November 16, 2022 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Enable tracking multiple assets on the web example app
3 participants