From e0edd21fd93c90e4d6fb3783ba6d78b54a64c04b Mon Sep 17 00:00:00 2001 From: Bob Massarczyk Date: Tue, 16 Jun 2026 20:20:22 +0200 Subject: [PATCH 1/5] feat: v1 --- .github/workflows/ci.yml | 23 + .gitignore | 4 + AGENTS.md | 34 + README.md | 158 ++++ package.json | 57 ++ pnpm-lock.yaml | 1607 +++++++++++++++++++++++++++++++++++++ pnpm-workspace.yaml | 14 + src/core.ts | 237 ++++++ src/index.ts | 8 + src/transaction.ts | 79 ++ src/types.ts | 83 ++ tests/checkpoint.test.ts | 114 +++ tests/commit.test.ts | 76 ++ tests/limit.test.ts | 33 + tests/reentrancy.test.ts | 75 ++ tests/subscribe.test.ts | 80 ++ tests/transaction.test.ts | 104 +++ tests/traverse.test.ts | 104 +++ tsconfig.json | 20 + vite.config.ts | 17 + 20 files changed, 2927 insertions(+) create mode 100644 .github/workflows/ci.yml create mode 100644 .gitignore create mode 100644 AGENTS.md create mode 100644 README.md create mode 100644 package.json create mode 100644 pnpm-lock.yaml create mode 100644 pnpm-workspace.yaml create mode 100644 src/core.ts create mode 100644 src/index.ts create mode 100644 src/transaction.ts create mode 100644 src/types.ts create mode 100644 tests/checkpoint.test.ts create mode 100644 tests/commit.test.ts create mode 100644 tests/limit.test.ts create mode 100644 tests/reentrancy.test.ts create mode 100644 tests/subscribe.test.ts create mode 100644 tests/transaction.test.ts create mode 100644 tests/traverse.test.ts create mode 100644 tsconfig.json create mode 100644 vite.config.ts diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c91473e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + +jobs: + ci: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: voidzero-dev/setup-vp@v1 + with: + node-version: "24" + cache: true + + - run: vp install + - run: vp check # format, lint, and type checks + - run: vp test run + - run: vp pack # build the library + - run: vp dlx publint diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7535211 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +node_modules +dist +*.log +.DS_Store diff --git a/AGENTS.md b/AGENTS.md new file mode 100644 index 0000000..c2c8691 --- /dev/null +++ b/AGENTS.md @@ -0,0 +1,34 @@ + + +# Using Vite+, the Unified Toolchain for the Web + +This project is using Vite+, a unified toolchain built on top of Vite, Rolldown, Vitest, tsdown, Oxlint, Oxfmt, and Vite Task. Vite+ wraps runtime management, package management, and frontend tooling in a single global CLI called `vp`. Vite+ is distinct from Vite, and it invokes Vite through `vp dev` and `vp build`. Run `vp help` to print a list of commands and `vp --help` for information about a specific command. + +Docs are local at `node_modules/vite-plus/docs` or online at https://viteplus.dev/guide/. + +## Review Checklist + +- [ ] Run `vp install` after pulling remote changes and before getting started. +- [ ] Run `vp check` and `vp test` to format, lint, type check and test changes. +- [ ] Check if there are `vite.config.ts` tasks or `package.json` scripts necessary for validation, run via `vp run