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
11 changes: 11 additions & 0 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"import": [
"./node_modules/aegir/cspell.json"
],
"dictionaries": ["project"],
"dictionaryDefinitions": [{
"name": "project",
"path": "./.github/dictionary.txt",
"addWords": true
}]
}
10 changes: 8 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ updates:
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
open-pull-requests-limit: 20
commit-message:
prefix: "deps"
prefix-development: "deps(dev)"
prefix-development: "chore"
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
commit-message:
prefix: chore
21 changes: 21 additions & 0 deletions .github/dictionary.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
prestart
pbjs
sdkljfoee
protoc
boolish
sfixed
varints
longbits
deopt
transpiles
ints
jstype
oneofs
arraylist
bigintify
longify
arrayify
protonbufjs
dont
connmanager
peerstore
12 changes: 12 additions & 0 deletions .github/workflows/semantic-pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Semantic PR

on:
pull_request_target:
types:
- opened
- edited
- synchronize

jobs:
main:
uses: ipdxco/unified-github-workflows/.github/workflows/reusable-semantic-pull-request.yml@v1
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ node_modules
package-lock.json
yarn.lock
.vscode
.tmp-compiled-docs
tsconfig-doc-check.aegir.json
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# protons <!-- omit in toc -->
# protons

[![ipfs.tech](https://img.shields.io/badge/project-IPFS-blue.svg?style=flat-square)](https://ipfs.tech)
[![Discuss](https://img.shields.io/discourse/https/discuss.ipfs.tech/posts.svg?style=flat-square)](https://discuss.ipfs.tech)
Expand All @@ -7,13 +7,13 @@

> Protobuf to ts transpiler

`protons` is a high performance implementation of [Protocol Buffers v3](https://protobuf.dev/programming-guides/proto3/).

# Packages

- [`/packages/protons`](./packages/protons) The transpiler
- [`/packages/protons-benchmark`](./packages/protons-benchmark) A benchmark suite
- [`/packages/protons-runtime`](./packages/protons-runtime) Shared components that turn values to bytes and back again
- [`packages/protons`](https://github.com/ipfs/protons/tree/main/packages/protons) Protobuf to ts transpiler
- [`packages/protons-benchmark`](https://github.com/ipfs/protons/tree/main/packages/protons-benchmark) Protobuf to ts transpiler
- [`packages/protons-runtime`](https://github.com/ipfs/protons/tree/main/packages/protons-runtime) Shared code to make your bundle smaller when running protons in your app

`protons` is a high performance implementation of [Protocol Buffers v3](https://protobuf.dev/programming-guides/proto3/).

# API Docs

Expand All @@ -23,8 +23,8 @@

Licensed under either of

- Apache 2.0, ([LICENSE-APACHE](LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](LICENSE-MIT) / <http://opensource.org/licenses/MIT>)
- Apache 2.0, ([LICENSE-APACHE](https://github.com/ipfs/protons/blob/main/LICENSE-APACHE) / <http://www.apache.org/licenses/LICENSE-2.0>)
- MIT ([LICENSE-MIT](https://github.com/ipfs/protons/blob/main/LICENSE-MIT) / <http://opensource.org/licenses/MIT>)

# Contribute

Expand Down
95 changes: 6 additions & 89 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,101 +32,18 @@
"lint": "aegir run lint",
"dep-check": "aegir run dep-check",
"doc-check": "aegir run doc-check",
"spell-check": "aegir spell-check",
"release": "run-s build docs:no-publish npm:release docs",
"npm:release": "aegir run release",
"npm:release": "aegir run release --concurrency 1",
"docs": "aegir docs",
"docs:no-publish": "aegir docs --publish false"
},
"dependencies": {
"aegir": "^47.0.5",
"devDependencies": {
"aegir": "^47.0.24",
"npm-run-all": "^4.1.5"
},
"type": "module",
"workspaces": [
"packages/*"
],
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"breaking": true,
"release": "major"
},
{
"revert": true,
"release": "patch"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "docs",
"release": "patch"
},
{
"type": "test",
"release": "patch"
},
{
"type": "deps",
"release": "patch"
},
{
"scope": "no-release",
"release": false
}
]
}
],
[
"@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "chore",
"section": "Trivial Changes"
},
{
"type": "docs",
"section": "Documentation"
},
{
"type": "deps",
"section": "Dependencies"
},
{
"type": "test",
"section": "Tests"
}
]
}
}
],
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
"@semantic-release/git"
]
}
]
}
50 changes: 8 additions & 42 deletions packages/protons-benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,41 +3,7 @@
"version": "0.0.0",
"description": "Protobuf to ts transpiler",
"license": "Apache-2.0 OR MIT",
"homepage": "https://github.com/ipfs/protons/tree/master/packages/protons-benchmark#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/ipfs/protons.git"
},
"bugs": {
"url": "https://github.com/ipfs/protons/issues"
},
"type": "module",
"types": "./dist/src/index.d.ts",
"files": [
"src",
"dist",
"!dist/test",
"!**/*.tsbuildinfo"
],
"exports": {
".": {
"types": "./dist/src/index.d.ts",
"import": "./dist/src/index.js"
}
},
"eslintConfig": {
"extends": "ipfs",
"parserOptions": {
"project": true,
"sourceType": "module"
},
"ignorePatterns": [
"src/implementations/pbjs/*",
"src/implementations/protobuf-es/*",
"src/implementations/protobuf-ts/*",
"src/implementations/protobufjs/*"
]
},
"scripts": {
"clean": "aegir clean",
"lint": "aegir lint",
Expand All @@ -50,18 +16,18 @@
"start:browser": "npx playwright-test dist/src/implementations/index.js --runner benchmark"
},
"dependencies": {
"@bufbuild/protobuf": "^2.0.0",
"@bufbuild/protoc-gen-es": "^2.0.0",
"@protobuf-ts/plugin": "^2.8.1",
"@protobuf-ts/runtime": "^2.8.1",
"@types/benchmark": "^2.1.1",
"aegir": "^47.0.5",
"@bufbuild/protobuf": "^2.11.0",
"@bufbuild/protoc-gen-es": "^2.11.0",
"@protobuf-ts/plugin": "^2.11.1",
"@protobuf-ts/runtime": "^2.11.1",
"@types/benchmark": "^2.1.5",
"aegir": "^47.0.26",
"benchmark": "^2.1.4",
"pbjs": "^0.0.14",
"protobufjs": "^7.0.0",
"protobufjs": "^7.5.4",
"protons": "^7.0.0",
"protons-runtime": "^5.0.0",
"uint8arraylist": "^2.4.3"
"uint8arraylist": "^2.4.8"
},
"private": true
}
3 changes: 3 additions & 0 deletions packages/protons-runtime/CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Contributor Code of Conduct

This project follows the [`IPFS Community Code of Conduct`](https://github.com/ipfs/community/blob/master/code-of-conduct.md)
4 changes: 0 additions & 4 deletions packages/protons-runtime/LICENSE

This file was deleted.

Loading
Loading