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
5 changes: 5 additions & 0 deletions .changeset/giant-knives-rhyme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"prool": minor
---

**Breaking:** Removed `silius`, `stackup`, `rundler` instances.
57 changes: 57 additions & 0 deletions .changeset/lazy-toys-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
---
"prool": minor
---

**Breaking:** Refactored to use namespace imports.

### Imports

```diff
- import { createServer } from 'prool'
- import { anvil, alto } from 'prool/instances'
- import { defineInstance } from 'prool'
- import { definePool } from 'prool'
+ import { Instance, Pool, Server } from 'prool'
```

### `Server.create` → `Server.create`

```diff
- const server = createServer({
- instance: anvil(),
+ const server = Server.create({
+ instance: Instance.anvil(),
})
```

### `anvil`, `alto` → `Instance.anvil`, `Instance.alto`

```diff
- const instance = anvil({ ... })
+ const instance = Instance.anvil({ ... })

- const instance = alto({ ... })
+ const instance = Instance.alto({ ... })
```

### `defineInstance` → `Instance.define`

```diff
- const foo = defineInstance((parameters) => {
+ const foo = Instance.define((parameters) => {
return {
name: 'foo',
// ...
}
})
```

### `definePool` → `Pool.define`

```diff
- const pool = definePool({
- instance: anvil(),
+ const pool = Pool.define({
+ instance: Instance.anvil(),
})
```
17 changes: 17 additions & 0 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Install dependencies'
description: 'Prepare repository and all dependencies'

runs:
using: 'composite'
steps:
- name: Set up pnpm
uses: pnpm/action-setup@v4

- name: Set up Node
uses: actions/setup-node@v4
with:
node-version: '24.5'

- name: Install dependencies
shell: bash
run: pnpm install
18 changes: 0 additions & 18 deletions .github/workflows/close-issue.yml

This file was deleted.

25 changes: 0 additions & 25 deletions .github/workflows/label-issue.yml

This file was deleted.

41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Main
on:
push:
branches: [main]

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

jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml
secrets: inherit

changesets:
name: Changesets
permissions:
contents: write
id-token: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install-dependencies

- name: PR or publish
id: changesets
uses: changesets/action@v1
with:
title: 'chore: version packages'
commit: 'chore: version packages'
publish: pnpm run changeset:publish
version: pnpm run changeset:version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
61 changes: 0 additions & 61 deletions .github/workflows/on-push-to-main.yml

This file was deleted.

18 changes: 18 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Prerelease
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install dependencies
uses: ./.github/actions/install-dependencies

- name: Prerelease
run: |
pnpm run build
pnpx pkg-pr-new publish --pnpm
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull request
name: Pull Request
on:
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
Expand All @@ -11,4 +11,4 @@ jobs:
verify:
name: Verify
uses: ./.github/workflows/verify.yml
secrets: inherit
secrets: inherit
79 changes: 19 additions & 60 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,81 +4,40 @@ on:
workflow_dispatch:

jobs:
lint:
name: Lint
checks:
name: Checks
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install dependencies
uses: wevm/actions/.github/actions/pnpm@main
with:
node-version: 22
uses: ./.github/actions/install-dependencies

- name: Lint code
run: pnpm lint

- uses: stefanzweifel/git-auto-commit-action@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: 'chore: format'
commit_user_name: 'github-actions[bot]'
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
- name: Check code
run: pnpm check

types:
name: Types
runs-on: ubuntu-latest
- name: Check types
run: pnpm check:types

test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Install dependencies
uses: wevm/actions/.github/actions/pnpm@main
with:
node-version: 22

- name: Build
run: pnpm build

- name: Check types
run: pnpm typecheck

# test:
# name: Test
# runs-on: ubuntu-latest
# steps:
# - name: Clone repository
# uses: actions/checkout@v4

# - name: Install dependencies
# uses: wevm/actions/.github/actions/pnpm@main
# with:
# node-version: 22
uses: ./.github/actions/install-dependencies

# - name: Set up Foundry
# uses: foundry-rs/foundry-toolchain@v1
- name: Set up Foundry
uses: foundry-rs/foundry-toolchain@v1

# - name: Set up Rundler
# uses: jaxxstorm/action-install-gh-release@v1.12.0
# with:
# repo: alchemyplatform/rundler
# platform: linux
- name: Set up Docker
uses: docker/setup-docker-action@v4

# - name: Set up Docker
# uses: docker/setup-docker-action@v4

# - name: Pull Silius
# run: docker pull ghcr.io/silius-rs/silius:latest

# - name: Pull Stackup
# run: docker pull stackupwallet/stackup-bundler:latest

# - name: Run tests
# run: pnpm test
# env:
# VITE_FORK_URL: ${{ secrets.VITE_FORK_URL }}
- name: Run tests
run: pnpm test --bail=1
env:
VITE_FORK_URL: ${{ secrets.VITE_FORK_URL }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
.local
_lib
coverage
dist
node_modules
tsconfig.*.tsbuildinfo
tsconfig.tsbuildinfo
File renamed without changes.
1 change: 0 additions & 1 deletion LICENSE

This file was deleted.

2 changes: 1 addition & 1 deletion src/LICENSE → LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
1 change: 0 additions & 1 deletion README.md

This file was deleted.

Loading
Loading