Skip to content

Commit e76cb10

Browse files
committed
Merge commit '7923042157253671a37b311ab3984a669f02022f' as 'repos/effect'
2 parents c5453f0 + 7923042 commit e76cb10

2,212 files changed

Lines changed: 636736 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@1.6.4/schema.json",
3+
"changelog": ["@changesets/changelog-github", { "repo": "Effect-TS/effect" }],
4+
"commit": false,
5+
"linked": [],
6+
"access": "restricted",
7+
"baseBranch": "main",
8+
"updateInternalDependencies": "patch",
9+
"ignore": ["scratchpad"],
10+
"snapshot": {
11+
"useCalculatedVersion": false,
12+
"prereleaseTemplate": "{tag}-{commit}"
13+
}
14+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/cli": patch
3+
---
4+
5+
fix(cli): replace all hyphens in shell completion command names
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@effect/cli": patch
3+
---
4+
5+
Fix `@effect/cli` help output to use `Ansi.blackBright` instead of `Ansi.black` for `Weak` spans. The previous black foreground was invisible on dark terminal backgrounds.

repos/effect/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
use flake;

repos/effect/.github/CODEOWNERS

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
/packages/effect/ @mikearnaldi
2+
3+
/packages/effect/src/Arbitrary.ts @gcanti
4+
/packages/effect/src/JSONSchema.ts @gcanti
5+
/packages/effect/src/ParseResult.ts @gcanti
6+
/packages/effect/src/Pretty.ts @gcanti
7+
/packages/effect/src/Schema.ts @gcanti
8+
/packages/effect/src/SchemaAST.ts @gcanti
9+
/packages/effect/src/internal/schema/ @gcanti
10+
/packages/effect/test/Schema/ @gcanti
11+
12+
/packages/ai/ @IMax153
13+
14+
/packages/cli/ @IMax153
15+
16+
/packages/cluster/ @tim-smart
17+
18+
/packages/experimental/ @tim-smart
19+
20+
/packages/opentelemetry/ @tim-smart
21+
22+
/packages/platform/ @tim-smart
23+
/packages/platform-browser/ @tim-smart
24+
/packages/platform-bun/ @tim-smart
25+
/packages/platform-node/ @tim-smart
26+
/packages/platform-node-shared/ @tim-smart
27+
28+
/packages/printer/ @IMax153
29+
/packages/printer-ansi/ @IMax153
30+
31+
/packages/rpc/ @tim-smart
32+
33+
/packages/sql/ @tim-smart
34+
/packages/sql-clickhouse/ @tim-smart
35+
/packages/sql-d1/ @tim-smart
36+
/packages/sql-drizzle/ @tim-smart
37+
/packages/sql-kysely/ @tim-smart
38+
/packages/sql-libsql/ @tim-smart
39+
/packages/sql-mssql/ @tim-smart
40+
/packages/sql-mysql2/ @tim-smart
41+
/packages/sql-pg/ @tim-smart
42+
/packages/sql-sqlite-bun/ @tim-smart
43+
/packages/sql-sqlite-do/ @tim-smart
44+
/packages/sql-sqlite-node/ @tim-smart
45+
/packages/sql-sqlite-react-native/ @tim-smart
46+
/packages/sql-sqlite-wasm/ @tim-smart
47+
48+
/packages/typeclass/ @gcanti
49+
50+
/packages/vitest/ @mikearnaldi
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Setup
2+
description: Perform standard setup and install dependencies using pnpm.
3+
inputs:
4+
node-version:
5+
description: The version of Node.js to install
6+
required: true
7+
default: 23.7.0
8+
registry-url:
9+
description: Optional registry to set up for auth.
10+
11+
runs:
12+
using: composite
13+
steps:
14+
- name: Install pnpm
15+
uses: pnpm/action-setup@v3
16+
- name: Install node
17+
uses: actions/setup-node@v4
18+
with:
19+
cache: pnpm
20+
node-version: ${{ inputs.node-version }}
21+
registry-url: ${{ inputs.registry-url }}
22+
- name: Install dependencies
23+
shell: bash
24+
run: pnpm install
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Check
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches: [main, next-minor, next-major]
6+
push:
7+
branches: [main, next-minor, next-major]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions: {}
14+
15+
jobs:
16+
types:
17+
name: Types
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 10
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Install dependencies
23+
uses: ./.github/actions/setup
24+
- run: pnpm check
25+
- run: pnpm test-types --target '>=5.4'
26+
27+
lint:
28+
name: Lint
29+
runs-on: ubuntu-latest
30+
timeout-minutes: 10
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Install dependencies
34+
uses: ./.github/actions/setup
35+
- run: pnpm circular
36+
- run: pnpm lint
37+
- run: pnpm codegen
38+
- name: Check for codegen changes
39+
run: git diff --exit-code
40+
41+
test:
42+
name: Test (${{ matrix.runtime }} ${{ matrix.shard }})
43+
runs-on: ubuntu-latest
44+
timeout-minutes: 10
45+
strategy:
46+
fail-fast: false
47+
matrix:
48+
shard: [1/4, 2/4, 3/4, 4/4]
49+
# runtime: [Node, Bun] # TODO: Re-enable bun test suite after https://github.com/oven-sh/bun/issues/4145 is resolved
50+
runtime: [Node]
51+
steps:
52+
- uses: actions/checkout@v4
53+
- name: Install dependencies
54+
uses: ./.github/actions/setup
55+
- uses: oven-sh/setup-bun@v1
56+
if: matrix.runtime == 'Bun'
57+
with:
58+
bun-version: 1.0.25
59+
- name: Test
60+
run: pnpm vitest --shard ${{ matrix.shard }}
61+
if: matrix.runtime == 'Node'
62+
- name: Test
63+
run: bun vitest --shard ${{ matrix.shard }}
64+
if: matrix.runtime == 'Bun'
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Pages
2+
on:
3+
workflow_dispatch:
4+
pull_request:
5+
branches: [main, next-minor, next-major]
6+
push:
7+
branches: [main, next-minor, next-major]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
permissions: {}
14+
15+
jobs:
16+
build:
17+
name: Build
18+
runs-on: ubuntu-latest
19+
timeout-minutes: 30
20+
steps:
21+
- uses: actions/checkout@v4
22+
- name: Install dependencies
23+
uses: ./.github/actions/setup
24+
- run: pnpm docgen
25+
- name: Build pages Jekyll
26+
if: github.repository_owner == 'Effect-Ts' && github.event_name == 'push' && github.ref == 'refs/heads/main'
27+
uses: actions/jekyll-build-pages@v1
28+
with:
29+
source: ./docs
30+
destination: ./_site
31+
- name: Upload pages artifact
32+
if: github.repository_owner == 'Effect-Ts' && github.event_name == 'push' && github.ref == 'refs/heads/main'
33+
uses: actions/upload-pages-artifact@v3
34+
35+
deploy:
36+
if: github.repository_owner == 'Effect-Ts' && github.event_name == 'push' && github.ref == 'refs/heads/main'
37+
name: Deploy
38+
runs-on: ubuntu-latest
39+
timeout-minutes: 10
40+
needs: build
41+
permissions:
42+
pages: write # To deploy to GitHub Pages
43+
id-token: write # To verify the deployment originates from an appropriate source
44+
environment:
45+
name: github-pages
46+
url: ${{ steps.deployment.outputs.page_url }}
47+
steps:
48+
- name: Deploy to GitHub Pages
49+
id: deployment
50+
uses: actions/deploy-pages@v4
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release queue
2+
on:
3+
issue_comment:
4+
types: [created]
5+
pull_request_target:
6+
branches: [main, next-minor, next-major]
7+
push:
8+
branches: [main, next-minor, next-major]
9+
10+
permissions: {}
11+
12+
jobs:
13+
update:
14+
if: github.repository_owner == 'Effect-Ts'
15+
name: Update
16+
runs-on: ubuntu-latest
17+
timeout-minutes: 10
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
steps:
22+
- uses: actions/checkout@v4
23+
with:
24+
fetch-depth: 0
25+
token: ${{ secrets.EFFECT_BOT_GH }}
26+
- run: gh pr checkout ${{ github.event.pull_request.number }}
27+
if: github.event.pull_request
28+
env:
29+
GITHUB_TOKEN: ${{ secrets.EFFECT_BOT_GH }}
30+
- uses: tim-smart/next-release-action@main
31+
with:
32+
github_token: ${{ secrets.EFFECT_BOT_GH }}
33+
packages: effect,@effect/platform
34+
git_user: effect-bot
35+
git_email: tech-ops@effectful.co
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Release
2+
on:
3+
push:
4+
branches: [main]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
9+
permissions: {}
10+
11+
jobs:
12+
release:
13+
if: github.repository_owner == 'Effect-Ts'
14+
name: Release
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 30
17+
permissions:
18+
contents: write
19+
id-token: write
20+
pull-requests: write
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Install dependencies
24+
uses: ./.github/actions/setup
25+
with:
26+
registry-url: "https://registry.npmjs.org"
27+
- name: Upgrade npm for OIDC support
28+
run: npm install -g npm@latest
29+
- name: Create Release Pull Request or Publish
30+
uses: changesets/action@v1
31+
with:
32+
version: pnpm changeset-version
33+
publish: pnpm changeset-publish
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)