Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
0858ba1
feat: add default dates to all records
elribonazo Mar 26, 2025
ca80b82
chore(release): 1.7.0-rc.1 [skip ci]
semantic-release-bot Mar 26, 2025
5e36b25
chore(release): 1.6.0-rc.1 [skip ci]
semantic-release-bot Mar 26, 2025
fd18ba6
chore(release): 1.3.0-rc.1 [skip ci]
semantic-release-bot Mar 26, 2025
10de3af
chore(release): 1.3.0-rc.1 [skip ci]
semantic-release-bot Mar 26, 2025
fe5367e
chore: update dependencies after release [skip ci]
elribonazo Mar 26, 2025
e2ffe54
fix: add missing main export
elribonazo Apr 20, 2025
3500048
chore(release): 1.7.0-rc.2 [skip ci]
semantic-release-bot Apr 20, 2025
0c3b8b3
chore(release): 1.6.0-rc.2 [skip ci]
semantic-release-bot Apr 20, 2025
a9a2faf
chore(release): 1.3.0-rc.2 [skip ci]
semantic-release-bot Apr 20, 2025
f539f26
chore(release): 1.3.0-rc.2 [skip ci]
semantic-release-bot Apr 20, 2025
17aa748
chore: update dependencies after release [skip ci]
elribonazo Apr 20, 2025
01cf830
fix: improve exports
elribonazo Apr 20, 2025
ea55279
chore(release): 1.7.0-rc.3 [skip ci]
semantic-release-bot Apr 20, 2025
b53fb85
chore(release): 1.6.0-rc.3 [skip ci]
semantic-release-bot Apr 20, 2025
41a4d1b
chore(release): 1.3.0-rc.3 [skip ci]
semantic-release-bot Apr 20, 2025
5eca57c
chore(release): 1.3.0-rc.3 [skip ci]
semantic-release-bot Apr 20, 2025
456aec4
chore: update dependencies after release [skip ci]
elribonazo Apr 20, 2025
e3aa965
fix: bundle buffer properly from esm cjs
elribonazo Apr 23, 2025
c06765a
chore(release): 1.7.0-rc.4 [skip ci]
semantic-release-bot Apr 23, 2025
9d4d3d5
chore(release): 1.6.0-rc.4 [skip ci]
semantic-release-bot Apr 23, 2025
057856f
chore(release): 1.3.0-rc.4 [skip ci]
semantic-release-bot Apr 23, 2025
43e2fb8
chore(release): 1.3.0-rc.4 [skip ci]
semantic-release-bot Apr 23, 2025
964b2b7
chore: update dependencies after release [skip ci]
elribonazo Apr 23, 2025
511cc7c
fix: improve cjs compatibility
elribonazo Apr 23, 2025
dda7173
chore(release): 1.7.0-rc.5 [skip ci]
semantic-release-bot Apr 23, 2025
b306f81
chore(release): 1.6.0-rc.5 [skip ci]
semantic-release-bot Apr 23, 2025
f299bc9
chore(release): 1.3.0-rc.5 [skip ci]
semantic-release-bot Apr 23, 2025
cf448c6
chore(release): 1.3.0-rc.5 [skip ci]
semantic-release-bot Apr 23, 2025
fc9bdc9
chore: update dependencies after release [skip ci]
elribonazo Apr 23, 2025
b6ac0de
fix: improve path
elribonazo Apr 23, 2025
02b9de2
chore(release): 1.7.0-rc.6 [skip ci]
semantic-release-bot Apr 23, 2025
6a3c9d5
chore(release): 1.6.0-rc.6 [skip ci]
semantic-release-bot Apr 23, 2025
3586231
chore(release): 1.3.0-rc.6 [skip ci]
semantic-release-bot Apr 23, 2025
a985b69
chore(release): 1.3.0-rc.6 [skip ci]
semantic-release-bot Apr 23, 2025
044c5be
chore: update dependencies after release [skip ci]
elribonazo Apr 23, 2025
40c7c9f
fix: add next generation build tools
elribonazo May 4, 2025
c23fc77
fix: improve
elribonazo May 6, 2025
596471f
fix: pr improvements on ci
elribonazo May 6, 2025
69214c8
fix: release
elribonazo May 6, 2025
15d0007
fix: wrong version template for nx
elribonazo May 6, 2025
95da1b8
chore(release): publish
trust0-ci May 6, 2025
340f6be
fix: autopublish
elribonazo May 6, 2025
c2fb1b0
chore(release): publish
trust0-ci May 6, 2025
659cd1f
fix: release
elribonazo May 6, 2025
1aa31cf
fix:release
elribonazo May 6, 2025
d85e609
chore(release): [skip ci]
trust0-ci May 6, 2025
1b78780
fix: add logs
elribonazo May 7, 2025
fe819d7
fix: verbose
elribonazo May 7, 2025
9f8f134
chore(release): [skip ci]
trust0-ci May 7, 2025
9519f09
fix: change readme
elribonazo May 7, 2025
e95de8c
fix: revert
elribonazo May 7, 2025
bae60ce
chore(release): [skip ci]
trust0-ci May 7, 2025
d7c5b0f
fix: release tag
elribonazo May 7, 2025
adbc30e
chore(release): [skip ci]
trust0-ci May 7, 2025
1aabf03
fix: package release and publish order
elribonazo May 7, 2025
a661791
chore(release): [skip ci]
trust0-ci May 7, 2025
89dd383
fix: documentation
elribonazo May 7, 2025
6537555
chore(release): [skip ci]
trust0-ci May 7, 2025
348b3e1
fix: improve prerelease
elribonazo May 7, 2025
c0d369f
chore(release): [skip ci]
elribonazo May 7, 2025
19da94a
fix: ridb documentation
elribonazo May 7, 2025
e0fa775
chore(release): [skip ci]
trust0-ci May 7, 2025
ab2585d
fix: release update
elribonazo May 7, 2025
f9c9aea
chore(release): [skip ci]
trust0-ci May 7, 2025
affed6c
fix: ci [skip ci[
elribonazo May 7, 2025
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
10 changes: 8 additions & 2 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ jobs:
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
scope: '@trust0' # Replace with your organization scope
scope: '@trust0'
cache: 'npm'

- name: Enable Corepack and set up Yarn
run: |
corepack enable
yarn --version

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -48,6 +54,6 @@ jobs:
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
npm install
yarn install
npm run build
npm test
73 changes: 33 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
scope: '@trust0'
cache: 'npm'

- name: Enable Corepack and set up Yarn
run: |
corepack enable
yarn --version

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
Expand All @@ -51,49 +57,36 @@ jobs:
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}

- uses: crazy-max/ghaction-import-gpg@v5
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE }}
passphrase: ${{ secrets.GPG_PASSWORD }}
git_user_signingkey: true
git_commit_gpgsign: true
git_config_global: true
git_tag_gpgsign: true
git_push_gpgsign: false

