-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Unbundle DocID into DocID and CommitID (#1009)
* chore(docid): no more declarations.d.ts * chore(docid): doc id in own file * chore(docid): extract constants in own file * feat(docid): always use base36 * fix(docid): adjust tests * fix(docid): rename test file * fix(docid): Drop DocId#multihash * feat(docid): Introduce CommitId (dummy one for now) * feat(docid): No commit * feat(docid): _doctype => #doctype, _cid => #cid * feat(docid): static methods for DocID * feat(docid): doctypes registry * feat(docid): ripple doctypes registry to CommitID * chore(docid): better tests for CommitId * chore(docid): better tests for CommitId and DocId * chore(docid): CommitId => CommitID * feat(docid): DocID#baseID * feat(docid): add doc comments, and expose CommentID * chore(docid): More documentation * chore(docid): Get back proper docid encoding in README * feat(docid): CommitID requires commit when parsing * feat(docid): Introduce DocRef * chore: Adjust tests and code for DocID, CommitID * chore(core): Remove dev comments * chore(core): Remove more dev comments * chore: Rename `travel` to `atCommit` * feat: DocID.fromString and DocID.fromBytes are strict now No commit information! * feat: Throw proper error when referencing schema without commit * Update packages/core/src/document.ts Co-authored-by: Spencer T Brody <[email protected]> * feat: CommitID inspection returns its string representation * feat: memoize more calculated properties of DocID and CommitID Co-authored-by: Spencer T Brody <[email protected]>
- Loading branch information
Showing
35 changed files
with
1,361 additions
and
1,050 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.