-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat!: rename to @comapeo/schema
#260
Conversation
@@ -1,6 +1,6 @@ | |||
## Build steps | |||
|
|||
1. `npm run generate` will generate type definitions and encode/decode functions from `.proto` files, and generate type definitions from json schema files, and place them in `generated`. It will also generate validation functions from json schema files and place that in `dist`. | |||
1. `npm run build:generate` will generate type definitions and encode/decode functions from `.proto` files, and generate type definitions from json schema files, and place them in `generated`. It will also generate validation functions from json schema files and place that in `dist`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not strictly related, but this was incorrect.
|
||
[![Build Status](https://img.shields.io/travis/digidem/mapeo-schema.svg)](https://travis-ci.org/digidem/mapeo-schema) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed these badges. We don't use Travis CI or Standard style, and I didn't feel like updating the npm badge for a version that doesn't (yet) exist.
const mapeoSchema = require('mapeo-schema') | ||
// also | ||
const validateObservation = require('mapeo-schema/validateObservation') | ||
import { validate } from '@comapeo/schema' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated these code examples.
@@ -53,34 +49,6 @@ const myObs: Observation = {...} | |||
|
|||
[@digidem](https://github.com/digidem) | |||
|
|||
## Contributing |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed this whole section because I think it's outdated.
@@ -78,11 +78,6 @@ export function parseVersionId(versionId: string): VersionIdObject { | |||
return { coreDiscoveryKey, index } | |||
} | |||
|
|||
/** | |||
* @template {import('@mapeo/schema').MapeoDoc & { forks?: string[] }} T |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This referred to @mapeo/schema
, but it didn't actually do anything because this is a TypeScript file. Rather than update the reference, I just removed all of it.
Closes #194.