Skip to content

Commit 5f79243

Browse files
authored
* chore: up deps; tsconfig * chore: refactor actions; zile * chore: namespace imports * chore: mv * chore: up * chore: up * feat: add tempo * ci: up * chore: u * chore: mv * chore: up tests * chore: mv * chore: up tests * chore: mv * chore: mv * chore: mv * chore: mv * chore: files * chore: up * chore: up * chore: up
1 parent 893ddd6 commit 5f79243

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+3077
-5061
lines changed

.changeset/giant-knives-rhyme.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"prool": minor
3+
---
4+
5+
**Breaking:** Removed `silius`, `stackup`, `rundler` instances.

.changeset/lazy-toys-report.md

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
"prool": minor
3+
---
4+
5+
**Breaking:** Refactored to use namespace imports.
6+
7+
### Imports
8+
9+
```diff
10+
- import { createServer } from 'prool'
11+
- import { anvil, alto } from 'prool/instances'
12+
- import { defineInstance } from 'prool'
13+
- import { definePool } from 'prool'
14+
+ import { Instance, Pool, Server } from 'prool'
15+
```
16+
17+
### `Server.create``Server.create`
18+
19+
```diff
20+
- const server = createServer({
21+
- instance: anvil(),
22+
+ const server = Server.create({
23+
+ instance: Instance.anvil(),
24+
})
25+
```
26+
27+
### `anvil`, `alto``Instance.anvil`, `Instance.alto`
28+
29+
```diff
30+
- const instance = anvil({ ... })
31+
+ const instance = Instance.anvil({ ... })
32+
33+
- const instance = alto({ ... })
34+
+ const instance = Instance.alto({ ... })
35+
```
36+
37+
### `defineInstance``Instance.define`
38+
39+
```diff
40+
- const foo = defineInstance((parameters) => {
41+
+ const foo = Instance.define((parameters) => {
42+
return {
43+
name: 'foo',
44+
// ...
45+
}
46+
})
47+
```
48+
49+
### `definePool``Pool.define`
50+
51+
```diff
52+
- const pool = definePool({
53+
- instance: anvil(),
54+
+ const pool = Pool.define({
55+
+ instance: Instance.anvil(),
56+
})
57+
```
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: 'Install dependencies'
2+
description: 'Prepare repository and all dependencies'
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- name: Set up pnpm
8+
uses: pnpm/action-setup@v4
9+
10+
- name: Set up Node
11+
uses: actions/setup-node@v4
12+
with:
13+
node-version: '24.5'
14+
15+
- name: Install dependencies
16+
shell: bash
17+
run: pnpm install

.github/workflows/close-issue.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

.github/workflows/label-issue.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/main.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Main
2+
on:
3+
push:
4+
branches: [main]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
verify:
12+
name: Verify
13+
uses: ./.github/workflows/verify.yml
14+
secrets: inherit
15+
16+
changesets:
17+
name: Changesets
18+
permissions:
19+
contents: write
20+
id-token: write
21+
pull-requests: write
22+
runs-on: ubuntu-latest
23+
timeout-minutes: 5
24+
25+
steps:
26+
- name: Clone repository
27+
uses: actions/checkout@v4
28+
29+
- name: Install dependencies
30+
uses: ./.github/actions/install-dependencies
31+
32+
- name: PR or publish
33+
id: changesets
34+
uses: changesets/action@v1
35+
with:
36+
title: 'chore: version packages'
37+
commit: 'chore: version packages'
38+
publish: pnpm run changeset:publish
39+
version: pnpm run changeset:version
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/on-push-to-main.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/prerelease.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Prerelease
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
8+
steps:
9+
- name: Clone repository
10+
uses: actions/checkout@v4
11+
12+
- name: Install dependencies
13+
uses: ./.github/actions/install-dependencies
14+
15+
- name: Prerelease
16+
run: |
17+
pnpm run build
18+
pnpx pkg-pr-new publish --pnpm
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Pull request
1+
name: Pull Request
22
on:
33
pull_request:
44
types: [opened, reopened, synchronize, ready_for_review]
@@ -11,4 +11,4 @@ jobs:
1111
verify:
1212
name: Verify
1313
uses: ./.github/workflows/verify.yml
14-
secrets: inherit
14+
secrets: inherit

.github/workflows/verify.yml

Lines changed: 19 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -4,81 +4,40 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
lint:
8-
name: Lint
7+
checks:
8+
name: Checks
99
runs-on: ubuntu-latest
10-
timeout-minutes: 5
1110

1211
steps:
1312
- name: Clone repository
1413
uses: actions/checkout@v4
1514

1615
- name: Install dependencies
17-
uses: wevm/actions/.github/actions/pnpm@main
18-
with:
19-
node-version: 22
16+
uses: ./.github/actions/install-dependencies
2017

21-
- name: Lint code
22-
run: pnpm lint
23-
24-
- uses: stefanzweifel/git-auto-commit-action@v5
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
with:
28-
commit_message: 'chore: format'
29-
commit_user_name: 'github-actions[bot]'
30-
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
18+
- name: Check code
19+
run: pnpm check
3120

32-
types:
33-
name: Types
34-
runs-on: ubuntu-latest
21+
- name: Check types
22+
run: pnpm check:types
3523

24+
test:
25+
name: Test
26+
runs-on: ubuntu-latest
3627
steps:
3728
- name: Clone repository
3829
uses: actions/checkout@v4
3930

4031
- name: Install dependencies
41-
uses: wevm/actions/.github/actions/pnpm@main
42-
with:
43-
node-version: 22
44-
45-
- name: Build
46-
run: pnpm build
47-
48-
- name: Check types
49-
run: pnpm typecheck
50-
51-
# test:
52-
# name: Test
53-
# runs-on: ubuntu-latest
54-
# steps:
55-
# - name: Clone repository
56-
# uses: actions/checkout@v4
57-
58-
# - name: Install dependencies
59-
# uses: wevm/actions/.github/actions/pnpm@main
60-
# with:
61-
# node-version: 22
32+
uses: ./.github/actions/install-dependencies
6233

63-
# - name: Set up Foundry
64-
# uses: foundry-rs/foundry-toolchain@v1
34+
- name: Set up Foundry
35+
uses: foundry-rs/foundry-toolchain@v1
6536

66-
# - name: Set up Rundler
67-
# uses: jaxxstorm/[email protected]
68-
# with:
69-
# repo: alchemyplatform/rundler
70-
# platform: linux
37+
- name: Set up Docker
38+
uses: docker/setup-docker-action@v4
7139

72-
# - name: Set up Docker
73-
# uses: docker/setup-docker-action@v4
74-
75-
# - name: Pull Silius
76-
# run: docker pull ghcr.io/silius-rs/silius:latest
77-
78-
# - name: Pull Stackup
79-
# run: docker pull stackupwallet/stackup-bundler:latest
80-
81-
# - name: Run tests
82-
# run: pnpm test
83-
# env:
84-
# VITE_FORK_URL: ${{ secrets.VITE_FORK_URL }}
40+
- name: Run tests
41+
run: pnpm test --bail=1
42+
env:
43+
VITE_FORK_URL: ${{ secrets.VITE_FORK_URL }}

0 commit comments

Comments
 (0)