Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets).

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
7 changes: 7 additions & 0 deletions .changeset/wicked-turtles-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@codemix/graph": patch
"@codemix/text-search": patch
"@codemix/y-graph-storage": patch
---

Add npm publishing metadata and automated release configuration for the monorepo packages.
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Release

on:
push:
branches:
- main
workflow_dispatch:

concurrency:
group: release-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

permissions:
contents: write
pull-requests: write
id-token: write

jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: pnpm/action-setup@v4
with:
version: 10

- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
registry-url: https://registry.npmjs.org

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Create release PR or publish
uses: changesets/action@v1
with:
version: pnpm version-packages
publish: pnpm release
commit: "chore: version packages"
title: "chore: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
<p align="center">
<img src="./codemix-logo.png" alt="codemix" width="240" />
</p>

# @codemix/graph

A fully type-safe, TypeScript-first in-memory property graph database with a Cypher query language parser, a **type-safe [TinkerPop](https://tinkerpop.apache.org/) / [Gremlin](https://tinkerpop.apache.org/docs/current/reference/#gremlin)-style traversal API** (`GraphTraversal`), multiple index types, and pluggable storage adapters including a [Yjs](https://yjs.dev/) CRDT-based adapter for collaborative/realtime/offline-first use.
Expand Down
Binary file added codemix-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
],
"scripts": {
"build": "pnpm run -r build",
"changeset": "changeset",
"version-packages": "changeset version",
"release": "pnpm build && changeset publish",
"typecheck": "pnpm run -r typecheck",
"test": "vitest",
"test:coverage": "vitest run --coverage",
Expand All @@ -19,6 +22,7 @@
"format:check": "oxfmt --check ."
},
"devDependencies": {
"@changesets/cli": "^2.30.0",
"@vitest/coverage-istanbul": "catalog:",
"oxfmt": "^0.44.0",
"oxlint": "^1.59.0",
Expand Down
6 changes: 6 additions & 0 deletions packages/graph/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.0.1",
"description": "The codemix graph database.",
"license": "MIT",
"files": [
"dist"
],
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
Expand All @@ -13,6 +16,9 @@
}
}
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "pnpm run build:grammar && tsc",
"build:grammar": "peggy --format es src/grammar.peggy -o src/grammar.js --dts --return-types '{\"MultiStatement\": \"import('\\''./AST.js'\\'').Query | import('\\''./AST.js'\\'').UnionQuery | import('\\''./AST.js'\\'').MultiStatement\", \"CypherStatement\": \"import('\\''./AST.js'\\'').Query | import('\\''./AST.js'\\'').UnionQuery\"}' && mkdir -p dist && cp src/grammar.* dist",
Expand Down
6 changes: 6 additions & 0 deletions packages/text-search/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.0.1",
"description": "Fast, accurate text search with BM25 scoring and stemming.",
"license": "MIT",
"files": [
"dist"
],
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
Expand All @@ -13,6 +16,9 @@
}
}
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
Expand Down
6 changes: 6 additions & 0 deletions packages/y-graph-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
"version": "0.0.1",
"description": "A YJS storage adapter for the codemix graph database.",
"license": "MIT",
"files": [
"dist"
],
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
Expand All @@ -13,6 +16,9 @@
}
}
},
"publishConfig": {
"access": "public"
},
"scripts": {
"build": "tsc",
"typecheck": "tsc --noEmit",
Expand Down
Loading
Loading