Skip to content
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

Merged
merged 2 commits into from
Sep 17, 2024
Merged

feat!: rename to @comapeo/schema #260

merged 2 commits into from
Sep 17, 2024

Conversation

EvanHahn
Copy link
Contributor

@EvanHahn EvanHahn commented Sep 16, 2024

Closes #194.

@@ -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`.
Copy link
Contributor Author

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)
Copy link
Contributor Author

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'
Copy link
Contributor Author

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
Copy link
Contributor Author

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
Copy link
Contributor Author

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.

@EvanHahn EvanHahn marked this pull request as ready for review September 16, 2024 20:36
@EvanHahn EvanHahn added the mvp label Sep 16, 2024
@EvanHahn EvanHahn merged commit 0440167 into main Sep 17, 2024
6 checks passed
@EvanHahn EvanHahn deleted the rename-to-comapeo-schema branch September 17, 2024 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename to @comapeo/schema and release v1
2 participants