Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: share/sharedb-postgres
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.1.0
Choose a base ref
...
head repository: share/sharedb-postgres
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 8 commits
  • 9 files changed
  • 2 contributors

Commits on Jun 12, 2024

  1. 🙈 Remove package-lock.json from git

    Consistent with other ShareDB repos, and makes sure we run the build
    against the latest dependencies possible.
    alecgibson committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    36afc17 View commit details
    Browse the repository at this point in the history
  2. 💥 Comply with sharedb spec

    This is a **BREAKING** change that:
    
     - adds tests against the [upstream `sharedb` DB test suite][1]
     - adds a CI build for the tests against current Node.js and Postgres
       versions
     - breaks the API to conform to the upstream tests, including adding
       metadata support
    
    The breaks are:
    
     - Dropping non-null constraints on `snapshots.doc_type` and
       `snapshots.data` (to allow `Doc`s to be deleted)
     - Adding a new `snapshots.metadata` `json` column
     - Respecting `options.metadata` and `fields.$submit`, which were
       previously ignored on `getOps()`, and useless on `getSnapshot()`
       (which didn't store metadata)
     - `snapshot.m` is now `undefined` if not present, or `null` if
       unrequested (inline with the spec)
    
    On top of this it also makes some bugfixes to conform to the spec:
    
     - Ignore unique key validations when committing, since this may happen
       during concurrent commits
     - `JSON.stringify()` JSON fields, which [break][2] if passed a raw
       array
     - Default `from = 0` if unset in `getOps()`
    
    [1]: https://github.com/share/sharedb/blob/7abe65049add9b58e1df638aa34e7ca2c0a1fcfa/test/db.js#L25
    [2]: brianc/node-postgres#442
    alecgibson committed Jun 12, 2024
    Configuration menu
    Copy the full SHA
    aabcda4 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. Merge pull request #24 from share/setup-ci

    💥 Comply with `sharedb` spec
    alecgibson authored Jun 25, 2024
    Configuration menu
    Copy the full SHA
    5a5fd6d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    166bb8f View commit details
    Browse the repository at this point in the history
  3. 5.0.0

    alecgibson committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    58ee945 View commit details
    Browse the repository at this point in the history

Commits on Oct 18, 2024

  1. Update index.js

    When updating the snapshot table, the metadata field was mistakenly updated to the data field
    cuihom authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    e7c2d87 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #25 from cuihom/main

    Fix snapshot commit metadata on conflict
    alecgibson authored Oct 18, 2024
    Configuration menu
    Copy the full SHA
    487b289 View commit details
    Browse the repository at this point in the history
  3. 5.0.1

    alecgibson committed Oct 18, 2024
    Configuration menu
    Copy the full SHA
    f98498a View commit details
    Browse the repository at this point in the history
Loading