Alex Currie-Clark

Results 25 issues of Alex Currie-Clark

PatchSources are currently defined as a type, but it is also useful to be able to check that a source is valid at runtime. This PR keeps the type the...

When looking for a string in a list of `next` strings using indexOf, the current logic only matches if we are looking for the exact `String` object, not the string...

This might be a symptom of something grander, but this specific example doesn't produce the expected set of patches: ```ts import { next } from "@automerge/automerge" const before = next.from({...

**TLDR:** Following loading a document from incremental saves, should the next call to `saveIncremental` be based on the loaded state? --- Automerge Repo makes use of incremental loads when storing...

An attempt has previously been made to fix this in #2938, but I don't think it worked as intended. This fix has been working well for me an I hope...

It seems that `Path` doesn't pick out object keys which are numbers, rather than strings. For example: ```ts const obj = { days: { 1: true, "2": false, 3: true...

help wanted

I am using `getByPath` in a helper function and passing in a `Path` as a parameter. The path is useful to me in another package, which takes an array rather...

# Bug report Originally posted in the main [supabase repo](https://github.com/supabase/supabase/issues/9373), but reposting here as it seems to have regressed. ## Describe the bug When attempting to call an edge function...

bug

Consider the following: 1. 2 peers, Alice, Bob. Bob has a share policy of false. 2. Alice tries to find a document which neither of them has. It isn't available,...

We are currently generating change patches by calling `Automerge.diff` after each change. For an average change, this `diff` takes ~35ms. While this isn't a spectacularly long period of time, the...