James Pearce

Results 63 comments of James Pearce

I can provoke similar behavior, however, by firing the persister listener with invalid content (because of the way the various parts of the persister are wrapped in try/catches): ```js test.only('autoLoad...

Tests in https://github.com/tinyplex/tinybase/commit/fbafcf19df29af69d73e1cf2a9eac407fc962010 and changes to the way things are handled in https://github.com/tinyplex/tinybase/commit/9f4d9eb211959acfa0787600dc197bbd577598df - both released in v5.0.5. Let me know if that fits the bill. If not, feel free...

Yeah, that's a good point. Still some refinement to be done here (at least with making the semantics of undefined clearer). Your mental model on the whole is correct (except...

Did you see this? https://tinybase.org/guides/schemas-and-persistence/schema-based-typing/ When you use the 'with-schemas' versions of the definitions, you get inferred APIs based on the JSON. Let me know if that is what you...

Assuming that's an OK approach, can I close out this issue?

OK, I think we could have a go at this, though of course it will be a limited dialect of what most of these other schemas are capable of. One...

I am going to focus on schemas in 5.1 and 5.2. Hang in there!

In v5.2, we now expose the custom SQLite creator, so this might now be quite easy to build in user-space too.

I am going to focus on schemas in 5.1 and 5.2. Hang in there!

I was pretty surprised to discover this wouldn't work - lifetime aside, I think this would be a great place to put a lightweight sync server (that also has option...