- name: Run Build package
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
GIT_AUTHOR_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_COMMITTER_EMAIL: ${{ steps.import_gpg.outputs.email }}
GIT_AUTHOR_NAME: ${{ steps.import_gpg.outputs.name }}
GIT_COMMITTER_NAME: ${{ steps.import_gpg.outputs.name }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install
yarn install
npm run build
npx nx release --skip-publish --verbose
if [[ $GITHUB_REF == *"refs/heads/develop"* ]]; then
echo "Publishing with RC tag for develop branch"
npx nx release publish --tag rc --verbose
else
echo "Publishing without RC tag for main branch"
npx nx release publish --verbose
fi

- name: Release @trust0/ridb-core
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
cd packages/ridb-core && npx semantic-release --deps.prefix="^" --tag-format="@trust0/ridb-core@\${version}"

- name: Release @trust0/ridb
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
cd packages/ridb && npx semantic-release --deps.prefix="^" --tag-format="@trust0/ridb@\${version}"

- name: Release @trust0/ridb-level
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
cd packages/ridb-level && npx semantic-release --deps.prefix="^" --tag-format="@trust0/ridb-level@\${version}"

- name: Release @trust0/ridb-react
env:
NPM_TOKEN: ${{ env.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
cd packages/ridb-react && npx semantic-release --deps.prefix="^" --tag-format="@trust0/ridb-react@\${version}"

- name: Update dependencies and commit package.json files
env:
GH_TOKEN: ${{ secrets.GH_SECRET }}
run: |
git config --global user.name "elribonazo"
git config --global user.email "elribonazo@gmail.com"
npm install
git add package.json package-lock.json
git commit -m "chore: update dependencies after release [skip ci]" || echo "No changes to commit"
git push origin ${GITHUB_REF#refs/heads/}

13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,16 @@ umd/*
coverage
build/*
.turbo

vite.config.*.timestamp*
vitest.config.*.timestamp*
.nx/**
./.nx/**/*
./.nx
./.nx/


.nx/cache
.nx/workspace-data
./.yarn/*
./.yarn
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
5 changes: 4 additions & 1 deletion esbuild.base.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,14 @@ import { NodeResolvePlugin } from '@esbuild-plugins/node-resolve';
import fs from 'fs';
import path from 'path';


const packagesDir = path.resolve(__dirname, './packages/ridb-core');
export const wasmPlugin = {
name: 'wasm',
setup(build) {
build.onResolve({ filter: /\.wasm$/ }, args => {
if (fs.existsSync(path.resolve(packagesDir, args.path))) {
return { path: path.resolve(packagesDir, args.path), namespace: 'wasm' };
}
return { path: path.resolve('../../node_modules', args.path), namespace: 'wasm' };
});
build.onLoad({ filter: /.*/, namespace: 'wasm' }, async (args) => {
Expand Down
4 changes: 0 additions & 4 deletions lerna.json

This file was deleted.

130 changes: 130 additions & 0 deletions nx.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"sync": {
"applyChanges": true
},
"release": {
"releaseTagPattern": "{projectName}@{version}",
"git": {
"commitMessage": "chore(release): {version} [skip ci]"
},
"projectsRelationship": "independent",
"versionPlans": false,
"version": {
"conventionalCommits": true,
"generatorOptions": {
"preserveLocalDependencyProtocols": true
}
},
"changelog": {
"projectChangelogs": {
"createRelease": "github"
},
"github": {
"repo": "trust0/ridb"
}
},
"projects": [
"packages/**/*"
]
},
"targetDefaults": {
"build": {
"dependsOn": [
"^build"
],
"outputs": [
"{projectRoot}/build/**",
"{projectRoot}/.next/**",
"{projectRoot}/dist/**"
],
"cache": true
},
"lint": {
"cache": true
},
"dev": {
"cache": false
},
"clean": {
"cache": false
},
"start": {
"dependsOn": [
"build"
],
"cache": false
},
"test": {
"dependsOn": [
"build"
],
"cache": true
},
"pods": {
"cache": false
},
"splashscreen": {
"cache": false
},
"types": {
"cache": true
}
},
"plugins": [
{
"plugin": "@nx/js/typescript",
"options": {
"typecheck": {
"targetName": "typecheck"
},
"build": {
"targetName": "build",
"configName": "tsconfig.json",
"buildDepsName": "build-deps",
"watchDepsName": "watch-deps"
}
}
},
{
"plugin": "@nx/react-native/plugin",
"options": {
"startTargetName": "react-native:start",
"upgradeTargetName": "update",
"bundleTargetName": "bundle",
"podInstallTargetName": "pod-install",
"runIosTargetName": "run-ios",
"runAndroidTargetName": "run-android",
"buildIosTargetName": "build-ios",
"buildAndroidTargetName": "build-android",
"syncDepsTargetName": "sync-deps"
}
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "eslint:lint"
}
},
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "build",
"testTargetName": "vite:test",
"serveTargetName": "serve",
"devTargetName": "dev",
"previewTargetName": "preview",
"serveStaticTargetName": "serve-static",
"typecheckTargetName": "vite:typecheck",
"buildDepsTargetName": "vite:build-deps",
"watchDepsTargetName": "vite:watch-deps"
}
},
{
"plugin": "@nx/jest/plugin",
"options": {
"targetName": "test"
}
}
]
}
Loading
Loading