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

Code for initial release #1

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Code for initial release #1

wants to merge 3 commits into from

Conversation

adamshaylor
Copy link
Collaborator

This is mostly the same as lobelia-earth/lobelia-explore#86. I whipped together a quick, mostly trivial test to make sure the exports and source maps worked. They didn’t, partly because I was trying to get fancy by building both minified and un-minified outputs, which is probably not worthwhile since we’re including the source with the package. Anyway, those are fixed now and this is what the test looks like.

Screen.Recording.2024-09-23.at.12.11.08.mov

I can share the source for this test if anyone is curious, but the principle should be the same regardless of whether the state container is Pinia, Redux, or a map engine. So long as you can pass in a well-typed default state object and replace the current state with an object of the same shape, you can use this library.

I closed the other PR before anyone really had a chance to fully review it. Feedback is welcome, especially since I haven’t released this yet. If you have any concerns—especially about the architecture and API design—it will be easier to address those now than after we release.

This rather sizeable commit is the result of two rounds of prototyping
and an initial pull request into a private monorepo before we decided to
open source this as an independent repository and npm package.

I intend to open a pull request for this to invite a final round of
feedback before publishing the initial release and to ensure Github
Actions tests the build properly.
@adamshaylor
Copy link
Collaborator Author

I see the build failure. That’s my faulty Github Actions setup. Working on it...

@adamshaylor
Copy link
Collaborator Author

...fixed.

Copy link

@paumoreno paumoreno left a comment

Choose a reason for hiding this comment

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

Thank you for implementing this! It feels very natural to work with, and the fact that it's strongly typed makes using it super comfortable. Already looking forward to use it in a real scenario!

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.

2 participants